mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 06:10:12 +01:00
[ie/archiveorg] Fix format URL encoding (#9279)
Closes #9173 Authored by: bashonly
This commit is contained in:
parent
b05640d532
commit
3894ab9574
|
@ -300,7 +300,7 @@ def _real_extract(self, url):
|
||||||
is_logged_in = bool(self._get_cookies('https://archive.org').get('logged-in-sig'))
|
is_logged_in = bool(self._get_cookies('https://archive.org').get('logged-in-sig'))
|
||||||
if extension in KNOWN_EXTENSIONS and (not f.get('private') or is_logged_in):
|
if extension in KNOWN_EXTENSIONS and (not f.get('private') or is_logged_in):
|
||||||
entry['formats'].append({
|
entry['formats'].append({
|
||||||
'url': 'https://archive.org/download/' + identifier + '/' + f['name'],
|
'url': 'https://archive.org/download/' + identifier + '/' + urllib.parse.quote(f['name']),
|
||||||
'format': f.get('format'),
|
'format': f.get('format'),
|
||||||
'width': int_or_none(f.get('width')),
|
'width': int_or_none(f.get('width')),
|
||||||
'height': int_or_none(f.get('height')),
|
'height': int_or_none(f.get('height')),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user