diff --git a/TorrentToMedia.cfg.sample b/TorrentToMedia.cfg.sample deleted file mode 100644 index e1e4c646..00000000 --- a/TorrentToMedia.cfg.sample +++ /dev/null @@ -1,16 +0,0 @@ -[CouchPotato] -category = movies -destination = /abs/path/to/complete/movies - -[SickBeard] -category = tv -destination = /abs/path/to/complete/tv - -[Torrent] -uselink = 0 -extractiontool = 'C:\\Program Files\\7-Zip\\7z.exe' - -[Notes] -copy = 0 will create hard links to your original download. -If moving to new hard-disk or network mount, use copy = 1 -copy = 0 is much faster and uses less disk space. diff --git a/autoProcessMovie.cfg.sample b/autoProcessMovie.cfg.sample deleted file mode 100644 index 563f2160..00000000 --- a/autoProcessMovie.cfg.sample +++ /dev/null @@ -1,22 +0,0 @@ -[CouchPotato] -host = localhost -port = 5050 -username = -password = -ssl = 0 -web_root = -apikey = xxxxxxxx -delay = 60 -method = renamer - -[Comments] -host = (ip address for CouchPotato Server. Use "localhost" if SABnzbd and CPS on same system) -port = (port for CouchPotato Server) -username = (username if set for CouchPotato Server) -password = (password if set for CouchPotato Server) -ssl = 0 (set to 1 if you want to use ssl. -untested. Default is 0) -web_root = (set URL base if needed.) -apikey = (apikey for CouchPotato Server... Required) -delay = (set delay in seconds before sending api call. Minimum 60) -method = "renamer" or "manage". renamer is the default. Read the help file. - diff --git a/autoProcessTV.cfg.sample b/autoProcessTV.cfg.sample deleted file mode 100644 index 84d2fe8f..00000000 --- a/autoProcessTV.cfg.sample +++ /dev/null @@ -1,9 +0,0 @@ -[SickBeard] -host=localhost -port=8081 -username= -password= -web_root= -ssl=0 -watch_dir= -failed_fork=0 diff --git a/uTorrentToMedia.py b/uTorrentToMedia.py deleted file mode 100755 index 0fabb5e8..00000000 --- a/uTorrentToMedia.py +++ /dev/null @@ -1,113 +0,0 @@ -#!/usr/bin/env python - -import sys -import autoProcessMovie -import autoProcessTV -import ConfigParser -import os -import glob - -##You can use the following parameters: -## -##%F - Name of downloaded file (for single file torrents) -##%D - Directory where files are saved -##%N - Title of torrent -##%P - Previous state of torrent -##%L - Label -##%T - Tracker -##%M - Status message string (same as status column) -##%I - hex encoded info-hash -##%S - State of torrent -##%K - kind of torrent (single|multi) -## -##Where State is one of: -## -##Error - 1 -##Checked - 2 -##Paused - 3 -##Super seeding - 4 -##Seeding - 5 -##Downloading - 6 -##Super seed [F] - 7 -##Seeding [F] - 8 -##Downloading [F] - 9 -##Queued seed - 10 -##Finished - 11 -##Queued - 12 -##Stopped - 13 - -## We will pass in %D, %N, %L -Directory = sys.argv[1] -Name = sys.argv[2] -Categoty = sys.argv[3] -print "uTorrentToMedia v 4.0" - -config = ConfigParser.ConfigParser() -configFilename = os.path.join(os.path.dirname(sys.argv[0]), "uTorrentToMedia.cfg") - -print "Loading config from", configFilename - -if not os.path.isfile(configFilename): - print "ERROR: You need a uTorrentToMedia.cfg file - did you rename and edit the .sample?" - sys.exit(-1) - -config.read(configFilename) - -Movie_Cat = config.get("CouchPotato", "category") -TV_Cat = config.get("SickBeard", "category") -Movie_dest = config.get("CouchPotato", "destination") -TV_dest = config.get("CouchPotato", "destination") -Use_cp = int(config.get("uTorrent", "copy")) -unrar = config.get("uTorrent", "unrar") -unzip = config.get("uTorrent", "unzip") -parcheck = config.get("uTorrent", "parcheck") - -if Category == Movie_Cat: - destination = Movie_dest -elif Category == TV_Cat: - destination = TV_dest -else; - print "Not assigned a label of either", Movie_Cat, "or", TV_Cat, ". Exiting" - -if Use_cp: - print "copying all files from", Directory, "to", destination - shutil.copytree(Directory, destination) -else: - print "creating hard link from", Directory, "to", destination - shutil.copytree(src, dst, copy_function=os.link) - -status = 0 -rared = 0 -par2 = 0 -ziptest = 0 -test = os.path.join(destination, '*.rar') -if glob.glob(test): - print "rar files detected" - rared = 1 - #status = 1 -test = os.path.join(destination, '*.par2') -if glob.glob(test): - print "par2 files detected" - par2 = 1 -test = os.path.join(destination, '*.zip') -if glob.glob(test): - print "zip files detected" - ziped = 1 - #status = 1 -if ziped: - #unzip here and reset status to 0 is successful - #unzip -if par2: - #parcheck here - #parcheck -if rared: - #unrar here and reset status to 0 if successful - #unrar -status = 0 - -status = int(status) -##Now we pass off to CouchPotato or SickBeard. -if Category == Movie_Cat: - autoProcessMovie.process(destination, Name, status) -elif Category == TV_Cat: - autoProcessTV.processEpisode(destination, Name, status)