Skip to content

Commit

Permalink
feat(config): add friend watchlist sync to configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnatamo committed Sep 8, 2024
1 parent 3bbf0e0 commit 08e7d86
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
},
Expand Down
4 changes: 4 additions & 0 deletions fetcharr.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,12 @@ public sealed class FetcharrPlexConfiguration
[Required]
[YamlMember(Alias = "api_token")]
public string ApiToken { get; set; } = string.Empty;

/// <summary>
/// Gets or sets whether to include friends' watchlists in the sync.
/// </summary>
[Required]
[YamlMember(Alias = "sync_friends_watchlist")]
public bool IncludeFriendsWatchlist { get; set; } = false;
}
}

0 comments on commit 08e7d86

Please sign in to comment.