From: Remita Amine Date: Wed, 17 Aug 2016 10:03:09 +0000 (+0100) Subject: [discoverygo] extend _VALID_URL to support other networks X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=7273e5849b27cb7d0f4d5f40e7801cab2da85ae3;p=youtube-dl.git [discoverygo] extend _VALID_URL to support other networks --- diff --git a/youtube_dl/extractor/discoverygo.py b/youtube_dl/extractor/discoverygo.py index adb68b96c..cba709935 100644 --- a/youtube_dl/extractor/discoverygo.py +++ b/youtube_dl/extractor/discoverygo.py @@ -11,7 +11,17 @@ from ..utils import ( class DiscoveryGoIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?discoverygo\.com/(?:[^/]+/)*(?P[^/?#&]+)' + _VALID_URL = r'''(?x)https?://(?:www\.)?(?: + discovery| + investigationdiscovery| + discoverylife| + animalplanet| + ahctv| + destinationamerica| + sciencechannel| + tlc| + velocitychannel + )go\.com/(?:[^/]+/)*(?P[^/?#&]+)''' _TEST = { 'url': 'https://www.discoverygo.com/love-at-first-kiss/kiss-first-ask-questions-later/', 'info_dict': {