mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-31 21:08:27 +01:00
Address review comments
Clean up style Fix references in class summaries Combine Where+FirstOrDefault queries Break up large method, long lines Add validation on file extension Apply test naming conventions Extract mock of Movie class, comment on why not mocking interface Co-authored-by: Cody Robibero <cody@robibe.ro> Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
@@ -582,8 +582,8 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
/// <returns>MediaAttachments.</returns>
|
||||
private MediaAttachment GetMediaAttachment(MediaStreamInfo streamInfo)
|
||||
{
|
||||
if (!string.Equals(streamInfo.CodecType, "attachment", StringComparison.OrdinalIgnoreCase) &&
|
||||
!(streamInfo.Disposition != null && streamInfo.Disposition.GetValueOrDefault("attached_pic") == 1))
|
||||
if (!string.Equals(streamInfo.CodecType, "attachment", StringComparison.OrdinalIgnoreCase)
|
||||
&& streamInfo.Disposition?.GetValueOrDefault("attached_pic") != 1)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user