golift / starr

Starr Library: Fully functional go package to interact with Lidarr, Prowlarr, Radarr, Readarr, and Sonarr APIs.
https://golift.io/discord
MIT License
68 stars 18 forks source link

feat: indexer #86

Closed Fuochi closed 1 year ago

Fuochi commented 1 year ago

First two were pretty straightforward, I hope I haven't missed anything. For the latest, I tried to run simple test and it worked. However, I think that if we merge this, we'll have to work again on prowlarr's indexer in the future.

If you don't like the prowlarr code, I can remove it from this PR.

Fuochi commented 1 year ago

The code seems fine. What's wrong with Prowlarr?

Nothing specific, but I have a feeling that it could be improved since indexers are the main object of prowlarr, I made just few tests which probably don't cover all the use cases. Also, more methods can be added later.