projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3348243
)
[nbc] Add another theplatform pattern
author
Sergey M?
<dstftw@gmail.com>
Tue, 8 Dec 2015 15:16:58 +0000
(21:16 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 8 Dec 2015 15:35:42 +0000
(21:35 +0600)
youtube_dl/extractor/nbc.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nbc.py
b/youtube_dl/extractor/nbc.py
index 7de86a969866fe28ba6177a9e4bc3ba628225796..4c1eca96f2b789521f998b05f1d5dcae750cb678 100644
(file)
--- a/
youtube_dl/extractor/nbc.py
+++ b/
youtube_dl/extractor/nbc.py
@@
-63,6
+63,7
@@
class NBCIE(InfoExtractor):
theplatform_url = unescapeHTML(lowercase_escape(self._html_search_regex(
[
r'(?:class="video-player video-player-full" data-mpx-url|class="player" src)="(.*?)"',
+ r'<iframe[^>]+src="((?:https?:)?//player\.theplatform\.com/[^"]+)"',
r'"embedURL"\s*:\s*"([^"]+)"'
],
webpage, 'theplatform url').replace('_no_endcard', '').replace('\\/', '/')))