From 4e6d591f12e9953b5360fba3516bce5feeae3733 Mon Sep 17 00:00:00 2001 From: maxdunbar <48608399+maxdunbar@users.noreply.github.com> Date: Mon, 18 Mar 2024 14:54:41 -0700 Subject: [PATCH] osxbundle: refactor Information Property List Includes cleanup of CFBundleDocumentTypes, UTImportedTypeDeclarations, LSItemContentTypes. Reordered general structure of the Property List as in nodes/collections/arrays. Declared MIME types. --- TOOLS/osxbundle/mpv.app/Contents/Info.plist | 628 ++++++++++++++------ 1 file changed, 455 insertions(+), 173 deletions(-) diff --git a/TOOLS/osxbundle/mpv.app/Contents/Info.plist b/TOOLS/osxbundle/mpv.app/Contents/Info.plist index eaa83ad0d8..f94bebfcb3 100644 --- a/TOOLS/osxbundle/mpv.app/Contents/Info.plist +++ b/TOOLS/osxbundle/mpv.app/Contents/Info.plist @@ -7,169 +7,113 @@ CFBundleDocumentTypes - CFBundleTypeExtensions - - AAC - AC3 - AIFF - M4A - MKA - MP3 - OGG - PCM - VAW - WAV - WAW - WMA - aac - ac3 - aiff - m4a - mka - mp3 - ogg - pcm - vaw - wav - waw - wma - CFBundleTypeIconFile document.icns CFBundleTypeName - Audio file + Audio File CFBundleTypeRole Viewer + LSHandlerRank + Default LSTypeIsPackage NSPersistentStoreTypeKey - XML + Binary + LSItemContentTypes + + com.apple.coreaudio-format + com.microsoft.waveform-audio + com.microsoft.windows-media-wma + io.mpv.dts + io.mpv.pcm + org.matroska.mka + org.xiph.flac + org.xiph.ogg-audio + public.aac-audio + public.ac3-audio + public.aifc.audio + public.aiff-audio + public.audio + public.mp2 + public.mp3 + public.mpeg-4-audio + public.ulaw-audio + - CFBundleTypeExtensions - - * - * - 3GP - 3IV - 3gp - 3iv - ASF - AVI - CPK - DAT - DIVX - DV - FLAC - FLI - FLV - H264 - I263 - M2TS - M4V - MKV - MOV - MP2 - MP4 - MPEG - MPG - MPG2 - MPG4 - NSV - NUT - NUV - OGG - OGM - QT - RM - RMVB - VCD - VFW - VOB - WEBM - WMV - MK3D - asf - avi - cpk - dat - divx - dv - flac - fli - flv - h264 - i263 - m2ts - m4v - mkv - mov - mp2 - mp4 - mpeg - mpg - mpg2 - mpg4 - nsv - nut - nuv - ogg - ogm - qt - rm - rmvb - vcd - vfw - vob - webm - wmv - mk3d - CFBundleTypeIconFile document.icns CFBundleTypeName - Movie file + Movie File CFBundleTypeRole Viewer + LSHandlerRank + Default LSTypeIsPackage NSPersistentStoreTypeKey - XML + Binary + LSItemContentTypes + + com.adobe.flash.video + com.apple.m4v-video + com.apple.quicktime-movie + com.microsoft.advanced-systems-format + com.mythtv.nuv + com.real.realmedia + io.mpv.divx + io.mpv.h263 + io.mpv.h264 + io.mpv.hevc + io.mpv.mk3d + io.mpv.mts + io.mpv.nsv + io.mpv.vcd + io.mpv.vob + io.mpv.webm + io.mpv.wmv + io.mpv.xvid + io.mpv.y4m + io.mpv.yuv + org.matroska.mkv + org.xiph.ogg-video + public.3gpp2 + public.3gpp + public.avi + public.dv-movie + public.flc-animation + public.movie + public.mpeg-2-video + public.mpeg-4 + public.mpeg + public.video + - CFBundleTypeExtensions - - AQT - ASS - JSS - RT - SMI - SRT - SSA - SUB - TXT - UTF - aqt - ass - jss - rt - smi - srt - ssa - sub - txt - utf - CFBundleTypeIconFile document.icns CFBundleTypeName - Subtitles file + Subtitles File CFBundleTypeRole Viewer + LSHandlerRank + Default LSTypeIsPackage NSPersistentStoreTypeKey XML + LSItemContentTypes + + io.mpv.aqt + io.mpv.ass + io.mpv.jss + io.mpv.rt + io.mpv.smi + io.mpv.subrip + io.mpv.sub + io.mpv.vobsub + public.plain-text + CFBundleExecutable @@ -202,6 +146,8 @@ CFBundleTypeRole Viewer + LSHandlerRank + Default CFBundleURLName mpv Custom Protocol CFBundleURLSchemes @@ -212,6 +158,8 @@ CFBundleTypeRole Viewer + LSHandlerRank + Default CFBundleURLName Streaming Protocol CFBundleURLSchemes @@ -233,6 +181,8 @@ CFBundleTypeRole Viewer + LSHandlerRank + Default CFBundleURLName CD/DVD/Bluray Media CFBundleURLSchemes @@ -256,9 +206,9 @@ UTTypeIconFile document.icns UTTypeIdentifier - io.mpv.ac3 + public.ac3-audio UTTypeReferenceURL - http://wiki.multimedia.cx/index.php?title=AC3 + https://wiki.multimedia.cx/index.php?title=AC3 UTTypeTagSpecification public.filename-extension @@ -267,6 +217,11 @@ a52 eac3 + public.mime-type + + audio/ac3 + audio/eac3 + @@ -281,13 +236,17 @@ UTTypeIdentifier io.mpv.dts UTTypeReferenceURL - http://wiki.multimedia.cx/index.php?title=DTS + https://wiki.multimedia.cx/index.php?title=DTS UTTypeTagSpecification public.filename-extension dts + public.mime-type + + audio/vnd.dts + @@ -300,15 +259,19 @@ UTTypeIconFile document.icns UTTypeIdentifier - io.mpv.flac + org.xiph.flac UTTypeReferenceURL - http://flac.sourceforge.net/format.html + https://flac.sourceforge.net/format.html UTTypeTagSpecification public.filename-extension flac + public.mime-type + + audio/flac + @@ -321,15 +284,19 @@ UTTypeIconFile document.icns UTTypeIdentifier - io.mpv.mka + org.matroska.mka UTTypeReferenceURL - http://www.matroska.org + https://www.matroska.org UTTypeTagSpecification public.filename-extension mka + public.mime-type + + audio/matroska + @@ -342,15 +309,20 @@ UTTypeIconFile document.icns UTTypeIdentifier - io.mpv.ogg-audio + org.xiph.ogg-audio UTTypeReferenceURL - http://xiph.org/ogg + https://xiph.org/ogg UTTypeTagSpecification public.filename-extension + oga ogg + public.mime-type + + audio/ogg + @@ -365,13 +337,42 @@ UTTypeIdentifier io.mpv.pcm UTTypeReferenceURL - http://en.wikipedia.org/wiki/Pulse-code_modulation + https://en.wikipedia.org/wiki/Pulse-code_modulation UTTypeTagSpecification public.filename-extension pcm + public.mime-type + + audio/pcm + + + + + UTTypeConformsTo + + public.audio + + UTTypeDescription + Waveform Audio + UTTypeIconFile + document.icns + UTTypeIdentifier + com.microsoft.waveform-audio + UTTypeReferenceURL + https://en.wikipedia.org/wiki/WAV + UTTypeTagSpecification + + public.filename-extension + + wav + + public.mime-type + + audio/wav + @@ -384,15 +385,19 @@ UTTypeIconFile document.icns UTTypeIdentifier - io.mpv.wma + com.microsoft.windows-media-wma UTTypeReferenceURL - http://en.wikipedia.org/wiki/Windows_Media_Audio + https://en.wikipedia.org/wiki/Windows_Media_Audio UTTypeTagSpecification public.filename-extension wma + public.mime-type + + audio/x-ms-wma + @@ -405,15 +410,19 @@ UTTypeIconFile document.icns UTTypeIdentifier - io.mpv.avi + public.avi UTTypeReferenceURL - http://www.the-labs.com/Video/odmlff2-avidef.pdf + https://www.the-labs.com/Video/odmlff2-avidef.pdf UTTypeTagSpecification public.filename-extension avi + public.mime-type + + video/x-msvideo + @@ -428,13 +437,17 @@ UTTypeIdentifier io.mpv.divx UTTypeReferenceURL - http://www.divx.com + https://www.divx.com UTTypeTagSpecification public.filename-extension divx + public.mime-type + + video/divx + @@ -447,9 +460,9 @@ UTTypeIconFile document.icns UTTypeIdentifier - io.mpv.dv + public.dv-movie UTTypeReferenceURL - http://en.wikipedia.org/wiki/DV + https://en.wikipedia.org/wiki/DV UTTypeTagSpecification public.filename-extension @@ -457,6 +470,10 @@ dv hdv + public.mime-type + + video/dv + @@ -469,18 +486,25 @@ UTTypeIconFile document.icns UTTypeIdentifier - io.mpv.flv + com.adobe.flash.video UTTypeReferenceURL - http://en.wikipedia.org/wiki/Flash_Video + https://en.wikipedia.org/wiki/Flash_Video UTTypeTagSpecification public.filename-extension flv + fla + f4a f4v + f4b f4p swf + public.mime-type + + application/vnd.adobe.flash.movie + @@ -495,7 +519,7 @@ UTTypeIdentifier io.mpv.mts UTTypeReferenceURL - http://en.wikipedia.org/wiki/.m2ts + https://en.wikipedia.org/wiki/.m2ts UTTypeTagSpecification public.filename-extension @@ -507,6 +531,35 @@ mtv ts + public.mime-type + + model/vnd.mts + + + + + UTTypeConformsTo + + public.movie + + UTTypeDescription + MPEG-4 File + UTTypeIconFile + document.icns + UTTypeIdentifier + com.apple.m4v-video + UTTypeReferenceURL + https://en.wikipedia.org/wiki/M4V + UTTypeTagSpecification + + public.filename-extension + + m4v + + public.mime-type + + video/m4v + @@ -519,15 +572,19 @@ UTTypeIconFile document.icns UTTypeIdentifier - io.mpv.mkv + org.matroska.mkv UTTypeReferenceURL - http://www.matroska.org + https://www.matroska.org UTTypeTagSpecification public.filename-extension mkv + public.mime-type + + video/matroska + @@ -542,19 +599,24 @@ UTTypeIdentifier io.mpv.mk3d UTTypeReferenceURL - http://www.matroska.org + https://www.matroska.org UTTypeTagSpecification public.filename-extension mk3d + public.mime-type + + application/x-matroska + UTTypeConformsTo public.movie + org.matroska.mkv UTTypeDescription WebM Video @@ -563,13 +625,17 @@ UTTypeIdentifier io.mpv.webm UTTypeReferenceURL - http://www.webmproject.org + https://www.webmproject.org UTTypeTagSpecification public.filename-extension webm + public.mime-type + + video/webm + @@ -582,9 +648,9 @@ UTTypeIconFile document.icns UTTypeIdentifier - io.mpv.ogv + org.xiph.ogg-video UTTypeReferenceURL - http://xiph.org/ogg + https://xiph.org/ogg UTTypeTagSpecification public.filename-extension @@ -592,6 +658,10 @@ ogm ogv + public.mime-type + + video/ogg + @@ -604,15 +674,97 @@ UTTypeIconFile document.icns UTTypeIdentifier - io.mpv.rmvb + com.real.realmedia UTTypeReferenceURL - http://www.real.com + https://www.real.com UTTypeTagSpecification public.filename-extension - rmvb rm + rmd + rmj + rms + rmvb + rmx + rp + rpm + rt + rv + rvx + + public.mime-type + + application/vnd.rn-realmedia-vbr + + + + + UTTypeConformsTo + + public.movie + + UTTypeDescription + Nullsoft Streaming Video + UTTypeIconFile + document.icns + UTTypeIdentifier + io.mpv.nsv + UTTypeReferenceURL + https://en.wikipedia.org/wiki/Nullsoft + UTTypeTagSpecification + + public.filename-extension + + nsv + + public.mime-type + + video/x-nsv + + + + + UTTypeConformsTo + + public.movie + + UTTypeDescription + NuppleVideo File + UTTypeIconFile + document.icns + UTTypeIdentifier + com.mythtv.nuv + UTTypeReferenceURL + https://en.wikipedia.org/wiki/Nullsoft + UTTypeTagSpecification + + public.filename-extension + + nuv + + + + + UTTypeConformsTo + + public.movie + + UTTypeDescription + Video CD File + UTTypeIconFile + document.icns + UTTypeIdentifier + io.mpv.vcd + UTTypeReferenceURL + https://en.wikipedia.org/wiki/Video_CD + UTTypeTagSpecification + + public.filename-extension + + vcd + svcd + dat @@ -628,13 +780,17 @@ UTTypeIdentifier io.mpv.vob UTTypeReferenceURL - http://en.wikipedia.org/wiki/VOB + https://en.wikipedia.org/wiki/VOB UTTypeTagSpecification public.filename-extension vob + public.mime-type + + video/x-ms-vob + @@ -649,13 +805,17 @@ UTTypeIdentifier io.mpv.wmv UTTypeReferenceURL - http://en.wikipedia.org/wiki/Windows_Media_Video + https://en.wikipedia.org/wiki/Windows_Media_Video UTTypeTagSpecification public.filename-extension wmv + public.mime-type + + video/x-ms-wmv + @@ -670,13 +830,42 @@ UTTypeIdentifier io.mpv.xvid UTTypeReferenceURL - http://www.xvid.org + https://www.xvid.org UTTypeTagSpecification public.filename-extension xvid + public.mime-type + + video/x-xvid + + + + + UTTypeConformsTo + + public.movie + + UTTypeDescription + H.263 raw stream + UTTypeIconFile + document.icns + UTTypeIdentifier + io.mpv.h263 + UTTypeReferenceURL + https://www.itu.int/rec/T-REC-H.263 + UTTypeTagSpecification + + public.filename-extension + + 263 + + public.mime-type + + video/h263 + @@ -691,13 +880,17 @@ UTTypeIdentifier io.mpv.h264 UTTypeReferenceURL - http://www.itu.int/rec/T-REC-H.264 + https://www.itu.int/rec/T-REC-H.264 UTTypeTagSpecification public.filename-extension 264 + public.mime-type + + video/H264 + @@ -733,7 +926,7 @@ UTTypeIdentifier io.mpv.yuv UTTypeReferenceURL - http://en.wikipedia.org/wiki/YUV + https://en.wikipedia.org/wiki/YUV UTTypeTagSpecification public.filename-extension @@ -754,7 +947,7 @@ UTTypeIdentifier io.mpv.y4m UTTypeReferenceURL - http://wiki.multimedia.cx/index.php?title=YUV4MPEG2 + https://wiki.multimedia.cx/index.php?title=YUV4MPEG2 UTTypeTagSpecification public.filename-extension @@ -775,13 +968,17 @@ UTTypeIdentifier io.mpv.subrip UTTypeReferenceURL - http://en.wikipedia.org/wiki/SubRip + https://en.wikipedia.org/wiki/SubRip UTTypeTagSpecification public.filename-extension srt + public.mime-type + + application/x-subrip + @@ -796,13 +993,90 @@ UTTypeIdentifier io.mpv.sub UTTypeReferenceURL - http://en.wikipedia.org/wiki/MicroDVD + https://en.wikipedia.org/wiki/MicroDVD UTTypeTagSpecification public.filename-extension sub + public.mime-type + + text/plain + + + + + UTTypeConformsTo + + public.plain-text + + UTTypeDescription + AQTitle Subtitle + UTTypeIconFile + document.icns + UTTypeIdentifier + io.mpv.aqt + UTTypeReferenceURL + https://web.archive.org/web/20070210095721/http://www.volny.cz/aberka/czech/aqt.html + UTTypeTagSpecification + + public.filename-extension + + aqt + + public.mime-type + + text/plain + + + + + UTTypeConformsTo + + public.plain-text + + UTTypeDescription + JACOSub Subtitle + UTTypeIconFile + document.icns + UTTypeIdentifier + io.mpv.jss + UTTypeReferenceURL + http://unicorn.us.com/jacosub/jscripts.html + UTTypeTagSpecification + + public.filename-extension + + jss + + public.mime-type + + text/plain + + + + + UTTypeConformsTo + + public.plain-text + + UTTypeDescription + RealText Subtitle + UTTypeIconFile + document.icns + UTTypeIdentifier + io.mpv.rt + UTTypeTagSpecification + + public.filename-extension + + rt + + public.mime-type + + text/plain + @@ -825,6 +1099,10 @@ ass ssa + public.mime-type + + text/plain + @@ -839,7 +1117,7 @@ UTTypeIdentifier io.mpv.vobsub UTTypeReferenceURL - http://en.wikipedia.org/wiki/DirectVobSub + https://en.wikipedia.org/wiki/DirectVobSub UTTypeTagSpecification public.filename-extension @@ -861,7 +1139,7 @@ UTTypeIdentifier io.mpv.smi UTTypeReferenceURL - http://en.wikipedia.org/wiki/SAMI + https://en.wikipedia.org/wiki/SAMI UTTypeTagSpecification public.filename-extension @@ -869,6 +1147,10 @@ smi smil + public.mime-type + + application/smil +