Skip to content

Commit

Permalink
refactor: move VFS location
Browse files Browse the repository at this point in the history
- Moved the location of the VFS outside the plugins directory, so it
  won't be scanned on startup by Jellyfin when it tries to discover
  the plugins to load. Also, in case it wasn't obvious enough.
  THIS IS A BREAKIGN CHANGE. Okay? Okay.
  • Loading branch information
revam committed Apr 12, 2024
1 parent 1928d82 commit e9c35d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Shokofin/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
/// <summary>
/// "Virtual" File System Root Directory.
/// </summary>
public string VirtualRoot => Path.Combine(DataFolderPath, "VFS");
public readonly string VirtualRoot;

public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer, ILogger<Plugin> logger) : base(applicationPaths, xmlSerializer)
{
Instance = this;
ConfigurationChanged += OnConfigChanged;
IgnoredFolders = Configuration.IgnoredFolders.ToHashSet();
VirtualRoot = Path.Combine(applicationPaths.ProgramDataPath, "Shokofin", "VFS");
Logger = logger;
Logger.LogInformation("Virtual File System Location; {Path}", VirtualRoot);
}
Expand Down

0 comments on commit e9c35d7

Please sign in to comment.