From 7d23dea414c57a8dff6bdd31176c381bf2bac25f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 30 Jan 2014 00:20:18 -0500 Subject: fixes #672 - Support path mapping --- MediaBrowser.Model/Configuration/ServerConfiguration.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'MediaBrowser.Model/Configuration/ServerConfiguration.cs') diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index 4e981fa3e..eef6f0f2f 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs @@ -1,4 +1,5 @@ -using MediaBrowser.Model.Weather; +using System.Collections.Generic; +using MediaBrowser.Model.Weather; using System; namespace MediaBrowser.Model.Configuration @@ -228,7 +229,8 @@ namespace MediaBrowser.Model.Configuration public LiveTvOptions LiveTvOptions { get; set; } public bool EnableRealtimeMonitor { get; set; } - + public PathSubstitution[] PathSubstitutions { get; set; } + /// /// Initializes a new instance of the class. /// @@ -259,6 +261,7 @@ namespace MediaBrowser.Model.Configuration EnableInternetProviders = true; //initial installs will need these ManualLoginClients = new ManualLoginCategory[] { }; + PathSubstitutions = new PathSubstitution[] { }; MetadataRefreshDays = 30; PreferredMetadataLanguage = "en"; @@ -352,4 +355,10 @@ namespace MediaBrowser.Model.Configuration SeasonZeroFolderName = "Season 0"; } } + + public class PathSubstitution + { + public string From { get; set; } + public string To { get; set; } + } } -- cgit v1.2.3