mirror of
https://github.com/evilhero/mylar
synced 2024-12-21 23:32:23 +00:00
FIX: nzbget post-processing with ComicRN was spamming incorrect version on every post-processing run.
This commit is contained in:
parent
66c9fbe99d
commit
826ef79622
3 changed files with 5 additions and 5 deletions
|
@ -312,7 +312,7 @@ RSS_CHECKINTERVAL = 20
|
|||
RSS_LASTRUN = None
|
||||
|
||||
#these are used to set the comparison against the post-processing scripts
|
||||
STATIC_COMICRN_VERSION = "1.0"
|
||||
STATIC_COMICRN_VERSION = "1.01"
|
||||
STATIC_APC_VERSION = "1.0"
|
||||
|
||||
FAILED_DOWNLOAD_HANDLING = 0
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
import sys, os
|
||||
import autoProcessComics
|
||||
comicrn_version = "1.0"
|
||||
comicrn_version = "1.01"
|
||||
|
||||
# NZBGet V11+
|
||||
# Check if the script is called from nzbget 11.0 or later
|
||||
|
@ -46,11 +46,11 @@ if os.environ.has_key('NZBOP_SCRIPTDIR') and not os.environ['NZBOP_VERSION'][0:5
|
|||
print 'Download of "%s" has successfully completed.' % (os.environ['NZBPP_NZBNAME'])
|
||||
failit = 0
|
||||
|
||||
result = autoProcessComics.processIssue(os.environ['NZBPP_DIRECTORY'], os.environ['NZBPP_NZBNAME'], failed=failit)
|
||||
result = autoProcessComics.processIssue(os.environ['NZBPP_DIRECTORY'], os.environ['NZBPP_NZBNAME'], failed=failit, comicrn_version=comicrn_version)
|
||||
|
||||
|
||||
elif len(sys.argv) == NZBGET_NO_OF_ARGUMENTS:
|
||||
result = autoProcessComics.processIssue(sys.argv[1], sys.argv[2], sys.argv[3])
|
||||
result = autoProcessComics.processIssue(sys.argv[1], sys.argv[2], sys.argv[3], comicrn_version=comicrn_version)
|
||||
|
||||
if result == 0:
|
||||
if os.environ.has_key('NZBOP_SCRIPTDIR'): # log success for nzbget
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
import sys
|
||||
import autoProcessComics
|
||||
|
||||
comicrn_version = "1.0"
|
||||
comicrn_version = "1.01"
|
||||
|
||||
#the code.
|
||||
if len(sys.argv) < 2:
|
||||
|
|
Loading…
Reference in a new issue