aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/varzesh3.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-08-23 00:32:00 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-08-23 00:50:43 +0530
commit4dfbf8696b0c614eee480b44a86959b9a055fb97 (patch)
tree3b8c9c9a5d34112804df6c03885754c0a0d51cc8 /yt_dlp/extractor/varzesh3.py
parent8fc54b1230e360fe6543bbbe8eea19ca2e8e06f3 (diff)
downloadhypervideo-pre-4dfbf8696b0c614eee480b44a86959b9a055fb97.tar.lz
hypervideo-pre-4dfbf8696b0c614eee480b44a86959b9a055fb97.tar.xz
hypervideo-pre-4dfbf8696b0c614eee480b44a86959b9a055fb97.zip
[utils] Add `parse_qs`
Diffstat (limited to 'yt_dlp/extractor/varzesh3.py')
-rw-r--r--yt_dlp/extractor/varzesh3.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/yt_dlp/extractor/varzesh3.py b/yt_dlp/extractor/varzesh3.py
index f474ed73f..81313dc9d 100644
--- a/yt_dlp/extractor/varzesh3.py
+++ b/yt_dlp/extractor/varzesh3.py
@@ -2,12 +2,9 @@
from __future__ import unicode_literals
from .common import InfoExtractor
-from ..compat import (
- compat_urllib_parse_urlparse,
- compat_parse_qs,
-)
from ..utils import (
clean_html,
+ parse_qs,
remove_start,
)
@@ -59,7 +56,7 @@ class Varzesh3IE(InfoExtractor):
fb_sharer_url = self._search_regex(
r'<a[^>]+href="(https?://www\.facebook\.com/sharer/sharer\.php?[^"]+)"',
webpage, 'facebook sharer URL', fatal=False)
- sharer_params = compat_parse_qs(compat_urllib_parse_urlparse(fb_sharer_url).query)
+ sharer_params = parse_qs(fb_sharer_url)
thumbnail = sharer_params.get('p[images][0]', [None])[0]
video_id = self._search_regex(