Further filter Jellyfin response
This commit is contained in:
@@ -14,7 +14,7 @@ Pebble.addEventListener("appmessage", function (dict) {
|
||||
// TODO report last episode as "Configure app settings!" if CLAY_API_HOST, CLAY_API_KEY, or CLAY_USER is empty
|
||||
// TODO use API to dynamically determine user (prompt on watch)
|
||||
if (cfg.CLAY_API_IS_JELLYFIN == true) {
|
||||
callAPI(cfg.CLAY_API_HOST + "/System/ActivityLog/Entries?limit=50", cfg.CLAY_API_KEY, true, cfg.CLAY_USER, sleepTimestamp * 1000);
|
||||
callAPI(cfg.CLAY_API_HOST + "/System/ActivityLog/Entries?hasUserId=true&limit=50", cfg.CLAY_API_KEY, true, cfg.CLAY_USER, sleepTimestamp * 1000);
|
||||
} else {
|
||||
// The official history endpoint doesn't seem to return history w/o Plex Pass.
|
||||
// If someone with Plex Pass wants to give it a shot, I'd be happy to accept a PR adding this as an option.
|
||||
|
||||
Reference in New Issue
Block a user