diff options
author | blissland <blissland.house@googlemail.com> | 2015-05-06 11:48:36 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2015-05-06 15:06:10 +0200 |
commit | d6a1738892038940ef4af59a33aeddc99ef0c966 (patch) | |
tree | 55455bf913e5b3fff035c0a48d80fbbf168e878d /youtube_dl/extractor | |
parent | b326b07adc49466a4bdd0ea3c63f329a9e523121 (diff) |
[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
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/archiveorg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/archiveorg.py b/youtube_dl/extractor/archiveorg.py index 9fc35a42b..8feb7cb74 100644 --- a/youtube_dl/extractor/archiveorg.py +++ b/youtube_dl/extractor/archiveorg.py @@ -33,7 +33,7 @@ class ArchiveOrgIE(InfoExtractor): def _real_extract(self, 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) def get_optional(data_dict, field): |