mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-19 08:36:37 +00:00
fixes #795 - Support reading Xbmc nfo's
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using MediaBrowser.Model.Weather;
|
||||
using System.Linq;
|
||||
using MediaBrowser.Model.Weather;
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Configuration
|
||||
@@ -68,24 +69,12 @@ namespace MediaBrowser.Model.Configuration
|
||||
/// <value>The display name of the season zero.</value>
|
||||
public string SeasonZeroDisplayName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the metadata refresh days.
|
||||
/// </summary>
|
||||
/// <value>The metadata refresh days.</value>
|
||||
public int MetadataRefreshDays { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [save local meta].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [save local meta]; otherwise, <c>false</c>.</value>
|
||||
public bool SaveLocalMeta { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [refresh item images].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [refresh item images]; otherwise, <c>false</c>.</value>
|
||||
public bool RefreshItemImages { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the preferred metadata language.
|
||||
/// </summary>
|
||||
@@ -227,6 +216,9 @@ namespace MediaBrowser.Model.Configuration
|
||||
[Obsolete]
|
||||
public ChapterOptions ChapterOptions { get; set; }
|
||||
|
||||
[Obsolete]
|
||||
public bool DefaultMetadataSettingsApplied { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
|
||||
/// </summary>
|
||||
@@ -258,7 +250,6 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
PathSubstitutions = new PathSubstitution[] { };
|
||||
|
||||
MetadataRefreshDays = 30;
|
||||
PreferredMetadataLanguage = "en";
|
||||
MetadataCountryCode = "US";
|
||||
|
||||
|
||||
21
MediaBrowser.Model/Configuration/XbmcMetadataOptions.cs
Normal file
21
MediaBrowser.Model/Configuration/XbmcMetadataOptions.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
namespace MediaBrowser.Model.Configuration
|
||||
{
|
||||
public class XbmcMetadataOptions
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
|
||||
public string ReleaseDateFormat { get; set; }
|
||||
|
||||
public bool SaveImagePathsInNfo { get; set; }
|
||||
public bool EnablePathSubstitution { get; set; }
|
||||
|
||||
public XbmcMetadataOptions()
|
||||
{
|
||||
ReleaseDateFormat = "yyyy-MM-dd";
|
||||
|
||||
SaveImagePathsInNfo = true;
|
||||
EnablePathSubstitution = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user