i found an issue with the query generation that is inconsistent with the actual api. this is regarding getting trending tv series or movies, and occurs inside TmdbTrending.java. i am using themoviedbapi version 2.0.2:
TmdbResponseException(responseCode=TmdbResponseCode.RESOURCE_NOT_FOUND(tmdbCode=34, httpStatus=404, success=false, message=The resource you requested could not be found.))
at info.movito.themoviedbapi.AbstractTmdbApi.mapJsonResult(AbstractTmdbApi.java:154)
at info.movito.themoviedbapi.AbstractTmdbApi.mapJsonResult(AbstractTmdbApi.java:110)
at info.movito.themoviedbapi.AbstractTmdbApi.mapJsonResult(AbstractTmdbApi.java:83)
at info.movito.themoviedbapi.AbstractTmdbApi.mapJsonResult(AbstractTmdbApi.java:58)
the generated query is:
https://api.themoviedb.org/3/trending/tv?time_window=week&language=en-US
i found an issue with the query generation that is inconsistent with the actual api. this is regarding getting trending tv series or movies, and occurs inside TmdbTrending.java. i am using themoviedbapi version 2.0.2:
this throws an error:
the generated query is:
https://api.themoviedb.org/3/trending/tv?time_window=week&language=en-US
checking the TMdB specifications at https://developer.themoviedb.org/reference/trending-tv the correct query should be:
https://api.themoviedb.org/3/trending/tv/week?language=en-US
to fix this, the day or week syntax should be part of url path, rather than a parameter.