Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

categorize = manual gives KeyError with SABnzbd v3.7.0 #40

Closed
jelehmann opened this issue Nov 6, 2022 · 2 comments
Closed

categorize = manual gives KeyError with SABnzbd v3.7.0 #40

jelehmann opened this issue Nov 6, 2022 · 2 comments

Comments

@jelehmann
Copy link

NZB_monkey crashes (about here) with KeyError: 'categories' unable to retrieve the categories-list from SABnzbd v3.7.0:

Debug output with categorize = manual in nzbmonkey.cfg:

 ==========================================
 Debug output enabled for NZB-Monkey v0.2.7
 ==========================================

 Started: 2022-11-06 13:26:01 (1667737561)
 Command line arguments passed to NZB-Monkey
 -------------------------------------------
 Arg[0]: C:\Users\hidden\AppData\Local\Programs\nzbmonkey-v0.2.2-win\nzbmonkey.exe
 Arg[1]: nzblnk:?t=hidden&h=hidden&p=hidden
 -------------------------------------------

 Called by NZBLNK scheme:

     - Tag     : hidden
     - Header  : hidden
     - Password: hidden
    
 - Searching NZB - Search for best NZB enabled
   with NZBIndex ... DONE
   - Check NZB (Max. 5 missing files - Max. 5.0% missing Segments)
     Update counter ... 
     Check file count ... OK - 37 from 37 files
     Check segments ...
       Total Segments:        10880
       Expected Segments:     10880
       Missing Segments:          0
       Additional Segments:       0
       OK - 10880 from 10880 segments

     Overall result: OK - All 37 files are complete

   use NZB from NZBIndex
     Upload age:      4 days
     Upload started:  2022-11-02
     Upload duration: 00:01:18
Traceback (most recent call last):
  File "C:\dev\python\nzb-monkey-github\src\nzbmonkey.py", line 1751, in <module>
  File "C:\dev\python\nzb-monkey-github\src\nzbmonkey.py", line 1559, in main
KeyError: 'categories'

Debug output with categorize = off or categorize = auto in nzbmonkey.cfg:

 ==========================================
 Debug output enabled for NZB-Monkey v0.2.7
 ==========================================

 Started: 2022-11-06 13:20:29 (1667737229)
 Command line arguments passed to NZB-Monkey
 -------------------------------------------
 Arg[0]: C:\Users\hidden\AppData\Local\Programs\nzbmonkey-v0.2.2-win\nzbmonkey.exe
 Arg[1]: nzblnk:?t=hidden&h=hidden&p=hidden
 -------------------------------------------

 Called by NZBLNK scheme:

     - Tag     : hidden
     - Header  : hidden
     - Password: hidden
    
 - Searching NZB - Search for best NZB enabled
   with NZBIndex ... DONE
   - Check NZB (Max. 5 missing files - Max. 5.0% missing Segments)
     Update counter ... 
     Check file count ... OK - 37 from 37 files
     Check segments ...
       Total Segments:        10880
       Expected Segments:     10880
       Missing Segments:          0
       Additional Segments:       0
       OK - 10880 from 10880 segments

     Overall result: OK - All 37 files are complete

   use NZB from NZBIndex
     Upload age:      4 days
     Upload started:  2022-11-02
     Upload duration: 00:01:18
 - Pushing to SABNZBD ...OK
 - Saving NZB-file ... OK
 - Done
Close window in 1 second(s)

...or is this a SABnzbd issue?

@mj-crawl
Copy link

mj-crawl commented Nov 7, 2022

Works with Sabnzbd 3.6.1, stopped working with Sabnzbd 3.7.0

@Tensai75
Copy link
Contributor

Tensai75 commented Nov 7, 2022

Sabnzbd API was updated from v3.6.1 to v3.7.0 (see Release Notes - SABnzbd 3.7.0):

  • Removed fields scripts and categories from queue API call.

req_url = '{0}://{1}:{2}/{3}/api?mode=queue&output=json' \

Instead, API call get_cats should be used, which only returns the categories key, see Sabnzbd API documentation

@nzblnk nzblnk closed this as completed in 3a8fbc4 Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants