mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 05:37:07 -05:00 
			
		
		
		
	[tnaflixnetwork:embed] Add _extract_urls
This commit is contained in:
		@@ -175,6 +175,12 @@ class TNAFlixNetworkEmbedIE(TNAFlixNetworkBaseIE):
 | 
			
		||||
        'only_matching': True,
 | 
			
		||||
    }]
 | 
			
		||||
 | 
			
		||||
    @staticmethod
 | 
			
		||||
    def _extract_urls(webpage):
 | 
			
		||||
        return [url for _, url in re.findall(
 | 
			
		||||
            r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//player\.(?:tna|emp)flix\.com/video/\d+)\1',
 | 
			
		||||
            webpage)]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class TNAFlixIE(TNAFlixNetworkBaseIE):
 | 
			
		||||
    _VALID_URL = r'https?://(?:www\.)?tnaflix\.com/[^/]+/(?P<display_id>[^/]+)/video(?P<id>\d+)'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user