-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
BeginnerStart fixing these issuesStart fixing these issuesbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
📌 Issue Description
In the TV Shows page of MovieDex, more seasons are displayed than actually released. Additionally, when selecting an extra (unreleased) season, the episodes from Season 1 are shown instead.
🔄 Steps to Reproduce
- Open the MovieDex app.
- Navigate to a TV show with multiple seasons.
- Observe that an unreleased season appears in the list.
- Click on the extra season.
- Instead of showing no data or an appropriate message, the episode list of Season 1 is displayed.
✅ Expected Behavior
- Only released seasons should be displayed.
- If an unreleased season is selected, it should either:
- Show a message like "Season not released yet"
- Display no episodes instead of showing Season 1's episodes.
❌ Actual Behavior
- Unreleased seasons (e.g., Season 4) are incorrectly displayed.
- Selecting an extra season loads the episode list from Season 1 instead of showing nothing or an appropriate message.
🔍 TMDB API Response (Relevant Section)
"seasons": [
{
"season_number": 4,
"air_date": null,
"episode_count": 1
}
]
🛠 Possible Solutions
- Filter Seasons Based on Release Date
- Before displaying seasons, check if air_date is null`.
- Only display seasons where air_date has a valid value.
- Handle Selection of Unreleased Seasons
- If an unreleased season is clicked, show a message like "This season has not been released yet." instead of loading Season 1 episodes.
Metadata
Metadata
Assignees
Labels
BeginnerStart fixing these issuesStart fixing these issuesbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
