mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 01:08:10 +00:00
[archive.org] Fix incorrect url condition (closes #5628)
The condition for assigning to json_url is the wrong way round: currently for url: aaa.com/xxx we get: aaa.com/xxx&output=json instead of the correct value: aaa.com/xxx?output=json
This commit is contained in:
parent
b326b07adc
commit
d6a1738892
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class ArchiveOrgIE(InfoExtractor):
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
|
||||||
json_url = url + ('?' if '?' in url else '&') + 'output=json'
|
json_url = url + ('&' if '?' in url else '?') + 'output=json'
|
||||||
data = self._download_json(json_url, video_id)
|
data = self._download_json(json_url, video_id)
|
||||||
|
|
||||||
def get_optional(data_dict, field):
|
def get_optional(data_dict, field):
|
||||||
|
|
Loading…
Reference in a new issue