1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[reddit] fix submission-ID parsing (#104)

Uppercase characters caused a ValueError exception
This commit is contained in:
Mike Fährmann 2018-09-07 18:27:54 +02:00
parent 488abeca0b
commit c9b8e6aefc
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@
"date-max": 253402210800,
"date-format": "%Y-%m-%dT%H:%M:%S",
"id-min": "0",
"id-max": "ZIK0ZJ",
"id-max": "zik0zj",
"recursion": 0
},
"sankaku":

View File

@ -304,7 +304,7 @@ class RedditAPI():
def _parse_id(self, key, default):
sid = self.extractor.config(key)
return self._decode(sid.rpartition("_")[2]) if sid else default
return self._decode(sid.rpartition("_")[2].lower()) if sid else default
@staticmethod
def _decode(sid):