[discoverygo] extend _VALID_URL to support other networks

pull/8/head
Remita Amine 2016-08-17 11:03:09 +01:00
rodzic b505e98784
commit 7273e5849b
1 zmienionych plików z 11 dodań i 1 usunięć

Wyświetl plik

@ -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': {