mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 05:37:07 -05:00 
			
		
		
		
	screencast.com: fallback on page title
When determining the title of the page, use the <title> tag of the page
This commit is contained in:
		
				
					committed by
					
						
						Sergey M․
					
				
			
			
				
	
			
			
			
						parent
						
							81de73e5b4
						
					
				
				
					commit
					791d6aaecc
				
			@@ -97,7 +97,8 @@ class ScreencastIE(InfoExtractor):
 | 
				
			|||||||
        if title is None:
 | 
					        if title is None:
 | 
				
			||||||
            title = self._html_search_regex(
 | 
					            title = self._html_search_regex(
 | 
				
			||||||
                [r'<b>Title:</b> ([^<]*)</div>',
 | 
					                [r'<b>Title:</b> ([^<]*)</div>',
 | 
				
			||||||
                 r'class="tabSeperator">></span><span class="tabText">(.*?)<'],
 | 
					                 r'class="tabSeperator">></span><span class="tabText">(.*?)<',
 | 
				
			||||||
 | 
					                 r'<title>([^<]*)</title>'],
 | 
				
			||||||
                webpage, 'title')
 | 
					                webpage, 'title')
 | 
				
			||||||
        thumbnail = self._og_search_thumbnail(webpage)
 | 
					        thumbnail = self._og_search_thumbnail(webpage)
 | 
				
			||||||
        description = self._og_search_description(webpage, default=None)
 | 
					        description = self._og_search_description(webpage, default=None)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user