From: Sergey M․ Date: Tue, 8 Dec 2015 15:16:14 +0000 (+0600) Subject: [nbc] Smuggle referer (Closes #7791) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b46b65ed370340159e77bf875e99fb93133b6492;p=youtube-dl [nbc] Smuggle referer (Closes #7791) --- diff --git a/youtube_dl/extractor/nbc.py b/youtube_dl/extractor/nbc.py index e683d24c4..7de86a969 100644 --- a/youtube_dl/extractor/nbc.py +++ b/youtube_dl/extractor/nbc.py @@ -11,6 +11,7 @@ from ..utils import ( ExtractorError, find_xpath_attr, lowercase_escape, + smuggle_url, unescapeHTML, ) @@ -67,7 +68,7 @@ class NBCIE(InfoExtractor): webpage, 'theplatform url').replace('_no_endcard', '').replace('\\/', '/'))) if theplatform_url.startswith('//'): theplatform_url = 'http:' + theplatform_url - return self.url_result(theplatform_url) + return self.url_result(smuggle_url(theplatform_url, {'source_url': url})) class NBCSportsVPlayerIE(InfoExtractor):