1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-24 05:32:52 +08:00

[niconico] Update fallback video title regex:

Actually this code path now is like a triple fallback and may not
be reached by anyone ever again, nevertheless...
This commit is contained in:
Aleksander Nitecki 2017-08-06 19:27:22 +02:00
parent ee6a611665
commit bd1d1b7a4b

View File

@ -340,7 +340,7 @@ class NiconicoIE(InfoExtractor):
title = self._og_search_title(webpage, default=None)
if not title:
title = self._html_search_regex(
r'<span[^>]+class="videoHeaderTitle"[^>]*>([^<]+)</span>',
r'<h1[^>]+class="txt-title"[^>]*>([^<]+)</h1>',
webpage, 'video title')
watch_api_data_string = self._html_search_regex(