mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:40:09 +00:00
reduce rescanning due to IsOffline
This commit is contained in:
parent
2e65c32ede
commit
e4851e1b25
16 changed files with 51 additions and 85 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue