diff --git a/Changelog.md b/Changelog.md index d4ea5ab..448f7d9 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,7 @@ ### 4.7.3 - fix cursor showing load activity on startup +- added file size to info command using audio files ### 4.7.1 diff --git a/mpv.net/Misc/Command.cs b/mpv.net/Misc/Command.cs index 2e98c46..2d1d8ae 100644 --- a/mpv.net/Misc/Command.cs +++ b/mpv.net/Misc/Command.cs @@ -109,6 +109,7 @@ namespace mpvnet if (genre != "") text += "Genre: " + genre + "\n"; if (date != "") text += "Year: " + date + "\n"; if (duration != "") text += "Length: " + duration + "\n"; + text += "Size: " + mediaInfo.GetInfo(MediaInfoStreamKind.General, "FileSize/String"); mp.commandv("show-text", text, "5000"); return; diff --git a/mpv.net/Misc/Misc.cs b/mpv.net/Misc/Misc.cs index c4d49bf..bb3ee70 100644 --- a/mpv.net/Misc/Misc.cs +++ b/mpv.net/Misc/Misc.cs @@ -23,8 +23,9 @@ namespace mpvnet public static string DarkMode { get; set; } = "always"; public static string ProcessInstance { get; set; } = "single"; - public static string[] VideoTypes { get; } = "mkv mp4 mpg avi mov webm vob wmv flv avs 264 h264 asf webm mpeg mpv y4m avc hevc 265 h265 m2v m2ts vpy mts m4v".Split(' '); - public static string[] AudioTypes { get; } = "mp3 mp2 ac3 ogg opus flac wav w64 m4a dts dtsma dtshr dtshd eac3 thd thd+ac3 mka aac mpa".Split(' '); + public static string[] VideoTypes { get; } = "mkv mp4 mpg avi mov webm vob wmv flv avs 264 h264 asf webm mpeg mpv y4m avc hevc 265 h265 m2v m2ts vpy mts m4v".Split(' '); + public static string[] AudioTypes { get; } = "mp3 mp2 ac3 ogg opus flac wav w64 m4a dts dtsma dtshr dtshd eac3 thd thd+ac3 mka aac mpa".Split(' '); + public static string[] ImageTypes { get; } = "jpg bmp gif".Split(' '); public static string[] SubtitleTypes { get; } = "srt ass idx sup ttxt ssa smi".Split(' '); public static string[] UrlWhitelist { get; set; } = { "tube", "vimeo", "ard", "zdf" };