diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:10 +0000 |
commit | 137f07c27a88b07df57df5b2cdebebe3c7722bac (patch) | |
tree | 4ebdcbea6b540f69c40ba0be6ac766008030d149 /yt_dlp/extractor/skyit.py | |
parent | Adding debian version 2024.05.27-1. (diff) | |
download | yt-dlp-137f07c27a88b07df57df5b2cdebebe3c7722bac.tar.xz yt-dlp-137f07c27a88b07df57df5b2cdebebe3c7722bac.zip |
Merging upstream version 2024.07.01.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'yt_dlp/extractor/skyit.py')
-rw-r--r-- | yt_dlp/extractor/skyit.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/yt_dlp/extractor/skyit.py b/yt_dlp/extractor/skyit.py index 42d30f7..6e29732 100644 --- a/yt_dlp/extractor/skyit.py +++ b/yt_dlp/extractor/skyit.py @@ -1,8 +1,6 @@ +import urllib.parse + from .common import InfoExtractor -from ..compat import ( - compat_parse_qs, - compat_urllib_parse_urlparse, -) from ..utils import ( dict_get, int_or_none, @@ -56,7 +54,7 @@ class SkyItPlayerIE(InfoExtractor): def _real_extract(self, url): video_id = self._match_id(url) - domain = compat_parse_qs(compat_urllib_parse_urlparse( + domain = urllib.parse.parse_qs(urllib.parse.urlparse( url).query).get('domain', [None])[0] token = dict_get(self._TOKEN_MAP, (domain, 'sky')) video = self._download_json( @@ -64,7 +62,7 @@ class SkyItPlayerIE(InfoExtractor): video_id, query={ 'caller': 'sky', 'id': video_id, - 'token': token + 'token': token, }, headers=self.geo_verification_headers()) return self._parse_video(video, video_id) |