mirror of https://github.com/yt-dlp/yt-dlp.git
Updated title extraction method to allow '(' in title but only if it is not trailing from the <title> tag
This commit is contained in:
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…
Reference in New Issue