mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[discovery] Add support for Scripps Networks watch domains(closes #17947)
This commit is contained in:
		| @@ -17,16 +17,29 @@ from ..compat import compat_HTTPError | ||||
|  | ||||
|  | ||||
| class DiscoveryIE(DiscoveryGoBaseIE): | ||||
|     _VALID_URL = r'''(?x)https?://(?:www\.)?(?P<site> | ||||
|             discovery| | ||||
|             investigationdiscovery| | ||||
|             discoverylife| | ||||
|             animalplanet| | ||||
|             ahctv| | ||||
|             destinationamerica| | ||||
|             sciencechannel| | ||||
|             tlc| | ||||
|             velocity | ||||
|     _VALID_URL = r'''(?x)https?:// | ||||
|         (?P<site> | ||||
|             (?:www\.)? | ||||
|                 (?: | ||||
|                     discovery| | ||||
|                     investigationdiscovery| | ||||
|                     discoverylife| | ||||
|                     animalplanet| | ||||
|                     ahctv| | ||||
|                     destinationamerica| | ||||
|                     sciencechannel| | ||||
|                     tlc| | ||||
|                     velocity | ||||
|                 )| | ||||
|             watch\. | ||||
|                 (?: | ||||
|                     hgtv| | ||||
|                     foodnetwork| | ||||
|                     travelchannel| | ||||
|                     diynetwork| | ||||
|                     cookingchanneltv| | ||||
|                     motortrend | ||||
|                 ) | ||||
|         )\.com(?P<path>/tv-shows/[^/]+/(?:video|full-episode)s/(?P<id>[^./?#]+))''' | ||||
|     _TESTS = [{ | ||||
|         'url': 'https://www.discovery.com/tv-shows/cash-cab/videos/dave-foley', | ||||
| @@ -71,7 +84,7 @@ class DiscoveryIE(DiscoveryGoBaseIE): | ||||
|  | ||||
|         if not access_token: | ||||
|             access_token = self._download_json( | ||||
|                 'https://www.%s.com/anonymous' % site, display_id, query={ | ||||
|                 'https://%s.com/anonymous' % site, display_id, query={ | ||||
|                     'authRel': 'authorization', | ||||
|                     'client_id': try_get( | ||||
|                         react_data, lambda x: x['application']['apiClientId'], | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Remita Amine
					Remita Amine