animetosho2mks: Work with older format
An older format has no language flag for subtitles.
This commit is contained in:
parent
87ff30582f
commit
83e88d682b
|
@ -13,7 +13,11 @@ class SubtitleTrack:
|
|||
|
||||
def _parse_filename(self):
|
||||
basename = self.filename.split(".")[0]
|
||||
try:
|
||||
language = basename.split("_")[1]
|
||||
except IndexError:
|
||||
# older format
|
||||
language = "eng"
|
||||
|
||||
return language
|
||||
|
||||
|
|
Loading…
Reference in a new issue