mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
applied changes to just also search jellyfin base dir
This commit is contained in:
parent
f27477da26
commit
a7e31ef31f
1 changed files with 5 additions and 0 deletions
|
@ -230,6 +230,11 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
/// <returns></returns>
|
||||
private string ExistsOnSystemPath(string filename)
|
||||
{
|
||||
string inJellyfinPath = GetEncoderPathFromDirectory(System.AppContext.BaseDirectory, filename);
|
||||
if (!string.IsNullOrEmpty(inJellyfinPath))
|
||||
{
|
||||
return inJellyfinPath;
|
||||
}
|
||||
var values = Environment.GetEnvironmentVariable("PATH");
|
||||
|
||||
foreach (var path in values.Split(Path.PathSeparator))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue