Update MediaBrowser.MediaEncoding/Subtitles/SubtitleEditParser.cs

Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
Claus Vium 2022-07-30 14:59:28 +02:00 committed by GitHub
parent b0b4068ddf
commit f2c7bccb89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
private IEnumerable<SubtitleFormat> GetSubtitleFormats()
{
var subtitleFormats = new List<SubtitleFormat>();
var assembly = Assembly.GetAssembly(typeof(SubtitleFormat));
var assembly = typeof(SubtitleFormat).Assembly;
if (assembly == null)
{
_logger.LogError("Missing assembly containing {SubtitleFormatName}", nameof(SubtitleFormat));