Update MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs

This commit is contained in:
Claus Vium 2021-09-21 22:54:11 +02:00 committed by GitHub
parent 95f344722c
commit a353081ea3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,12 +193,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
}
}
// Don't save an invalid path
if (!File.Exists(path))
{
throw new FileNotFoundException();
}
// Write the new ffmpeg path to the xml as <EncoderAppPath>
// This ensures its not lost on next startup
config.EncoderAppPath = newPath;