Skip to content

Instantly share code, notes, and snippets.

@nijave
Created March 14, 2022 02:46
Show Gist options
  • Save nijave/6678b4c25559b13fa7ba596123ab9a95 to your computer and use it in GitHub Desktop.
Save nijave/6678b4c25559b13fa7ba596123ab9a95 to your computer and use it in GitHub Desktop.
Jellyfin playbackPositionTicks info query
SELECT
key, COALESCE(ti.SortName, mi.sortname) SortName, COALESCE(ti.Path, mi.Path) Path
FROM UserDatas u
LEFT JOIN TypedBaseItems ti
ON
u.key = ti.UserDataKey
OR REPLACE(u.key, '-', '') = ti.PresentationUniqueKey
LEFT JOIN MediaItems mi
ON
REPLACE(u.key, '-', '') = mi.PresentationUniqueKey
WHERE
playbackPositionTicks > 0;
@nijave
Copy link
Author

nijave commented Mar 14, 2022

Joins what I think are the correct tables to find items that will appear on Continue Watching (so you can reset them)--ignores users (I only use a single user)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment