mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-15 10:25:13 +08:00
Correction fixing issue #31
This commit is contained in:
parent
3a4e646c76
commit
994b76845f
1 changed files with 7 additions and 4 deletions
|
@ -21,9 +21,11 @@ def list_subtitles(file):
|
||||||
try:
|
try:
|
||||||
languages.append([str(pycountry.languages.lookup(subtitle_track.language).alpha_2),None])
|
languages.append([str(pycountry.languages.lookup(subtitle_track.language).alpha_2),None])
|
||||||
except:
|
except:
|
||||||
pass
|
print subtitle_track.language
|
||||||
|
#pass
|
||||||
except:
|
except:
|
||||||
pass
|
print file
|
||||||
|
#pass
|
||||||
|
|
||||||
subtitles = core.search_external_subtitles(file)
|
subtitles = core.search_external_subtitles(file)
|
||||||
|
|
||||||
|
@ -43,12 +45,13 @@ def store_subtitles(file):
|
||||||
|
|
||||||
for subtitle_track in mkv.subtitle_tracks:
|
for subtitle_track in mkv.subtitle_tracks:
|
||||||
try:
|
try:
|
||||||
languages.append([str(pycountry.languages.lookup(subtitle_track.language).alpha_2),None])
|
actual_subtitles.append([str(pycountry.languages.lookup(subtitle_track.language).alpha_2),None])
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
subtitles = core.search_external_subtitles(file)
|
subtitles = core.search_external_subtitles(file)
|
||||||
|
|
||||||
for subtitle, language in subtitles.iteritems():
|
for subtitle, language in subtitles.iteritems():
|
||||||
|
|
Loading…
Reference in a new issue