happypandax / plugins

Plugins for HappyPanda X
https://happypandax.github.io/
GNU Lesser General Public License v3.0
33 stars 15 forks source link

EH Search quotes the whole query #30

Closed rwchunk closed 5 years ago

rwchunk commented 5 years ago

Describe the bug Search query has quotes around it, which can prevent results from appearing if the query has more than the title alone.

To Reproduce Unpacked to C:\hpx setup with postgre, import galleries, enable plugins, start trying to match metadata most folders are limited in information, most only have the artist/title

Screenshots image image image

Environment:

twiddli commented 5 years ago

Hello, the ehentai-metadata plugin has an option search_query to customize the string passed to the website. The default value for this option searches the title with no quotes. Did you maybe modify it?

rwchunk commented 5 years ago

No, I didn't see that. I checked to be sure and it does come like this and is the same in my files. https://github.com/happypandax/plugins/blob/de4c4d5ebdd0c465657e42ed5a0d5d36ecb80b33/plugins/EHentai%20Metadata/main.py#L45

twiddli commented 5 years ago

try adding this to your config.yaml

plugin:
    config:
        ehentai-metadata:
            search_query: {title}
rwchunk commented 5 years ago

Still happening. around line 12739 debug - Copy.log

this message also appears while that was in the config: image update: after adding the code to the config, the program changes it to this when starting up image

twiddli commented 5 years ago

Oh right, sorry for the confusion, I meant this:

plugin:
    config:
        ehentai-metadata:
            search_query: '{title}'
rwchunk commented 5 years ago

Still happening.

rwchunk commented 5 years ago

debug.log more log

twiddli commented 5 years ago

this should now be fixed in EHentai Metadata v1.2.0