Skip to content

Episodes with number 0 (specials) are not displayed in episode list #2797

@deleteBlack666

Description

@deleteBlack666

Steps to reproduce

  1. Open any anime that has a special episode 0 (e.g., via AnimeON provider: https://animeon.club/anime/7705-vistoriya-mahiya-ta-mech-2-sezon).
  2. Observe that the episode list starts from episode 1; episode 0 is missing.
  3. Check the provider code – the episode is added with this.episode = 0 and a proper name.
  4. https://animeon.club/api/player/7705/episodes?take=100&skip=-1&playerId=7765&translationId=1105 - {"episodes":[{"id":111789,"videoUrl":"https://moonanime.art/iframe/e38d1wbbyt1jwp5wshnv2cs5/","episode":0,"subtitles":false,"poster":"https://s4.mooncdn.space/video69/rh_mvo_tsue_to_tsurugi_no_wistoria_s02e0_s2_x_43597/poster.webp","fileUrl":"","isViewed":false},{"id":113496,"videoUrl":"https://moonanime.art/iframe/szssef5yydbw9pwxnrn/","episode":1,"subtitles":false,"poster":"https://s4.mooncdn.space/video70/44663_source_s2_e1_44663/poster.webp","fileUrl":"","isViewed":false},{"id":114584,"videoUrl":"https://moonanime.art/iframe/83iw09uswc5lkv7152fwcpk/","episode":2,"subtitles":false,"poster":"https://s4.mooncdn.space/video70/45501_source_s2_e2_45501/poster.webp","fileUrl":"","isViewed":false},

Expected behavior

Episode 0 should be displayed in the episode list, either as "Episode 0", "Special", or with a custom name provided by the provider.

Actual behavior

Episode 0 is completely hidden from the episode list. Only episodes with numbers >= 1 are shown.

Cloudstream version and commit hash

4.7.0

Android version

Android 13

Logcat

Other details

Allow episodes with episode = 0 (or null) to be displayed in the episode list. They are valid special episodes and should not be filtered out. If necessary, add a separate section for specials or simply include them in the main list.

Tested workarounds that failed:
· Setting this.episode = null → episode still hidden.
· Renaming episode 0 to episode 1 and shifting all other episodes by +1 → episode not displayed.
· Provider correctly adds the episode; the issue is on the CloudStream side (likely in episode filtering/sorting logic).

Acknowledgements

  • I am sure my issue is related to the app and NOT some extension.
  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I have updated the app to pre-release version Latest.
  • I will fill out all of the requested information in this form.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions