1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2025-01-07 13:47:54 +01:00

[narando] Fix bad method of extracting player_id

This commit is contained in:
ealgase 2018-11-20 20:39:07 -05:00
parent fed1f5ee0f
commit d33506b6d7

View File

@ -32,7 +32,7 @@ class NarandoIE(InfoExtractor):
# TODO more code goes here, for example ...
title = self._html_search_regex(r'<h1 class="visible-xs h3">(.+?)</h1>', webpage, 'title')
# print(title)
player_id = self._html_search_regex(" ".join(r'[\n\r].*https:\/\/narando.com\/r\/\s*([^"]*)'.split()), webpage, 'player_id')
player_id = self._html_search_regex(r'[\n\r].*https:\/\/narando.com\/r\/\s*([^"]*)', webpage, 'player_id')
player_page = self._download_webpage('https://narando.com/widget?r=' + player_id, player_id)
download_url = self._html_search_regex(r'.<div class="stream_url hide">\s*([^?]*)', player_page, 'download_url')
description = self._html_search_regex(r'<meta content="(.+?)" property="og:description" />', webpage, 'description')