mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[tnaflixnetworkbase] Improve title extraction
This commit is contained in:
parent
b47a75017b
commit
a1aadd09a4
1 changed files with 6 additions and 2 deletions
|
@ -118,8 +118,12 @@ def extract_video_url(vl):
|
||||||
xpath_text(cfg_xml, './startThumb', 'thumbnail'), 'http:')
|
xpath_text(cfg_xml, './startThumb', 'thumbnail'), 'http:')
|
||||||
thumbnails = self._extract_thumbnails(cfg_xml)
|
thumbnails = self._extract_thumbnails(cfg_xml)
|
||||||
|
|
||||||
|
title = None
|
||||||
|
if self._TITLE_REGEX:
|
||||||
title = self._html_search_regex(
|
title = self._html_search_regex(
|
||||||
self._TITLE_REGEX, webpage, 'title') if self._TITLE_REGEX else self._og_search_title(webpage)
|
self._TITLE_REGEX, webpage, 'title', default=None)
|
||||||
|
if not title:
|
||||||
|
title = self._og_search_title(webpage)
|
||||||
|
|
||||||
age_limit = self._rta_search(webpage) or 18
|
age_limit = self._rta_search(webpage) or 18
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue