mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
ease up on monitoring file stamp changes
This commit is contained in:
parent
ea619383e9
commit
aed4d67a85
@ -97,18 +97,6 @@ namespace MediaBrowser.Providers.Movies
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// If we save locally, refresh if they delete something
|
|
||||||
/// </summary>
|
|
||||||
/// <value><c>true</c> if [refresh on file system stamp change]; otherwise, <c>false</c>.</value>
|
|
||||||
protected override bool RefreshOnFileSystemStampChange
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return ConfigurationManager.Configuration.SaveLocalMeta;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a value indicating whether [refresh on version change].
|
/// Gets a value indicating whether [refresh on version change].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -191,18 +191,6 @@ namespace MediaBrowser.Providers.TV
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Returns true or false indicating if the provider should refresh when the contents of it's directory changes
|
|
||||||
/// </summary>
|
|
||||||
/// <value><c>true</c> if [refresh on file system stamp change]; otherwise, <c>false</c>.</value>
|
|
||||||
protected override bool RefreshOnFileSystemStampChange
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return ConfigurationManager.Configuration.SaveLocalMeta;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a value indicating whether [refresh on version change].
|
/// Gets a value indicating whether [refresh on version change].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -77,18 +77,6 @@ namespace MediaBrowser.Providers.TV
|
|||||||
get { return true; }
|
get { return true; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Returns true or false indicating if the provider should refresh when the contents of it's directory changes
|
|
||||||
/// </summary>
|
|
||||||
/// <value><c>true</c> if [refresh on file system stamp change]; otherwise, <c>false</c>.</value>
|
|
||||||
protected override bool RefreshOnFileSystemStampChange
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a value indicating whether [refresh on version change].
|
/// Gets a value indicating whether [refresh on version change].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -71,18 +71,6 @@ namespace MediaBrowser.Providers.TV
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Returns true or false indicating if the provider should refresh when the contents of it's directory changes
|
|
||||||
/// </summary>
|
|
||||||
/// <value><c>true</c> if [refresh on file system stamp change]; otherwise, <c>false</c>.</value>
|
|
||||||
protected override bool RefreshOnFileSystemStampChange
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return ConfigurationManager.Configuration.SaveLocalMeta;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a value indicating whether [refresh on version change].
|
/// Gets a value indicating whether [refresh on version change].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -388,8 +388,8 @@ namespace MediaBrowser.Providers.TV
|
|||||||
series.PremiereDate = doc.SafeGetDateTime("//FirstAired");
|
series.PremiereDate = doc.SafeGetDateTime("//FirstAired");
|
||||||
if (series.PremiereDate.HasValue)
|
if (series.PremiereDate.HasValue)
|
||||||
series.ProductionYear = series.PremiereDate.Value.Year;
|
series.ProductionYear = series.PremiereDate.Value.Year;
|
||||||
//Runtime is in minutes, and 1 tick = 10000 ms
|
|
||||||
series.RunTimeTicks = doc.SafeGetInt32("//Runtime") * 6;
|
series.RunTimeTicks = TimeSpan.FromMinutes(doc.SafeGetInt32("//Runtime")).Ticks;
|
||||||
|
|
||||||
if (!series.LockedFields.Contains(MetadataFields.Studios))
|
if (!series.LockedFields.Contains(MetadataFields.Studios))
|
||||||
{
|
{
|
||||||
|
@ -80,18 +80,6 @@ namespace MediaBrowser.Providers.TV
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Returns true or false indicating if the provider should refresh when the contents of it's directory changes
|
|
||||||
/// </summary>
|
|
||||||
/// <value><c>true</c> if [refresh on file system stamp change]; otherwise, <c>false</c>.</value>
|
|
||||||
protected override bool RefreshOnFileSystemStampChange
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return ConfigurationManager.Configuration.SaveLocalMeta;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a value indicating whether [refresh on version change].
|
/// Gets a value indicating whether [refresh on version change].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user