From e010672ab5d2f5d12e295fe08a721005db257fc3 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Sat, 3 Jul 2021 18:08:08 +0200 Subject: [PATCH] [videa] Fix extraction (#463) Authored by: nyuszika7h --- yt_dlp/extractor/videa.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/yt_dlp/extractor/videa.py b/yt_dlp/extractor/videa.py index ab2c15cde..f7c24d259 100644 --- a/yt_dlp/extractor/videa.py +++ b/yt_dlp/extractor/videa.py @@ -12,6 +12,7 @@ from ..utils import ( mimetype2ext, parse_codecs, update_url_query, + urljoin, xpath_element, xpath_text, ) @@ -19,6 +20,7 @@ from ..compat import ( compat_b64decode, compat_ord, compat_struct_pack, + compat_urlparse, ) @@ -95,9 +97,13 @@ class VideaIE(InfoExtractor): def _real_extract(self, url): video_id = self._match_id(url) - query = {'v': video_id} - player_page = self._download_webpage( - 'https://videa.hu/player', video_id, query=query) + + video_page = self._download_webpage(url, video_id) + + player_url = self._search_regex( + r'