mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
We now can post-process files not inside of there own folder, we simply confirm there at the root of our category or watch folder then move them into there own seperate foldersand go from there.
nzbName's are now cleaned up.
This commit is contained in:
parent
086eaaa516
commit
fd4d14be64
7 changed files with 175 additions and 88 deletions
|
@ -2,18 +2,26 @@ import os
|
|||
import sys
|
||||
import nzbtomedia
|
||||
import TorrentToMedia
|
||||
from nzbtomedia.nzbToMediaUtil import find_download
|
||||
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()
|
||||
|
||||
clientAgent = nzbtomedia.NZB_CLIENTAGENT
|
||||
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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue