projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8c6ffc
)
[nbc] Add support for classic-tv videos
author
Logan B
<einstein95@users.noreply.github.com>
Wed, 25 Oct 2017 16:23:27 +0000
(
05:23
+1300)
committer
Sergey M
<dstftw@gmail.com>
Wed, 25 Oct 2017 16:23:27 +0000
(23:23 +0700)
youtube_dl/extractor/nbc.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nbc.py
b/youtube_dl/extractor/nbc.py
index 35151f5274d2452be7cb508ec76e36db8fab9d9e..554dec36e62dc246ea314ac07f9cff6b3c1323fe 100644
(file)
--- a/
youtube_dl/extractor/nbc.py
+++ b/
youtube_dl/extractor/nbc.py
@@
-15,7
+15,7
@@
from ..utils import (
class NBCIE(AdobePassIE):
- _VALID_URL = r'https?(?P<permalink>://(?:www\.)?nbc\.com/[^/]+/video/[^/]+/(?P<id>n?\d+))'
+ _VALID_URL = r'https?(?P<permalink>://(?:www\.)?nbc\.com/
(?:classic-tv/)?
[^/]+/video/[^/]+/(?P<id>n?\d+))'
_TESTS = [
{
@@
-67,7
+67,11
@@
class NBCIE(AdobePassIE):
'skip_download': True,
},
'skip': 'Only works from US',
- }
+ },
+ {
+ 'url': 'https://www.nbc.com/classic-tv/charles-in-charge/video/charles-in-charge-pilot/n3310',
+ 'only_matching': True,
+ },
]
def _real_extract(self, url):