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

pull/7631/head
Huntington Pennington 11 months ago
parent 1894d50e97
commit 4e1d7fa791

@ -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 {

Loading…
Cancel
Save