]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[discoverygo] extend _VALID_URL to support other networks
authorRemita Amine <remitamine@gmail.com>
Wed, 17 Aug 2016 10:03:09 +0000 (11:03 +0100)
committerRemita Amine <remitamine@gmail.com>
Wed, 17 Aug 2016 10:03:09 +0000 (11:03 +0100)
youtube_dl/extractor/discoverygo.py

index adb68b96c4033a3ef5cf8dcf3357fa64ed73acb8..cba709935846fe579504afa543e800f6828d814f 100644 (file)
@@ -11,7 +11,17 @@ from ..utils import (
 
 
 class DiscoveryGoIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:www\.)?discoverygo\.com/(?:[^/]+/)*(?P<id>[^/?#&]+)'
+    _VALID_URL = r'''(?x)https?://(?:www\.)?(?:
+            discovery|
+            investigationdiscovery|
+            discoverylife|
+            animalplanet|
+            ahctv|
+            destinationamerica|
+            sciencechannel|
+            tlc|
+            velocitychannel
+        )go\.com/(?:[^/]+/)*(?P<id>[^/?#&]+)'''
     _TEST = {
         'url': 'https://www.discoverygo.com/love-at-first-kiss/kiss-first-ask-questions-later/',
         'info_dict': {