mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-12 08:16:03 -07:00
Complete re-code of linking in TorrentToMedia
This commit is contained in:
parent
06c2dae5ce
commit
6a0158d801
14 changed files with 291 additions and 208 deletions
|
@ -32,6 +32,8 @@
|
|||
import os
|
||||
import sys
|
||||
import nzbtomedia
|
||||
from nzbtomedia.nzbToMediaUtil import joinPath
|
||||
|
||||
|
||||
def is_sample(filePath, inputName, maxSampleSize, SampleIDs):
|
||||
# 200 MB in bytes
|
||||
|
@ -101,7 +103,7 @@ if os.environ.has_key('NZBOP_SCRIPTDIR') and not os.environ['NZBOP_VERSION'][0:5
|
|||
for dirpath, dirnames, filenames in os.walk(os.environ['NZBPP_DIRECTORY']):
|
||||
for file in filenames:
|
||||
|
||||
filePath = os.path.join(dirpath, file)
|
||||
filePath = joinPath(dirpath, file)
|
||||
fileName, fileExtension = os.path.splitext(file)
|
||||
|
||||
if fileExtension in mediaContainer: # If the file is a video file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue