jellyfin
This is an old revision of the document!
Jellyfin
Restore watch history after path fuckup
Delete new entries if needed
DELETE FROM UserData WHERE ItemId IN (SELECT Id FROM BaseItems WHERE Path Like '/newpath/%');
Overrwite ItemIds
UPDATE UserData SET ItemId = new.Id FROM BaseItems AS old JOIN BaseItems AS new ON old.SortName = new.SortName WHERE UserData.ItemId = old.Id;
jellyfin.1786089801.txt.gz · Last modified: by phil
