mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-09-03 00:25:08 +00:00
[utils] Add parse_qs
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user