mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 01:54:42 +01:00
add ApplicationPath to app paths interface to hide implementation
This commit is contained in:
@@ -94,6 +94,22 @@ namespace MediaBrowser.Controller.Entities.TV
|
||||
get { return _series ?? (_series = FindParent<Series>()); }
|
||||
}
|
||||
|
||||
[IgnoreDataMember]
|
||||
public string SeriesPath
|
||||
{
|
||||
get
|
||||
{
|
||||
var series = Series;
|
||||
|
||||
if (series != null)
|
||||
{
|
||||
return series.Path;
|
||||
}
|
||||
|
||||
return System.IO.Path.GetDirectoryName(Path);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Our rating comes from our series
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user