From 44c8cdb72891f9a8bbabc8bd133c7ee3bbd11f43 Mon Sep 17 00:00:00 2001 From: bashonly <88596187+bashonly@users.noreply.github.com> Date: Sat, 26 Oct 2024 15:19:13 +0000 Subject: [PATCH] post-merge cleanup --- yt_dlp/extractor/ceskatelevize.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yt_dlp/extractor/ceskatelevize.py b/yt_dlp/extractor/ceskatelevize.py index dc38a64c86..aa8fd70eab 100644 --- a/yt_dlp/extractor/ceskatelevize.py +++ b/yt_dlp/extractor/ceskatelevize.py @@ -1,5 +1,5 @@ -import re import json +import re import urllib.parse from .common import InfoExtractor @@ -178,7 +178,7 @@ def _real_extract(self, url): 'requestSource': current_item.get('requestSource'), 'drm': current_item.get('drm'), 'quality': current_item.get('quality'), - }] + }], } data = {'data': json.dumps(data).encode('utf-8')} else: @@ -231,7 +231,7 @@ def _real_extract(self, url): if playlist_url: if playlist_url == 'error_region': raise ExtractorError(NOT_AVAILABLE_STRING, expected=True) - req = Request(compat_urllib_parse_unquote(playlist_url)) + req = Request(urllib.parse.unquote(playlist_url)) req.headers['Referer'] = url playlist = self._download_json(req, playlist_id, fatal=False) if not playlist: