mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
add imdb_id to file name. https://github.com/RuudBurger/CouchPotatoServer/issues/3431
This commit is contained in:
parent
c6c729aef8
commit
66e1f40789
1 changed files with 5 additions and 0 deletions
|
@ -163,6 +163,11 @@ class autoProcessMovie:
|
||||||
num_files += 1
|
num_files += 1
|
||||||
if transcoder.isVideoGood(video):
|
if transcoder.isVideoGood(video):
|
||||||
good_files += 1
|
good_files += 1
|
||||||
|
if not release and not ".cp(tt" in video and imdbid:
|
||||||
|
videoName, videoExt = os.path.splitext(video)
|
||||||
|
video2 = "%s.cp(%s)%s" % (videoName, imdbid, videoExt)
|
||||||
|
logger.debug('Renaming: %s to: %s' % (video, video2))
|
||||||
|
os.rename(video, video2)
|
||||||
if num_files > 0 and good_files == num_files:
|
if num_files > 0 and good_files == num_files:
|
||||||
if status:
|
if status:
|
||||||
logger.info("Status shown as failed from Downloader, but %s valid video files found. Setting as successful." % (str(good_files)), section)
|
logger.info("Status shown as failed from Downloader, but %s valid video files found. Setting as successful." % (str(good_files)), section)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue