mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-07 05:31:11 -07:00
check for .x264 in archive parts. fixes #281
This commit is contained in:
parent
a1f659e21e
commit
ec6129cb36
2 changed files with 2 additions and 1 deletions
|
@ -208,7 +208,7 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
|
|||
except:
|
||||
Logger.exception("MAIN: Failed to link file: %s", file)
|
||||
# find part numbers in second "extension" from right, if we have more than 1 compressed file in the same directory.
|
||||
if re.search(r'\d+', os.path.splitext(fileName)[1]) and os.path.dirname(filePath) in extracted_folder and not (os.path.splitext(fileName)[1] in ['.720p','.1080p']):
|
||||
if re.search(r'\d+', os.path.splitext(fileName)[1]) and os.path.dirname(filePath) in extracted_folder and not any(item in os.path.splitext(fileName)[1] for item in ['.720p','.1080p','.x264']):
|
||||
part = int(re.search(r'\d+', os.path.splitext(fileName)[1]).group())
|
||||
if part == 1: # we only want to extract the primary part.
|
||||
Logger.debug("MAIN: Found primary part of a multi-part archive %s. Extracting", file)
|
||||
|
|
|
@ -6,6 +6,7 @@ Impacts Torrents
|
|||
Allow Headphones to remove torrents and data after processing.
|
||||
Delete torrent if uselink = move
|
||||
Added forceClean for outputDir. Works in file permissions prevent CP/SB from moving files.
|
||||
Ignore .x264 from archive "part" checks.
|
||||
|
||||
V9.2 05/03/2014
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue