TheEnigmaBlade / holo

Episode discussion bot for /r/anime.
https://reddit.com/r/anime
MIT License
82 stars 24 forks source link

Set manual episode limit to FUNimation episode feed #4

Closed OussamaDanba closed 8 years ago

OussamaDanba commented 8 years ago

The reason for doing this is that funimation has a limit of 50 results by default causing some entries not to get pulled. The 100000 limit was chosen arbitrarily but should be sufficient for at least our lifetimes.

TheEnigmaBlade commented 8 years ago

I looked into finding alternative solutions just in case, such as reverse ordering by pub date, but it seems ordering is hardcoded as ORDER BY TRIM(default_shows.title) (thanks PHP debug error page). This should be good enough for now.

OussamaDanba commented 8 years ago

The API used to have an offset which could be set but that seems to have (partially) broken at some point. Offset for shows still works fine but setting offset for episodes does nothing.