jellyfin / jellyfin-androidtv

Android TV Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.87k stars 489 forks source link

Next Up items on homescreen not updating position #3525

Closed fice-t closed 2 months ago

fice-t commented 7 months ago

Describe the bug

  1. Watch to completion a TV episode in Jellyfin (so the homescreen item is of type WATCH_NEXT_TYPE_NEXT).
  2. Watch to completion an episode in another app (for example, Prime Videos), so that the homescreen item is shown before the Jellyfin item.
  3. Watch to completion the next episode of the series in Step 1.
  4. The item position is not updated, whereas items of other services would be updated.

I understand that Jellyfin takes some time to update the homescreen items, but even when the item is updated the position stays the same.

I believe this is due to items of type WATCH_NEXT_TYPE_NEXT having engagement time set to item.dateCreated.

FWIW, looking at a Google sample app, the engagement time is always set to the current time (though that also seems incorrect). The official docs aren't clear for this case, unfortunately, as [the description here](https://developer.android.com/reference/kotlin/androidx/tvprovider/media/tv/TvContractCompat.WatchNextPrograms#COLUMN_LAST_ENGAGEMENT_TIME_UTC_MILLIS()) states "the date of the last episode watched", but the description here is "The time the user or app last engaged with the program".

I would argue the 2nd description makes more sense, and the 1st a documentation bug. Perhaps it was meant to be "the date the last episode was watched"?

Logs

No response

Application version

0.16.7

Where did you install the app from?

Google Play

Device information

Proprietary ATV Box

Android version

Android 10

Jellyfin server version

10.8.13

Cebrain commented 6 months ago

I think there is already an issue https://github.com/jellyfin/jellyfin-androidtv/issues/3139

nielsvanvelzen commented 6 months ago

It is not trivial to retrieve the timestamp of when the previous episode was watched. As such we're using the timestamp from when the episode was added to Jellyfin instead.

jellyfin-bot commented 2 months ago

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.

If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.

This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.