|
|
@ -492,13 +492,12 @@ class NiconicoIE(InfoExtractor):
|
|
|
|
self._sort_formats(formats)
|
|
|
|
self._sort_formats(formats)
|
|
|
|
|
|
|
|
|
|
|
|
# Start extracting information
|
|
|
|
# Start extracting information
|
|
|
|
title = get_video_info_web('originalTitle')
|
|
|
|
title = (
|
|
|
|
if not title:
|
|
|
|
get_video_info_web(['originalTitle', 'title'])
|
|
|
|
title = self._og_search_title(webpage, default=None)
|
|
|
|
or self._og_search_title(webpage, default=None)
|
|
|
|
if not title:
|
|
|
|
or self._html_search_regex(
|
|
|
|
title = self._html_search_regex(
|
|
|
|
|
|
|
|
r'<span[^>]+class="videoHeaderTitle"[^>]*>([^<]+)</span>',
|
|
|
|
r'<span[^>]+class="videoHeaderTitle"[^>]*>([^<]+)</span>',
|
|
|
|
webpage, 'video title')
|
|
|
|
webpage, 'video title'))
|
|
|
|
|
|
|
|
|
|
|
|
watch_api_data_string = self._html_search_regex(
|
|
|
|
watch_api_data_string = self._html_search_regex(
|
|
|
|
r'<div[^>]+id="watchAPIDataContainer"[^>]+>([^<]+)</div>',
|
|
|
|
r'<div[^>]+id="watchAPIDataContainer"[^>]+>([^<]+)</div>',
|
|
|
|