caronc / nzb-notify

Push Notifications to a large number of supported services for NZBGet and SABnzbd (based on Apprise)
GNU General Public License v3.0
129 stars 15 forks source link

NZBGet Post Processing produces a KeyError: 'DownloadedSizeMB' #10

Closed caronc closed 7 years ago

caronc commented 7 years ago

The original source of this bug was on forum.nzbget.net here.

The was reported during the Post Processing phase and the example given was:

Sun Oct 16 15:35:59 2016        ERROR   Notify:   File "/data/nzbget/scripts/nzb-notify-0.5.5/Notify/nzbget/ScriptBase.py", line 2418, in run
Sun Oct 16 15:35:59 2016        INFO    Notify:     exit_code = main_function(*args, **kwargs)
Sun Oct 16 15:35:59 2016        ERROR   Notify:   File "/data/nzbget//scripts/nzb-notify-0.5.5/Notify.py", line 993, in postprocess_main
Sun Oct 16 15:35:59 2016        INFO    Notify:     stats = self.get_statistics()
Sun Oct 16 15:35:59 2016        ERROR   Notify:   File "/data/nzbget/scripts/nzb-notify-0.5.5/Notify/nzbget/PostProcessScript.py", line 660, in get_statistics
Sun Oct 16 15:35:59 2016        INFO    Notify:     dl_size = float(group['DownloadedSizeMB'])
Sun Oct 16 15:35:59 2016        ERROR   Notify: KeyError: 'DownloadedSizeMB'
Sun Oct 16 15:35:59 2016        ERROR   Post-process-script nzb-notify-0.5.5/Notify.py for title_of_nzb_file failed