diff --git a/apiget/animeapi.py b/apiget/animeapi.py index eccfbbb..1b87c49 100644 --- a/apiget/animeapi.py +++ b/apiget/animeapi.py @@ -155,7 +155,7 @@ def __dataTranslated(self, sourceData, srcLanguage,defaultLang=False) -> str: """ if defaultLang!=True: sourceData = self.translator.translate(sourceData, src=srcLanguage, dest=self.languague_app).text - elif defaultLang: + elif defaultLang==True: sourceData = self.translator.translate(sourceData, src=srcLanguage, dest='en').text new_sourceData = sourceData.replace('\u200b', '').replace('\n\n', '') return str(new_sourceData)