mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-29 03:23:02 +00:00
post-merge cleanup
This commit is contained in:
parent
19003f882b
commit
44c8cdb728
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue