1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-28 09:30:57 +01:00

[rtve:live] Fix extraction (closes #11529)

This commit is contained in:
Sergey M․ 2016-12-25 04:02:29 +07:00
parent 4606c34e19
commit b63005f5af
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -209,7 +209,10 @@ class RTVELiveIE(InfoExtractor):
title += ' ' + time.strftime('%Y-%m-%dZ%H%M%S', start_time) title += ' ' + time.strftime('%Y-%m-%dZ%H%M%S', start_time)
vidplayer_id = self._search_regex( vidplayer_id = self._search_regex(
r'playerId=player([0-9]+)', webpage, 'internal video ID') (r'playerId=player([0-9]+)',
r'class=["\'].*?\blive_mod\b.*?["\'][^>]+data-assetid=["\'](\d+)',
r'data-id=["\'](\d+)'),
webpage, 'internal video ID')
png_url = 'http://www.rtve.es/ztnr/movil/thumbnail/amonet/videos/%s.png' % vidplayer_id png_url = 'http://www.rtve.es/ztnr/movil/thumbnail/amonet/videos/%s.png' % vidplayer_id
png = self._download_webpage(png_url, video_id, 'Downloading url information') png = self._download_webpage(png_url, video_id, 'Downloading url information')
m3u8_url = _decrypt_url(png) m3u8_url = _decrypt_url(png)