diff --git a/.vscode/settings.json b/.vscode/settings.json index 55b28a1..d543d7e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -25,7 +25,7 @@ "editor.formatOnSave": false, "editor.tabSize": 2 }, - "[]": { + "[md]": { "editor.formatOnSave": false, "editor.tabSize": 2 }, @@ -41,6 +41,7 @@ "Akte", "apikey", "Bluray", + "buildx", "Dadded", "dmacpher", "Dtitle", @@ -53,9 +54,11 @@ "frontieres", "Fsections", "Ftype", + "homelab", "imdb", "Kopelson", "Likvidátor", + "linebreak", "manybothans", "metacritic", "OVERSEERR", @@ -63,6 +66,7 @@ "preplay", "RADARR", "Scully", + "selfhost", "SHORTBREHD", "SONARR", "TAUTULLI", diff --git a/README.md b/README.md index 229b4b5..29334a6 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ docker-compose up -d -f /path/to/docker-compose.yml - Plex and Overseerr connection details are required, but Radarr, Sonarr, and Tautulli connection details are optional. - If Radarr and/or Sonarr connection details are provided, then Tautulli connection details are required as well. - If a user requests an item in Overseerr, tag the item in Plex with `requester:plex_username`. -- Unless the environment variable `FEATURE_CREATE_COLLECTIONS` is set to `0`, also create smart collections in Plex for each requester that include the tagged media items, and tag the collection with `owner:plex_username`. These collections will have titles such as `Movies Requested by plex_username` or `TV Shows Requested by plex_username`, and the Sort Titles will have the prefix `zzz_` so the collections appear at the bottom of the list. +- Unless the environment variable `FEATURE_CREATE_COLLECTIONS` is set to `0`, also create smart collections in Plex for each requester that include the tagged media items, and tag the collection with `owner:plex_username`. These collections will have titles such as `Movies Requested by overseerr_displayName` or `TV Shows Requested by plex_username`, and the Sort Titles will have the prefix `zzz_` so the collections appear at the bottom of the list. - If Tautulli and Radarr/Sonarr connection details are set in environment variables: - If a user requests an item in Overseerr, tag the item in Radarr/Sonarr with `requester:plex_username`. - If Tautulli shows that a user OTHER THAN the requester has watched the item in the last 3 months, tag the item in Radarr/Sonarr with `others_watching`. @@ -105,7 +105,7 @@ docker-compose up -d -f /path/to/docker-compose.yml - If Tautulli shows that the requester user has fully watched an item, tag the item in Radarr/Sonarr with `requester_watched`. - If Tautulli later shows that the requester has no longer fully watched an item (e.g. they had finished a show but new episodes were added), remove the `requester_watched` tag from the item in Radarr/Sonarr. - If Overseerr shows that a requested media item was downloaded over 6 months ago, and Tautulli shows that the requester user hasn't watched the item in over 3 months, AND no one else has watched it in 3 months, tag item in Radarr/Sonarr with `stale_request`. - - If Tautulli later shows that the requester user has started watching the item, remove the `stale_request` tag from item in Radarr/Sonarr. + - If Tautulli later shows that any user has started watching the item in the last 3 months, remove the `stale_request` tag from item in Radarr/Sonarr. - The process will run once at start, then repeat every 24 hours, unless the environment variable `FEATURE_RUN_ONCE` is set to `1` in which case it will run through once then exit. - Right now the system will only touch media items that exist both in Plex and as requests in Overseerr. If you add items to Plex directly, or bypass Overseerr and request in Radarr/Sonarr directly, those items won't be processed. diff --git a/package.json b/package.json index 68a7592..b259585 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plex-requester-collections", - "version": "1.1.3", + "version": "1.1.4", "description": "Node app to automatically create Plex Collections for content requested by users in Overseerr.", "main": "dist/index.js", "scripts": { diff --git a/src/index.ts b/src/index.ts index 912c0e6..ac55491 100644 --- a/src/index.ts +++ b/src/index.ts @@ -103,7 +103,7 @@ const app = async function () { // Feature flag to turn off the creation of smart collections. if (process.env.FEATURE_CREATE_COLLECTIONS !== "0") { // This is what the smart collection should be called. - let collectionTitle; + let collectionTitle: string; if (displayName) { collectionTitle = sectionType == "movie"