0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-25 02:45:12 +00:00

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

View file

@ -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: