mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
remove references to videofile
This commit is contained in:
parent
975fe7cfa9
commit
5768a1a3ba
1 changed files with 4 additions and 4 deletions
|
@ -334,16 +334,16 @@ if inputHash and useLink:
|
||||||
utorrentClass = UTorrentClient(uTorrentWEBui, uTorrentUSR, uTorrentPWD)
|
utorrentClass = UTorrentClient(uTorrentWEBui, uTorrentUSR, uTorrentPWD)
|
||||||
except:
|
except:
|
||||||
Logger.error("MAIN: Failed to connect to uTorrent")
|
Logger.error("MAIN: Failed to connect to uTorrent")
|
||||||
Logger.debug("MAIN: Stoping torrent %s in uTorrent while processing", videofile)
|
Logger.debug("MAIN: Stoping torrent %s in uTorrent while processing", inputName)
|
||||||
utorrentClass.stop(inputHash)
|
utorrentClass.stop(inputHash)
|
||||||
time.sleep(5) # Give uTorrent some time to catch up with the change
|
time.sleep(5) # Give uTorrent some time to catch up with the change
|
||||||
|
|
||||||
# Now we pass off to CouchPotato or Sick-Beard
|
# Now we pass off to CouchPotato or Sick-Beard
|
||||||
if inputCategory == movieCategory:
|
if inputCategory == movieCategory:
|
||||||
Logger.info("MAIN: Calling CouchPotatoServer to post-process: %s", videofile) # can we use logger while logfile open?
|
Logger.info("MAIN: Calling CouchPotatoServer to post-process: %s", inputName) # can we use logger while logfile open?
|
||||||
autoProcessMovie.process(outputDestination, inputName, status)
|
autoProcessMovie.process(outputDestination, inputName, status)
|
||||||
elif inputCategory == tvCategory:
|
elif inputCategory == tvCategory:
|
||||||
Logger.info("MAIN: Calling Sick-Beard to post-process: %s", videofile) # can we use logger while logfile open?
|
Logger.info("MAIN: Calling Sick-Beard to post-process: %s", inputName) # can we use logger while logfile open?
|
||||||
autoProcessTV.processEpisode(outputDestination, inputName, status)
|
autoProcessTV.processEpisode(outputDestination, inputName, status)
|
||||||
|
|
||||||
# Check if the file still exists in the post-process directory
|
# Check if the file still exists in the post-process directory
|
||||||
|
@ -354,7 +354,7 @@ while os.path.exists(outputDestination): # while this directory is still here,
|
||||||
break
|
break
|
||||||
time.sleep(10) #Just stop this looping infinitely and hogging resources for 3 minutes ;)
|
time.sleep(10) #Just stop this looping infinitely and hogging resources for 3 minutes ;)
|
||||||
else: # CPS (and SickBeard) have finished. We can now resume seeding.
|
else: # CPS (and SickBeard) have finished. We can now resume seeding.
|
||||||
Logger.info("MAIN: Post-process appears to have succeeded for: %s", videofile)
|
Logger.info("MAIN: Post-process appears to have succeeded for: %s", inputName)
|
||||||
|
|
||||||
# Hardlink solution with uTorrent
|
# Hardlink solution with uTorrent
|
||||||
if inputHash and useLink:
|
if inputHash and useLink:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue