projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b505e98
)
[discoverygo] extend _VALID_URL to support other networks
author
Remita Amine
<remitamine@gmail.com>
Wed, 17 Aug 2016 10:03:09 +0000
(11:03 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Wed, 17 Aug 2016 10:03:09 +0000
(11:03 +0100)
youtube_dl/extractor/discoverygo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/discoverygo.py
b/youtube_dl/extractor/discoverygo.py
index adb68b96c4033a3ef5cf8dcf3357fa64ed73acb8..cba709935846fe579504afa543e800f6828d814f 100644
(file)
--- 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<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': {