mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-26 04:32:51 +01:00
[exhentai] improve 'favorites' extraction (closes #1360)
add special cases for when the favorite count is 0 (Never) or 1 (Once)
This commit is contained in:
parent
b6719becf1
commit
90830daf85
@ -246,6 +246,12 @@ class ExhentaiGalleryExtractor(ExhentaiExtractor):
|
||||
"torrentcount" : extr('>Torrent Download (', ')'),
|
||||
}
|
||||
|
||||
f = data["favorites"][0]
|
||||
if f == "N":
|
||||
data["favorites"] = "0"
|
||||
elif f == "O":
|
||||
data["favorites"] = "1"
|
||||
|
||||
data["lang"] = util.language_to_code(data["language"])
|
||||
data["tags"] = [
|
||||
text.unquote(tag.replace("+", " "))
|
||||
|
Loading…
Reference in New Issue
Block a user