From e738727c523838ac5dc91d1f5cacdd35b450674c Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Sat, 10 Aug 2019 19:35:50 +1200 Subject: [PATCH 1/2] Force status from SABnzbd to be integer. #1646 #1647 (#1648) --- nzbToMedia.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nzbToMedia.py b/nzbToMedia.py index a6139fe3..2ab16d59 100755 --- a/nzbToMedia.py +++ b/nzbToMedia.py @@ -923,7 +923,7 @@ def main(args, section=None): # 7 Status of post processing. 0 = OK, 1=failed verification, 2=failed unpack, 3=1+2 client_agent = 'sabnzbd' logger.info('Script triggered from SABnzbd') - result = process(args[1], input_name=args[2], status=args[7], input_category=args[5], client_agent=client_agent, + result = process(args[1], input_name=args[2], status=int(args[7]), input_category=args[5], client_agent=client_agent, download_id='') # SABnzbd 0.7.17+ elif len(args) >= core.SABNZB_0717_NO_OF_ARGUMENTS: @@ -938,7 +938,7 @@ def main(args, section=None): # 8 Failure URL client_agent = 'sabnzbd' logger.info('Script triggered from SABnzbd 0.7.17+') - result = process(args[1], input_name=args[2], status=args[7], input_category=args[5], client_agent=client_agent, + result = process(args[1], input_name=args[2], status=int(args[7]), input_category=args[5], client_agent=client_agent, download_id='', failure_link=''.join(args[8:])) # Generic program elif len(args) > 5 and args[5] == 'generic': From 77f34261fac7d0501fcedb61c8301512c4fb1efd Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Tue, 13 Aug 2019 18:38:05 +1200 Subject: [PATCH 2/2] update to v12.1.01 --- .bumpversion.cfg | 2 +- core/__init__.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index cc1a1057..1edaabcf 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 12.1.00 +current_version = 12.1.01 commit = True tag = False diff --git a/core/__init__.py b/core/__init__.py index 55b8acba..76798031 100644 --- a/core/__init__.py +++ b/core/__init__.py @@ -83,7 +83,7 @@ from core.utils import ( wake_up, ) -__version__ = '12.1.00' +__version__ = '12.1.01' # Client Agents NZB_CLIENTS = ['sabnzbd', 'nzbget', 'manual'] diff --git a/setup.py b/setup.py index a115dfa2..5e79ab2c 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ def read(*names, **kwargs): setup( name='nzbToMedia', - version='12.1.00', + version='12.1.01', license='GPLv3', description='Efficient on demand post processing', long_description="""