aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M? <dstftw@gmail.com>2015-12-08 21:16:58 +0600
committerSergey M․ <dstftw@gmail.com>2015-12-08 21:35:42 +0600
commitb09c122373ad3a1e04148aeeac735443fd91e39d (patch)
tree79baa53d0df21d2614fcfba6c569c7011ca18a05 /youtube_dl/extractor
parent3348243b7ba94e83dfb9d675fa0e701f97d3e220 (diff)
[nbc] Add another theplatform pattern
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/nbc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/nbc.py b/youtube_dl/extractor/nbc.py
index 7de86a969..4c1eca96f 100644
--- 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('\\/', '/')))