🐛 Fix file analyze didn't generate video ratio
This commit is contained in:
parent
2e8d6a3667
commit
6237fd6140
@ -164,6 +164,8 @@ public class FileService(
|
|||||||
["tags"] = mediaInfo.Format.Tags ?? [],
|
["tags"] = mediaInfo.Format.Tags ?? [],
|
||||||
["chapters"] = mediaInfo.Chapters,
|
["chapters"] = mediaInfo.Chapters,
|
||||||
};
|
};
|
||||||
|
if (mediaInfo.PrimaryVideoStream is not null)
|
||||||
|
file.FileMeta["ratio"] = mediaInfo.PrimaryVideoStream.Width / mediaInfo.PrimaryVideoStream.Height;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user