diff --git a/config-schema.json b/config-schema.json index 037357e..972a273 100644 --- a/config-schema.json +++ b/config-schema.json @@ -169,6 +169,11 @@ "api_token": { "type": "string", "description": "API token for authenticating with Plex.\nSee more here: https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/" + }, + "sync_friends_watchlist": { + "type": "boolean", + "default": false, + "description": "Whether to include friends' watchlists when syncing." } } }, diff --git a/fetcharr.example.yaml b/fetcharr.example.yaml index 6097da6..284e17c 100644 --- a/fetcharr.example.yaml +++ b/fetcharr.example.yaml @@ -9,6 +9,10 @@ plex: ## If you need help finding yours, see here: https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/ api_token: PLEX_TOKEN + ## Whether to include friends' watchlists when syncing. + ## Default: false + sync_friends_watchlist: false + ## List of all Sonarr instances available sonarr: default: diff --git a/src/Models/src/Configuration/Plex/FetcharrPlexConfiguration.cs b/src/Models/src/Configuration/Plex/FetcharrPlexConfiguration.cs index 81b0e63..7f217ad 100644 --- a/src/Models/src/Configuration/Plex/FetcharrPlexConfiguration.cs +++ b/src/Models/src/Configuration/Plex/FetcharrPlexConfiguration.cs @@ -15,5 +15,12 @@ public sealed class FetcharrPlexConfiguration [Required] [YamlMember(Alias = "api_token")] public string ApiToken { get; set; } = string.Empty; + + /// + /// Gets or sets whether to include friends' watchlists in the sync. + /// + [Required] + [YamlMember(Alias = "sync_friends_watchlist")] + public bool IncludeFriendsWatchlist { get; set; } = false; } } \ No newline at end of file