mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix original language serie fetch
This commit is contained in:
parent
95a2766aee
commit
6af791ca72
@ -255,7 +255,7 @@ class TVDB(Provider):
|
||||
async def process_translation(lang: str) -> Optional[ShowTranslation]:
|
||||
data = (
|
||||
await self.get(f"series/{show_id}/translations/{lang}")
|
||||
if lang is not ret["orginalLanguage"]
|
||||
if lang is not ret["data"]["originalLanguage"]
|
||||
else ret
|
||||
)
|
||||
return ShowTranslation(
|
||||
@ -287,8 +287,8 @@ class TVDB(Provider):
|
||||
)
|
||||
|
||||
languages = (
|
||||
[*self._languages, ret["originalLanguage"]]
|
||||
if ret["originalLanguage"] not in self._languages
|
||||
[*self._languages, ret["data"]["originalLanguage"]]
|
||||
if ret["data"]["originalLanguage"] not in self._languages
|
||||
else self._languages
|
||||
)
|
||||
translations = await asyncio.gather(
|
||||
|
Loading…
x
Reference in New Issue
Block a user