]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[nbc] Add another theplatform pattern
authorSergey M? <dstftw@gmail.com>
Tue, 8 Dec 2015 15:16:58 +0000 (21:16 +0600)
committerSergey M․ <dstftw@gmail.com>
Tue, 8 Dec 2015 15:35:42 +0000 (21:35 +0600)
youtube_dl/extractor/nbc.py

index 7de86a969866fe28ba6177a9e4bc3ba628225796..4c1eca96f2b789521f998b05f1d5dcae750cb678 100644 (file)
@@ -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('\\/', '/')))