Updated title extraction method to allow '(' in title but only if it is not trailing from the <title> tag

This commit is contained in:
Huntington Pennington 2023-07-28 06:59:13 -04:00
parent 1894d50e97
commit 4e1d7fa791
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@ class MegaTubeIE(InfoExtractor):
thumbnail = data_json.get('preview_url')
title = (self._og_search_title(
webpage, default=None) or self._html_extract_title(
webpage).split("(")[0]
webpage, default=None) or re.sub("(.*)\(.*\)", "\\1",
self._html_extract_title(webpage)).strip()
).strip()
return {