mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -07:00
simplify name search.
This commit is contained in:
parent
44b403d9dc
commit
c29a42b9b8
1 changed files with 2 additions and 8 deletions
|
@ -559,10 +559,7 @@ def ripISO(item, newDir, bitbucket):
|
||||||
concat = []
|
concat = []
|
||||||
m = 1
|
m = 1
|
||||||
while True:
|
while True:
|
||||||
if n + 1 < 10:
|
vtsName = 'VIDEO_TS%sVTS_%02d_%s.VOB' % (os.sep, n+1, str(m))
|
||||||
vtsName = 'VIDEO_TS%sVTS_0%s_%s.VOB' % (os.sep, str(n+1), str(m))
|
|
||||||
else:
|
|
||||||
vtsName = 'VIDEO_TS%sVTS_%s_%s.VOB' % (os.sep, str(n+1), str(m))
|
|
||||||
if vtsName in fileList:
|
if vtsName in fileList:
|
||||||
concat.append(vtsName)
|
concat.append(vtsName)
|
||||||
m += 1
|
m += 1
|
||||||
|
@ -587,10 +584,7 @@ def combineVTS(vtsPath):
|
||||||
concat = ''
|
concat = ''
|
||||||
m = 1
|
m = 1
|
||||||
while True:
|
while True:
|
||||||
if n + 1 < 10:
|
vtsName = 'VTS_%02d_%s.VOB' % (str(n+1), str(m))
|
||||||
vtsName = 'VTS_0%s_%s.VOB' % (str(n+1), str(m))
|
|
||||||
else:
|
|
||||||
vtsName = 'VTS_%s_%s.VOB' % (str(n+1), str(m))
|
|
||||||
if os.path.isfile(os.path.join(vtsPath, vtsName)):
|
if os.path.isfile(os.path.join(vtsPath, vtsName)):
|
||||||
concat = concat + '%s|' % (os.path.join(vtsPath, vtsName))
|
concat = concat + '%s|' % (os.path.join(vtsPath, vtsName))
|
||||||
m += 1
|
m += 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue