Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Bad episode redirection #35

Closed
Dorian25 opened this issue Apr 10, 2023 · 0 comments
Closed

[BUG] Bad episode redirection #35

Dorian25 opened this issue Apr 10, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Dorian25
Copy link
Owner

class : VideoPlayerFrame
function : onChangeEpisode
code : numero_episode = int(self.var_episode.get().split(" ")[1]) - 1

Example if we select EPISODE 394 of the season 6 of One piece (Season 6 includes episodes 390 à 516 i.e. 126 episodes)

numero_episode = 393

IndexError: list index out of range

Solution :

Redefine the data structure schema to have directly a dictionary with the episode number as key and the url as value

@Dorian25 Dorian25 added the bug Something isn't working label Apr 10, 2023
@Dorian25 Dorian25 self-assigned this Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant