Hi. I'd been frustrated by this plugin's inability to prefer english language search results. When I read the readme for the plugin it mentioned a "preferred_language" option that I didn't even know about. Since it's supposed to default to 'english', it should have just been working anyway but it wasn't.
I'm not a programmer but I'm pretty sure I was able to trace the issue to line 223 in EHentai Metadata/main.py:
found_urls = [(str(x.a.string), x.a['href']) for x in results] # title, url
I don't understand this line, but I think that (str(x.a.string) is supposed to extract the gallery title from each search result and for it me is consistently returning "None". When the plugin later goes to look for "english" in that string is then always false.
Since I don't actually know python enough to fix it, I've just added + " language:english" to the search string (i_title) and that'll suit my needs. :laughing:
Hi. I'd been frustrated by this plugin's inability to prefer english language search results. When I read the readme for the plugin it mentioned a "preferred_language" option that I didn't even know about. Since it's supposed to default to 'english', it should have just been working anyway but it wasn't.
I'm not a programmer but I'm pretty sure I was able to trace the issue to line 223 in EHentai Metadata/main.py:
found_urls = [(str(x.a.string), x.a['href']) for x in results] # title, url
I don't understand this line, but I think that
(str(x.a.string)
is supposed to extract the gallery title from each search result and for it me is consistently returning "None". When the plugin later goes to look for "english" in that string is then always false.Since I don't actually know python enough to fix it, I've just added
+ " language:english"
to the search string (i_title) and that'll suit my needs. :laughing: