ShokoAnime / ShokoServer

Repository for Shoko Server.
http://shokoanime.com/shoko-server/
MIT License
386 stars 75 forks source link

Implement TraktTV Ratelimiter #1011

Closed krbrs closed 1 year ago

krbrs commented 1 year ago

Tried implementing a rate limiter to get rid of http 429 errors on syncing to Trakt. I took the limiter from TVDB and altered it a bit. TraktTV wants 1 Second delay on POST according to Apiary: https://trakt.docs.apiary.io/#introduction/rate-limiting

Maybe someone can have a look at what I did there - I guess there is room for improvement, lol

da3dsoul commented 1 year ago

Looks like you took stuff from the wrong side of the merge

krbrs commented 1 year ago

yep i messed up kinda.. thinking about going back and creating a new pr when i fixed that up..

da3dsoul commented 1 year ago

I sometimes do that or make a second local branch, take the commits I made, reset the pr branch to master, then cherry pick the commits back