Skip to content

Conversation

@simonc56
Copy link
Contributor

Actually, to get the show of a TVEpisode we only have show name (self.show) which is not reliable because some shows have the same name.
The show trakt id is more reliable than show name because it is unique.
This PR adds show_id attribute to TVEpisode built from search request and uses it in further API requests instead of slug built from show name.

Example : Top Boy and Top Boy 2019
A TVEpisode from Top Boy 2019 uses slug top-boy (made from slugify(self.show) ) instead of top-boy-2019 to fetch data from trakt api. Therefore data received is wrong.

@simonc56 simonc56 force-pushed the get-show_id-from-episode-search branch from 3f75453 to da02d95 Compare October 23, 2022 12:51
glensc added a commit to glensc/python-pytrakt that referenced this pull request Oct 23, 2022
@glensc
Copy link
Contributor

glensc commented Oct 23, 2022

Carried to my fork:

@glensc glensc mentioned this pull request Oct 23, 2022
@glensc
Copy link
Contributor

glensc commented Nov 2, 2022

@twolaw please prepend [python-pytrakt] to this pr title, to indicate this pr has been carried. this will help understand the pull request status in this project.

@simonc56 simonc56 changed the title Add show_id attribute to TVEpisode found from search [python-pytrakt] Add show_id attribute to TVEpisode found from search Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants