Added a subdir to CP, SickRage, Sonarr and Plex #43

This commit is contained in:
tidusjar 2016-03-21 14:23:55 +00:00
parent 21ea315cd0
commit 895a0c50eb
10 changed files with 86 additions and 1 deletions

View file

@ -41,12 +41,18 @@ namespace PlexRequests.Core.SettingModels
public bool SeasonFolders { get; set; }
public string RootPath { get; set; }
public bool Ssl { get; set; }
public string SubDir { get; set; }
[JsonIgnore]
public Uri FullUri
{
get
{
if (!string.IsNullOrEmpty(SubDir))
{
var formattedSubDir = Ip.ReturnUriWithSubDir(Port, Ssl, SubDir);
return formattedSubDir;
}
var formatted = Ip.ReturnUri(Port, Ssl);
return formatted;
}