mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
Updated logger code to now include the section, formatting has been modified as well.
Logging of debug messages is now optional via log_debug option location in autoProcessMedia.cfg Lots of code cleanup has been performed including cleanup log messages and corrections of spelling errors. Improved release lookup code for autoProcessMovie, narrows search results down by making API calls to the download clients to compare results in CouchPotato's database.
This commit is contained in:
parent
dd41ff3b2f
commit
eb7822b60b
16 changed files with 420 additions and 441 deletions
|
@ -4,29 +4,10 @@ import nzbtomedia
|
|||
import TorrentToMedia
|
||||
from nzbtomedia.nzbToMediaUtil import find_download, clean_nzbname, listMediaFiles
|
||||
|
||||
os.environ['TR_TORRENT_DIR']="z:/downloads/complete/movie/The.Art.of.the.Steal.2013.LIMITED.1080p.BRRip.h264.AAC-RARBG"
|
||||
os.environ['TR_TORRENT_NAME']="The.Art.of.the.Steal.2013.LIMITED.1080p.BRRip.h264.AAC-RARBG"
|
||||
os.environ['TR_TORRENT_ID']="154206e6390a03bbf01e61f013e1a52494a52dfa"
|
||||
os.environ['TR_TORRENT_HASH']="154206e6390a03bbf01e61f013e1a52494a52dfa"
|
||||
#TorrentToMedia.main(sys.argv)
|
||||
test = 'The.Art.of.the.Steal.2013.LIMITED.1080p.BRRip.h264.AAC-RARBG'
|
||||
cleaned = clean_nzbname(test)
|
||||
|
||||
# Initialize the config
|
||||
nzbtomedia.initialize()
|
||||
|
||||
dirName = 'Z:/complete/tv/'
|
||||
test = listMediaFiles('Z:/complete/tv/')
|
||||
for filename in test:
|
||||
parentDir = os.path.dirname(filename)
|
||||
if parentDir == dirName:
|
||||
pass
|
||||
clientAgent = nzbtomedia.NZB_CLIENTAGENT
|
||||
nzbName = 'Anger.Management.S02E57.HDTV.x264-KILLERS'
|
||||
#download_id = '51C9B415382894727C5C7D8442554D3AC08B390F'
|
||||
|
||||
download_id = 'SABnzbd_nzo_uBYaGb'
|
||||
if find_download(clientAgent, nzbName, download_id):
|
||||
download_id = 'SABnzbd_nzo_qhoQ7m'
|
||||
if find_download('sabnzbd', download_id):
|
||||
print 'found'
|
||||
else:
|
||||
print 'no luck'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue