funmaker / Hybooru

Hydrus-based booru-styled imageboard in React
https://booru.funmaker.moe/
MIT License
95 stars 15 forks source link

Rating: `Unable to locate any numerical rating service` #29

Closed LilianBoulard closed 1 year ago

LilianBoulard commented 1 year ago

Hi, I'm using the default configuration for the ratings, that is:

{
    "rating": {
        "enabled": true,
        "stars": 5,
        "serviceName": null
    }
}

But at runtime, it displays the error Unable to locate any numerical rating service! Rating disabled.

I don't understand what's a rating service, and I have found no doc on this. What am I doing wrong? Thanks

funmaker commented 1 year ago

Go to Hydrus > services > manage services and check if you have any local numerical rating service Here is documentation for them: https://hydrusnetwork.github.io/hydrus/getting_started_ratings.html They are used to assign some numerical values to your files, eg "stars" If you see this error mostly likely you do not use any numerical rating service in Hydrus so you can just set rating.enabled in configs.json to false to disable this warning. Or you can add a numerical rating service in Hydrus and rate your files so you can have these stars above post's metadata like in my demo for example.

image

LilianBoulard commented 1 year ago

Thanks for clarifying, I added a numerical rating service in Hydrus and it works fine now :)