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