recloudstream / cloudstream

Android app for streaming and downloading media.
GNU General Public License v3.0
6.82k stars 548 forks source link

Source prioritizing doesn't work on first start on aniyomi extensions #1114

Open jeyjai opened 6 months ago

jeyjai commented 6 months ago

Steps to reproduce

On aniyomi extensions you have to setup every resolution for every single source instead of just setting up resolutions and sources separately.

  1. Set up your source prioritization, anime extensions in my case with dubs on top and subs below.
  2. Go back to the shows title page and start a new episode, not one you've already played since restarting the app

I mostly use kaido and hianime but they're probably not the only ones

Expected behavior

Expecting the episode to always play the highest prioritized source, dubs in my case.

Actual behavior

First time you start an episode it will start in sub, if i go back and start it again it will correct itself and play the correct source from there on. If i go back to the title page and start any other episode that haven't been played since the app was started, the same thing will happen, but if i let it play till the end and use the "next episode" button it will always start with the correct prioritization. And all episodes will go back to starting incorrectly after restarting the app.

Cloudstream version and commit hash

4.3.2 b3e3dad

Android version

Android 11

Logcat

No response

Other details

It's been happening for maybe a week or so, can't say exactly when it started

Acknowledgements

jeyjai commented 6 months ago

Just tried it on my phone to make sure it was happening on both tv and phone and noticed it was originally playing everything correctly on my phone with the same source prioritization but the quality prioritization was different, so i changed the quality from default order to my normal order and suddenly the prioritization broke on my phone as well.

Im sharing a screenshot of both quality and source order i have and maybe that can help you figure out whats causing it to break. qualities sources