Created
March 14, 2022 02:46
-
-
Save nijave/6678b4c25559b13fa7ba596123ab9a95 to your computer and use it in GitHub Desktop.
Jellyfin playbackPositionTicks info query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)