1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-27 01:56:52 +00:00

[nbc] Add another theplatform pattern

This commit is contained in:
Sergey M? 2015-12-08 21:16:58 +06:00 committed by Sergey M․
parent 3348243b7b
commit b09c122373

View file

@ -63,6 +63,7 @@ class NBCIE(InfoExtractor):
theplatform_url = unescapeHTML(lowercase_escape(self._html_search_regex( theplatform_url = unescapeHTML(lowercase_escape(self._html_search_regex(
[ [
r'(?:class="video-player video-player-full" data-mpx-url|class="player" src)="(.*?)"', r'(?:class="video-player video-player-full" data-mpx-url|class="player" src)="(.*?)"',
r'<iframe[^>]+src="((?:https?:)?//player\.theplatform\.com/[^"]+)"',
r'"embedURL"\s*:\s*"([^"]+)"' r'"embedURL"\s*:\s*"([^"]+)"'
], ],
webpage, 'theplatform url').replace('_no_endcard', '').replace('\\/', '/'))) webpage, 'theplatform url').replace('_no_endcard', '').replace('\\/', '/')))