projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2ae7e2
)
Fix for JSON meta data download
author
Matthias Küch
<mail@matthias-kuech.de>
Tue, 3 Oct 2017 13:17:28 +0000
(15:17 +0200)
committer
Matthias Küch
<mail@matthias-kuech.de>
Tue, 3 Oct 2017 13:17:28 +0000
(15:17 +0200)
Added fixes according to #13651 and user @remitamine
youtube_dl/extractor/nbc.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nbc.py
b/youtube_dl/extractor/nbc.py
index 836a41f0694dd20b3024ecdd97376d340f322e02..35151f5274d2452be7cb508ec76e36db8fab9d9e 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'
(?P<permalink>https?
://(?:www\.)?nbc\.com/[^/]+/video/[^/]+/(?P<id>n?\d+))'
+ _VALID_URL = r'
https?(?P<permalink>
://(?:www\.)?nbc\.com/[^/]+/video/[^/]+/(?P<id>n?\d+))'
_TESTS = [
{
@@
-72,6
+72,7
@@
class NBCIE(AdobePassIE):
def _real_extract(self, url):
permalink, video_id = re.match(self._VALID_URL, url).groups()
+ permalink = 'http' + permalink
video_data = self._download_json(
'https://api.nbc.com/v3/videos', video_id, query={
'filter[permalink]': permalink,