|
|
@ -70,8 +70,8 @@ class TVDbObj:
|
|
|
|
|
|
|
|
|
|
|
|
def parse_title_summary(lang=None):
|
|
|
|
def parse_title_summary(lang=None):
|
|
|
|
place = "//div[@class='change_translation_text' and "
|
|
|
|
place = "//div[@class='change_translation_text' and "
|
|
|
|
place += f"@data-language='{lang}'" if lang else "not(@style='display:none')"
|
|
|
|
place += f"@data-language='{lang}']" if lang else "not(@style='display:none')]"
|
|
|
|
return parse_page(f"{place}/@data-title"), parse_page(f"{place}]/p/text()[normalize-space()]")
|
|
|
|
return parse_page(f"{place}/@data-title"), parse_page(f"{place}/p/text()[normalize-space()]")
|
|
|
|
|
|
|
|
|
|
|
|
self.title, self.summary = parse_title_summary(lang=self.language)
|
|
|
|
self.title, self.summary = parse_title_summary(lang=self.language)
|
|
|
|
if not self.title and self.language in language_translation:
|
|
|
|
if not self.title and self.language in language_translation:
|
|
|
|