Skip to content

Commit 08e7d86

Browse files
committed
feat(config): add friend watchlist sync to configuration
1 parent 3bbf0e0 commit 08e7d86

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

config-schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@
169169
"api_token": {
170170
"type": "string",
171171
"description": "API token for authenticating with Plex.\nSee more here: https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/"
172+
},
173+
"sync_friends_watchlist": {
174+
"type": "boolean",
175+
"default": false,
176+
"description": "Whether to include friends' watchlists when syncing."
172177
}
173178
}
174179
},

fetcharr.example.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ plex:
99
## If you need help finding yours, see here: https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
1010
api_token: PLEX_TOKEN
1111

12+
## Whether to include friends' watchlists when syncing.
13+
## Default: false
14+
sync_friends_watchlist: false
15+
1216
## List of all Sonarr instances available
1317
sonarr:
1418
default:

src/Models/src/Configuration/Plex/FetcharrPlexConfiguration.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,12 @@ public sealed class FetcharrPlexConfiguration
1515
[Required]
1616
[YamlMember(Alias = "api_token")]
1717
public string ApiToken { get; set; } = string.Empty;
18+
19+
/// <summary>
20+
/// Gets or sets whether to include friends' watchlists in the sync.
21+
/// </summary>
22+
[Required]
23+
[YamlMember(Alias = "sync_friends_watchlist")]
24+
public bool IncludeFriendsWatchlist { get; set; } = false;
1825
}
1926
}

0 commit comments

Comments
 (0)