Skip to content

make sure episodes get added to correct seasons#19

Merged
superolmo merged 1 commit intosuperolmo:mainfrom
max298:fix/episodes-in-season
Feb 18, 2026
Merged

make sure episodes get added to correct seasons#19
superolmo merged 1 commit intosuperolmo:mainfrom
max298:fix/episodes-in-season

Conversation

@max298
Copy link
Copy Markdown
Contributor

@max298 max298 commented Feb 10, 2026

While testing I noticed that all episodes were added to the Series class. So season 01 would also have episode S02E01, etc.
I found this was due to an iteration over all series which would add all episodes the each season.
I added this simple check, which also has some kind of fallback to mimic the old behaviour. If the season number can not be read for whatever reason, I simply add all episodes to the current season (like before). I'm not sure if thats a valid use case which might happen, so I don't know if thats required.

@superolmo superolmo self-assigned this Feb 18, 2026
Copy link
Copy Markdown
Owner

@superolmo superolmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, it works much better

@superolmo superolmo merged commit 3d0d9f0 into superolmo:main Feb 18, 2026
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