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:
parent
488abeca0b
commit
c9b8e6aefc
@ -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":
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user