ShokoDesktop icon indicating copy to clipboard operation
ShokoDesktop copied to clipboard

Some Series show all episodes watched, but actually are not

Open t0815 opened this issue 1 year ago • 8 comments

VERSION INFORMATION

Server Version: 4.2.1

Desktop Version: 4.2.1

LOG FILE

n/a

DESCRIPTION

Related to #627 propably.

I noticed that some series show, there are no episodes remaining to watch after update, but all episides are actually unwatched. Did not start playing them with new version either.

grafik

STEPS TO REPRODUCE

  1. ) Hard to tell, i can accross a series by chance
  2. ) so... find a series you havent been watching and check details page

t0815 avatar Apr 11 '23 15:04 t0815

Do you actually have files for this series?

I believe you're using the beta Web UI, check on there and let us know what it says.

ElementalCrisis avatar Apr 15 '23 22:04 ElementalCrisis

yes, i have files for the given series. How do i access the beta web ui?

t0815 avatar Apr 16 '23 15:04 t0815

Manually download it and replace the contents of the Web UI folder with it.

ElementalCrisis avatar Apr 16 '23 21:04 ElementalCrisis

~~Or just change the update channel for the web ui to dev and hit update.~~

~~And if you're coming from a stable version of web ui, then hard refresh the web browser, reset the local storage and/or session storage, and close and re-open the tab. You probably need to do this regardless of how you update to the β web ui.~~

revam avatar Apr 16 '23 23:04 revam

Same in web-ui:

grafik

Files are available and unwatched:

grafik

t0815 avatar Apr 18 '23 16:04 t0815

I'm having a similar issue with server 4.2.2 and Desktop 4.2.1, in my case I noticed the problem the other way, series I KNOW are completed (even with the vote) with un-watched episodes. On "Series Info" I get "all episodes have watched" but on the episodes tab I get the un-watched episodes (so I do on the search)

I would not take much issue, but the "mark all as watched" button does not work. While I see this happening mostly with recent series, it also happens with older series. I'm my case with over 3k series, is a bit hard to really find the errors on the desktop client, but I'll check the DB later.

Edit: Ok, on desktop I created a filter with "Has un-watched episodes: include" and "user voted: include". Definitively is mostly with recent added, watched and voted series.

I also tested the other way with "has unwatched episodes: exclude" and "user voted (any): exclude", and I got a few series.

danmarce avatar Apr 24 '23 05:04 danmarce

i did some messing around in the db and did notice the entries for crossref_file_episode did not match the videolocal entries. I did update them with correct hash, filename and size, then the problem was fixed. I have no clue tho, under which circumstances old invalid crossref entries remain or are not updated....

t0815 avatar Oct 07 '23 16:10 t0815

And for the particular case above, the issue was in videolocal_user, there the resume position would be present, which seems to break the continue watching tile. EDIT: did some more digging, and this seems to be the root cause, for breaking continue watching. I found several more instances, and every time the resume position was set (> 0). So to conclude, the query to fetch next episode will return null when the resume position is set. This gets set, if you play an episode via internal MP (I believe) / use play controls in UI. This also explains the issue https://github.com/ShokoAnime/ShokoDesktop/issues/627

t0815 avatar Oct 07 '23 17:10 t0815