post-merge cleanup

This commit is contained in:
bashonly 2024-10-26 15:19:13 +00:00 committed by GitHub
parent 19003f882b
commit 44c8cdb728
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import re
import json import json
import re
import urllib.parse import urllib.parse
from .common import InfoExtractor from .common import InfoExtractor
@ -178,7 +178,7 @@ class CeskaTelevizeIE(InfoExtractor):
'requestSource': current_item.get('requestSource'), 'requestSource': current_item.get('requestSource'),
'drm': current_item.get('drm'), 'drm': current_item.get('drm'),
'quality': current_item.get('quality'), 'quality': current_item.get('quality'),
}] }],
} }
data = {'data': json.dumps(data).encode('utf-8')} data = {'data': json.dumps(data).encode('utf-8')}
else: else:
@ -231,7 +231,7 @@ class CeskaTelevizeIE(InfoExtractor):
if playlist_url: if playlist_url:
if playlist_url == 'error_region': if playlist_url == 'error_region':
raise ExtractorError(NOT_AVAILABLE_STRING, expected=True) 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 req.headers['Referer'] = url
playlist = self._download_json(req, playlist_id, fatal=False) playlist = self._download_json(req, playlist_id, fatal=False)
if not playlist: if not playlist: