mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[discovery] add support go.discovery.com URLs
This commit is contained in:
		@@ -19,9 +19,9 @@ from ..compat import compat_HTTPError
 | 
				
			|||||||
class DiscoveryIE(DiscoveryGoBaseIE):
 | 
					class DiscoveryIE(DiscoveryGoBaseIE):
 | 
				
			||||||
    _VALID_URL = r'''(?x)https?://
 | 
					    _VALID_URL = r'''(?x)https?://
 | 
				
			||||||
        (?P<site>
 | 
					        (?P<site>
 | 
				
			||||||
 | 
					            (?:(?:www|go)\.)?discovery|
 | 
				
			||||||
            (?:www\.)?
 | 
					            (?:www\.)?
 | 
				
			||||||
                (?:
 | 
					                (?:
 | 
				
			||||||
                    discovery|
 | 
					 | 
				
			||||||
                    investigationdiscovery|
 | 
					                    investigationdiscovery|
 | 
				
			||||||
                    discoverylife|
 | 
					                    discoverylife|
 | 
				
			||||||
                    animalplanet|
 | 
					                    animalplanet|
 | 
				
			||||||
@@ -56,6 +56,9 @@ class DiscoveryIE(DiscoveryGoBaseIE):
 | 
				
			|||||||
    }, {
 | 
					    }, {
 | 
				
			||||||
        'url': 'https://www.investigationdiscovery.com/tv-shows/final-vision/full-episodes/final-vision',
 | 
					        'url': 'https://www.investigationdiscovery.com/tv-shows/final-vision/full-episodes/final-vision',
 | 
				
			||||||
        'only_matching': True,
 | 
					        'only_matching': True,
 | 
				
			||||||
 | 
					    }, {
 | 
				
			||||||
 | 
					        'url': 'https://go.discovery.com/tv-shows/alaskan-bush-people/videos/follow-your-own-road',
 | 
				
			||||||
 | 
					        'only_matching': True,
 | 
				
			||||||
    }]
 | 
					    }]
 | 
				
			||||||
    _GEO_COUNTRIES = ['US']
 | 
					    _GEO_COUNTRIES = ['US']
 | 
				
			||||||
    _GEO_BYPASS = False
 | 
					    _GEO_BYPASS = False
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user