mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 13:11:11 -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)
|
||||
for n in range(num):
|
||||
sub = subStreams[n]
|
||||
lan = sub["tags"]["language"]
|
||||
try:
|
||||
lan = sub["tags"]["language"]
|
||||
except:
|
||||
lan = "unk"
|
||||
|
||||
if num == 1:
|
||||
outputFile = os.path.join(subdir, "%s.srt" %(name))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue