From 932a5981a247cfed189b352a42e665c4b7eebb31 Mon Sep 17 00:00:00 2001 From: "Abdulmhsen B. A. A" Date: Mon, 23 May 2022 20:40:45 +0300 Subject: [PATCH 1/2] Removed outdated info about importing marked as unplayed items. --- FAQ.md | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/FAQ.md b/FAQ.md index 797d72d6..ee220ac2 100644 --- a/FAQ.md +++ b/FAQ.md @@ -231,19 +231,3 @@ These are the agents we support for plex media server. * com.plexapp.agents.xbmcnfo://(id)?lang=en `(XBMC NFO parser agent)` * com.plexapp.agents.xbmcnfotv://(id)?lang=en `(XBMC NFO parser agent for tv)` * com.plexapp.agents.hama://(db)\d?-(id)?lang=en `(hama agent is multi db source agent)` - ---- - -### Q: Marking items as unplayed and then importing does not change the status? - -That's happens because the media servers API reset the last played date on the items, and there is no indicator that the -status has changed, usually there are field called `updated_at` that would reflect any changes to the object. but that's -not the case here. to import `mark as unplayed` items, You have to use the webhook frontend as those events indicate -the date at which the event triggered. Unfortunately this will not work for `Plex` backend as they do not send events -for `mark as played/unplayed`. - -For backends that does not support those events, you can force sync by running the import command with `--ignore-date` -and `--force-full`flags, this will allow you to reimport the items. - -We are exploring different implementation to hopefully support syncing unplayed events via normal state:import -operations. From 89d5ec17c3ef204a02a3ff151ea80c41834be136 Mon Sep 17 00:00:00 2001 From: "Abdulmhsen B. A. A" Date: Mon, 23 May 2022 20:48:56 +0300 Subject: [PATCH 2/2] Fixed version number in command profiling. --- src/Command.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Command.php b/src/Command.php index 3a37931a..1d0a5728 100644 --- a/src/Command.php +++ b/src/Command.php @@ -41,11 +41,13 @@ class Command extends BaseCommand 'UNIQUE_ID' ]; + $appVersion = getAppVersion(); + $url = '/cli/' . $this->getName(); $data['meta']['url'] = $data['meta']['simple_url'] = $url; $data['meta']['get'] = $data['meta']['env'] = []; $data['meta']['SERVER'] = array_replace_recursive($data['meta']['SERVER'], [ - 'APP_VERSION' => getAppVersion(), + 'APP_VERSION' => $appVersion, 'PHP_VERSION' => PHP_VERSION, 'PHP_VERSION_ID' => PHP_VERSION_ID, 'PHP_OS' => PHP_OS, @@ -54,7 +56,7 @@ class Command extends BaseCommand 'DOCUMENT_ROOT' => env('IN_DOCKER') ? '/docker/' : '/cli', 'REMOTE_ADDR' => '127.0.0.1', 'SERVER_ADDR' => '127.0.0.1', - 'SERVER_NAME' => (env('IN_DOCKER') ? 'docker' : 'cli') . '.watchstate.' . Config::get('version') + 'SERVER_NAME' => (env('IN_DOCKER') ? 'docker' : 'cli') . '.watchstate.' . $appVersion ]); foreach ($removeKeys as $key) {