Skip to content

Instantly share code, notes, and snippets.

@nosmokingbandit
Created August 31, 2017 03:05
Show Gist options
  • Save nosmokingbandit/ddf8f8a9d156bef7269ec32b6873ec1a to your computer and use it in GitHub Desktop.
Save nosmokingbandit/ddf8f8a9d156bef7269ec32b6873ec1a to your computer and use it in GitHub Desktop.
Script to start post-processing from QBittorrent for SickRage, SickGear, etc.
#!/usr/bin/env python2
# Author: NoSmokingBandit
#
# This file is an add-on for SickRage, SickGear, and possibly other forks.
#
# This file is provided for free without any warranty or guarantee.
#
# For more information see https://github.com/SickGear/SickGear
#
# QBittorrent must run this script with the aguments "%N" "%D" (name savedir), additional
# args may be passed, but will be ignored.
from __future__ import print_function
import sys
import autoProcessTV
if len(sys.argv) < 3:
print('Args incorrect - is this being called from QBittorrent?')
sys.exit()
else:
autoProcessTV.processEpisode(sys.argv[2], sys.argv[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment