celiao / tmdbsimple

A wrapper for The Movie Database API v3.
GNU General Public License v3.0
583 stars 121 forks source link

TV_Seasons overwrites its parent series id when info() is called. #31

Closed aulemahal closed 7 years ago

aulemahal commented 7 years ago

When calling TV_Seasons.info(), the id field in the response overwrites the series id originally stored in TV_Seasons.id making any further request (another info(), images() or videos(), etc...) raise a 404 error.

I think the same mechanism as in TV_Episodes could be implemented there: the series id in series_id with a new function _get_series_id_season_number_path. That should fix it.

(Sorry for two issues opening back to back, if I have time I'll suggest a pull request fixing these! And thanks for the nice module!)