switch providers to use CachePath for storage
This commit is contained in:
parent
c2e51df31d
commit
e551322347
|
@ -20,7 +20,7 @@ namespace MediaBrowser.Dlna.PlayTo
|
|||
|
||||
public void Run()
|
||||
{
|
||||
_manager.Start();
|
||||
//_manager.Start();
|
||||
}
|
||||
|
||||
#region Dispose
|
||||
|
|
|
@ -48,6 +48,10 @@ namespace MediaBrowser.Model.Dto
|
|||
public string AwardSummary { get; set; }
|
||||
|
||||
public float? Metascore { get; set; }
|
||||
|
||||
public bool IsUnidentified { get; set; }
|
||||
|
||||
public int? AnimeSeriesIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the DVD season number.
|
||||
|
|
|
@ -380,7 +380,7 @@ namespace MediaBrowser.Providers.Movies
|
|||
/// <returns>System.String.</returns>
|
||||
internal static string GetMoviesDataPath(IApplicationPaths appPaths)
|
||||
{
|
||||
var dataPath = Path.Combine(appPaths.DataPath, "fanart-movies");
|
||||
var dataPath = Path.Combine(appPaths.CachePath, "fanart-movies");
|
||||
|
||||
return dataPath;
|
||||
}
|
||||
|
|
|
@ -458,7 +458,7 @@ namespace MediaBrowser.Providers.Music
|
|||
/// <returns>System.String.</returns>
|
||||
internal static string GetArtistDataPath(IApplicationPaths appPaths)
|
||||
{
|
||||
var dataPath = Path.Combine(appPaths.DataPath, "fanart-music");
|
||||
var dataPath = Path.Combine(appPaths.CachePath, "fanart-music");
|
||||
|
||||
return dataPath;
|
||||
}
|
||||
|
|
|
@ -217,7 +217,7 @@ namespace MediaBrowser.Providers.People
|
|||
|
||||
private static string GetPersonsDataPath(IApplicationPaths appPaths)
|
||||
{
|
||||
return Path.Combine(appPaths.DataPath, "tmdb-people");
|
||||
return Path.Combine(appPaths.CachePath, "tmdb-people");
|
||||
}
|
||||
|
||||
#region Result Objects
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using MediaBrowser.Controller.Entities;
|
||||
using System.Globalization;
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Entities.TV;
|
||||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Model.Entities;
|
||||
|
@ -36,6 +37,8 @@ namespace MediaBrowser.Providers.Savers
|
|||
return item is Series && updateType >= ItemUpdateType.MetadataDownload;
|
||||
}
|
||||
|
||||
private static readonly CultureInfo UsCulture = new CultureInfo("en-US");
|
||||
|
||||
/// <summary>
|
||||
/// Saves the specified item.
|
||||
/// </summary>
|
||||
|
@ -94,6 +97,11 @@ namespace MediaBrowser.Providers.Savers
|
|||
builder.Append("<FirstAired>" + SecurityElement.Escape(series.PremiereDate.Value.ToLocalTime().ToString("yyyy-MM-dd")) + "</FirstAired>");
|
||||
}
|
||||
|
||||
if (series.AnimeSeriesIndex.HasValue)
|
||||
{
|
||||
builder.Append("<AnimeSeriesIndex>" + SecurityElement.Escape(series.AnimeSeriesIndex.Value.ToString(UsCulture)) + "</AnimeSeriesIndex>");
|
||||
}
|
||||
|
||||
XmlSaverHelpers.AddCommonNodes(series, builder);
|
||||
|
||||
builder.Append("</Series>");
|
||||
|
@ -111,7 +119,8 @@ namespace MediaBrowser.Providers.Savers
|
|||
"FirstAired",
|
||||
|
||||
// Don't preserve old series node
|
||||
"Series"
|
||||
"Series",
|
||||
"AnimeSeriesIndex"
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -356,7 +356,7 @@ namespace MediaBrowser.Providers.TV
|
|||
/// <returns>System.String.</returns>
|
||||
internal static string GetSeriesDataPath(IApplicationPaths appPaths)
|
||||
{
|
||||
var dataPath = Path.Combine(appPaths.DataPath, "fanart-tv");
|
||||
var dataPath = Path.Combine(appPaths.CachePath, "fanart-tv");
|
||||
|
||||
return dataPath;
|
||||
}
|
||||
|
|
|
@ -74,6 +74,21 @@ namespace MediaBrowser.Providers.TV
|
|||
break;
|
||||
}
|
||||
|
||||
case "AnimeSeriesIndex":
|
||||
{
|
||||
var number = reader.ReadElementContentAsString();
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(number))
|
||||
{
|
||||
int num;
|
||||
|
||||
if (int.TryParse(number, out num))
|
||||
{
|
||||
item.AnimeSeriesIndex = num;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "SeriesName":
|
||||
item.Name = reader.ReadElementContentAsString();
|
||||
break;
|
||||
|
|
|
@ -664,6 +664,7 @@ namespace MediaBrowser.Server.Implementations.Dto
|
|||
}
|
||||
|
||||
dto.DisplayMediaType = item.DisplayMediaType;
|
||||
dto.IsUnidentified = item.IsUnidentified;
|
||||
|
||||
if (fields.Contains(ItemFields.Settings))
|
||||
{
|
||||
|
@ -1092,6 +1093,8 @@ namespace MediaBrowser.Server.Implementations.Dto
|
|||
{
|
||||
dto.DisplaySpecialsWithSeasons = series.DisplaySpecialsWithSeasons;
|
||||
}
|
||||
|
||||
dto.AnimeSeriesIndex = series.AnimeSeriesIndex;
|
||||
}
|
||||
|
||||
if (episode != null)
|
||||
|
|
Loading…
Reference in New Issue
Block a user