mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
fix extraction of subtitle stream without language tag
This commit is contained in:
parent
3eb045690f
commit
8d9d7cc298
1 changed files with 4 additions and 1 deletions
|
@ -401,7 +401,10 @@ def extract_subs(file, newfilePath, bitbucket):
|
||||||
num = len(subStreams)
|
num = len(subStreams)
|
||||||
for n in range(num):
|
for n in range(num):
|
||||||
sub = subStreams[n]
|
sub = subStreams[n]
|
||||||
lan = sub["tags"]["language"]
|
try:
|
||||||
|
lan = sub["tags"]["language"]
|
||||||
|
except:
|
||||||
|
lan = "unk"
|
||||||
|
|
||||||
if num == 1:
|
if num == 1:
|
||||||
outputFile = os.path.join(subdir, "%s.srt" %(name))
|
outputFile = os.path.join(subdir, "%s.srt" %(name))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue