mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-09 12:07:03 +01:00
[discoverygo] extend _VALID_URL to support other networks
This commit is contained in:
parent
b505e98784
commit
7273e5849b
@ -11,7 +11,17 @@ from ..utils import (
|
|||||||
|
|
||||||
|
|
||||||
class DiscoveryGoIE(InfoExtractor):
|
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 = {
|
_TEST = {
|
||||||
'url': 'https://www.discoverygo.com/love-at-first-kiss/kiss-first-ask-questions-later/',
|
'url': 'https://www.discoverygo.com/love-at-first-kiss/kiss-first-ask-questions-later/',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
|
Loading…
Reference in New Issue
Block a user