mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 06:53:07 +03:00
reduce rescanning due to IsOffline
This commit is contained in:
@@ -123,20 +123,20 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
return "System";
|
||||
}
|
||||
|
||||
if (IsDefaultPath(FFMpegPath))
|
||||
{
|
||||
return "Default";
|
||||
}
|
||||
|
||||
return "Custom";
|
||||
}
|
||||
}
|
||||
|
||||
private bool IsDefaultPath(string path)
|
||||
public bool IsDefaultEncoderPath
|
||||
{
|
||||
var parentPath = Path.Combine(ConfigurationManager.ApplicationPaths.ProgramDataPath, "ffmpeg", "20160410");
|
||||
get
|
||||
{
|
||||
var path = FFMpegPath;
|
||||
|
||||
return FileSystem.ContainsSubPath(parentPath, path);
|
||||
var parentPath = Path.Combine(ConfigurationManager.ApplicationPaths.ProgramDataPath, "ffmpeg", "20160410");
|
||||
|
||||
return FileSystem.ContainsSubPath(parentPath, path);
|
||||
}
|
||||
}
|
||||
|
||||
private bool IsSystemInstalledPath(string path)
|
||||
|
||||
Reference in New Issue
Block a user