aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2017-10-03 14:49:55 +0000
committerGitHub <noreply@github.com>2017-10-03 14:49:55 +0000
commitbfd484ccff4ea9d16af9515416d4f35d14d5b41d (patch)
tree04542fcb58de166336b9613233e10130bb897b0f
parentd2ae7e24e5c574fa45621771a134e58b21443e5f (diff)
parentb7e14f06a4a4fbaafc593c2f118e4b0f5d8d7937 (diff)
downloadyoutube-dl-bfd484ccff4ea9d16af9515416d4f35d14d5b41d.tar.xz
Merge pull request #14392 from snipem/nbc-fix
Fix for JSON meta data download(closes #13651)
-rw-r--r--youtube_dl/extractor/nbc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/nbc.py b/youtube_dl/extractor/nbc.py
index 836a41f06..35151f527 100644
--- 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,