Pfuenzle / AnisearchKomga

A Metadata Provider for Komga using AniSearch
37 stars 18 forks source link

Use a Listener to Track Newly Added Manga #4

Open CardcaptorRLH85 opened 2 years ago

CardcaptorRLH85 commented 2 years ago

Here's another feature request if you'd like, is there a way to have this addon listen for newly added manga rather than running it manually every time I add something to my library? That would be a "nice to have" type of addition. Especially for people who have very large libraries.

Pfuenzle commented 2 years ago

If you are using docker, I think you could achieve this using KEEPPROGRESS=True and restart: always in the docker-compose.yml. This should restart the container every time it finishes and only update new entries, which is basically like a listener. Otherwise I could add a new flag DAEMON=true or something, which, if set, goes back to the beginning after finishing and parses new metadata in a loop. For this, KEEPPROGRESS would have to be set so it doesnt run into a ratelimit. Is this sufficient?

I dont think a real listener would be possible, as I can only get a list of all entries, its afaik not possible to get notified on a newly added entry

CardcaptorRLH85 commented 2 years ago

The daemon idea seems like it would do what I want it to do.