diff --git a/MTSP/__init__.py b/MTSP/__init__.py index eed5c56..c4b5b1c 100644 --- a/MTSP/__init__.py +++ b/MTSP/__init__.py @@ -87,6 +87,12 @@ class MTSP(Service): r = self.session.post(title.data['streamAccess']) access = r.json() tracks = DASH.from_url(access["data"]["stream"]["dash"]).to_tracks(title.language) + + # Audio tracks sometimes have 'random' language codes in the DASH manifest. + # Since there is only ever one language in practice anyway, force it to the correct one. + for track in tracks: + track.language = title.language + return tracks def get_chapters(self, title: Movie) -> list[Chapter]: