Skip to content

Bug Report: Incorrect Season Display and Selection Issue in TV Shows Page #9

@Aviralsharma954

Description

@Aviralsharma954

📌 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

  1. Open the MovieDex app.
  2. Navigate to a TV show with multiple seasons.
  3. Observe that an unreleased season appears in the list.
  4. Click on the extra season.
  5. 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
  }
]

Screenshots
Image

🛠 Possible Solutions

  1. 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.
  1. 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

No one assigned

    Labels

    BeginnerStart fixing these issuesbugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions