1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-24 16:51:42 +00:00
mylar/post-processing/sabnzbd/ComicRN.py

25 lines
847 B
Python
Executable file

#!/usr/bin/env python
#
##############################################################################
### SABNZBD POST-PROCESSING SCRIPT ###
#
# Move and rename comics according to Mylar's autoProcessComics.cfg
#
# NOTE: This script requires Python to be installed on your system.
##############################################################################
#module loading
import sys
import autoProcessComics
comicrn_version = "1.01"
#the code.
if len(sys.argv) < 2:
print "No folder supplied - is this being called from SABnzbd or NZBGet?"
sys.exit()
elif len(sys.argv) >= 3:
sys.exit(autoProcessComics.processIssue(sys.argv[1], sys.argv[3], sys.argv[7], comicrn_version=comicrn_version))
else:
sys.exit(autoProcessComics.processIssue(sys.argv[1], comicrn_version=comicrn_version))