mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
move cp(ttxxxx) add to file AFTER transcoding. Fixes #545
This commit is contained in:
parent
27f740c106
commit
a78bcbca4d
1 changed files with 6 additions and 6 deletions
|
@ -178,11 +178,6 @@ class autoProcessMovie:
|
||||||
if transcoder.isVideoGood(video, status):
|
if transcoder.isVideoGood(video, status):
|
||||||
import_subs(video)
|
import_subs(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 success." % (str(good_files)), section)
|
logger.info("Status shown as failed from Downloader, but %s valid video files found. Setting as success." % (str(good_files)), section)
|
||||||
|
@ -210,7 +205,12 @@ class autoProcessMovie:
|
||||||
else:
|
else:
|
||||||
logger.error("Transcoding failed for files in %s" % (dirName), section)
|
logger.error("Transcoding failed for files in %s" % (dirName), section)
|
||||||
return [1, "%s: Failed to post-process - Transcoding failed" % (section) ]
|
return [1, "%s: Failed to post-process - Transcoding failed" % (section) ]
|
||||||
|
for video in listMediaFiles(dirName, media=True, audio=False, meta=False, archives=False):
|
||||||
|
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 method == "manage":
|
if method == "manage":
|
||||||
command = "/manage.update"
|
command = "/manage.update"
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue