[discovery] add support go.discovery.com URLs
authorRemita Amine <remitamine@gmail.com>
Sat, 20 Jul 2019 19:20:30 +0000 (20:20 +0100)
committerRemita Amine <remitamine@gmail.com>
Sat, 20 Jul 2019 19:20:53 +0000 (20:20 +0100)
youtube_dl/extractor/discovery.py

index b70c307a75b520aa63e44fea69762cacc6bbc319..9003545cedfc70aee5c9bf8de64e455fa6275601 100644 (file)
@@ -19,9 +19,9 @@ from ..compat import compat_HTTPError
 class DiscoveryIE(DiscoveryGoBaseIE):
     _VALID_URL = r'''(?x)https?://
         (?P<site>
+            (?:(?:www|go)\.)?discovery|
             (?:www\.)?
                 (?:
-                    discovery|
                     investigationdiscovery|
                     discoverylife|
                     animalplanet|
@@ -56,6 +56,9 @@ class DiscoveryIE(DiscoveryGoBaseIE):
     }, {
         'url': 'https://www.investigationdiscovery.com/tv-shows/final-vision/full-episodes/final-vision',
         '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_BYPASS = False