1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 09:37:25 +00:00

Fix for history logging label of synced subtitles based on unknown language audio track.

This commit is contained in:
Louis Vézina 2020-07-27 22:03:52 -04:00
parent 9a7766c851
commit 0448c9d262

View file

@ -60,7 +60,8 @@ class SubSyncer:
self.reference_stream = "s:{}".format(i)
break
if not self.reference_stream:
using_what = "{0} embedded subtitle track".format(language_from_alpha3(embedded_subs['language'].alpha3))
using_what = "{0} embedded subtitle track".format(
language_from_alpha3(embedded_subs['language'].alpha3) or 'unknown language audio track')
self.reference_stream = "s:0"
elif 'audio' in data:
audio_tracks = data['audio']