projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18e4088
)
[nbc] Smuggle referer (Closes #7791)
author
Sergey M․
<dstftw@gmail.com>
Tue, 8 Dec 2015 15:16:14 +0000
(21:16 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 8 Dec 2015 15:16:14 +0000
(21:16 +0600)
youtube_dl/extractor/nbc.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nbc.py
b/youtube_dl/extractor/nbc.py
index e683d24c45f1d706f728eb90a8a26da880dbafa3..7de86a969866fe28ba6177a9e4bc3ba628225796 100644
(file)
--- 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):