mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[niconico] Fix for when logged in
Related: https://github.com/yt-dlp/yt-dlp/issues/171#issuecomment-803692716 Co-authored by: CXwudi, xtkoba
This commit is contained in:
		| @@ -492,13 +492,12 @@ class NiconicoIE(InfoExtractor): | ||||
|         self._sort_formats(formats) | ||||
|  | ||||
|         # Start extracting information | ||||
|         title = get_video_info_web('originalTitle') | ||||
|         if not title: | ||||
|             title = self._og_search_title(webpage, default=None) | ||||
|         if not title: | ||||
|             title = self._html_search_regex( | ||||
|         title = ( | ||||
|             get_video_info_web(['originalTitle', 'title']) | ||||
|             or self._og_search_title(webpage, default=None) | ||||
|             or self._html_search_regex( | ||||
|                 r'<span[^>]+class="videoHeaderTitle"[^>]*>([^<]+)</span>', | ||||
|                 webpage, 'video title') | ||||
|                 webpage, 'video title')) | ||||
|  | ||||
|         watch_api_data_string = self._html_search_regex( | ||||
|             r'<div[^>]+id="watchAPIDataContainer"[^>]+>([^<]+)</div>', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan