-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPluginConfiguration.cs
More file actions
56 lines (47 loc) · 2.12 KB
/
Copy pathPluginConfiguration.cs
File metadata and controls
56 lines (47 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using MediaBrowser.Model.Plugins;
namespace Jellyfin.Plugin.StashSync.Configuration;
/// <summary>
/// Plugin configuration for StashSync.
/// </summary>
public class PluginConfiguration : BasePluginConfiguration
{
/// <summary>
/// Gets or sets the base URL of the Stash instance (e.g. http://192.168.1.100:9999).
/// </summary>
public string StashUrl { get; set; } = "http://localhost:9999";
/// <summary>
/// Gets or sets the Stash API key (if authentication is enabled in Stash).
/// </summary>
public string StashApiKey { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the TMDB API key (v3 auth) used to fetch poster URLs.
/// Free to obtain at https://www.themoviedb.org/settings/api
/// </summary>
public string TmdbApiKey { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the local filesystem path where .strm files will be written.
/// Jellyfin must have this path added as a Movie library.
/// </summary>
public string StrmOutputPath { get; set; } = "/media/stash-groups";
/// <summary>
/// Gets or sets a value indicating whether to use Stash stream URLs (true)
/// or local file paths (false) inside the .strm files.
/// Stream URLs are more network-friendly for cross-machine setups.
/// </summary>
public bool UseStreamUrls { get; set; } = true;
/// <summary>
/// Gets or sets the minimum number of scenes required for a Group to be synced.
/// Groups with fewer scenes than this will be skipped.
/// </summary>
public int MinSceneCount { get; set; } = 1;
/// <summary>
/// Gets or sets a value indicating whether to include Groups that have no cover image.
/// </summary>
public bool IncludeGroupsWithoutCover { get; set; } = true;
/// <summary>
/// Gets or sets the base URL of the StashProxy service (e.g. http://192.168.0.38:5678).
/// When set, .strm files will point to the proxy which streams all scenes concatenated.
/// Leave empty to use direct Stash stream URLs (single scene only).
/// </summary>
public string ProxyUrl { get; set; } = string.Empty;
}