Marginal / QLVideo

This package allows macOS Finder to display thumbnails, static QuickLook previews, cover art and metadata for most types of video files.
GNU General Public License v2.0
2.51k stars 87 forks source link

Having (some) files unsupported by the plugin but with UTIS included in "public.audiovisual-content" makes quicklook previews/file moves etc hang indefinitely #119

Open AuroraWright opened 9 months ago

AuroraWright commented 9 months ago

Maybe related to https://github.com/Marginal/QLVideo/issues/112 I noticed that having (as an example) .mid or .sf2 (soundfont files) in my Downloads folder (which I also have as a stack in the Dock) makes quicklook previews hang indefinitely (not sure if only for the current folder, as an example my Dock ~/Downloads stack eventually turns into a bunch of empty boxes) and the affected files can't be moved/renamed etc. As it turns out, both of those are included in "public.audiovisual-content":

.mid:

kMDItemContentType                 = "public.midi-audio"
kMDItemContentTypeTree             = (
    "public.midi-audio",
    "public.audio",
    "public.audiovisual-content",
    "public.data",
    "public.item",
    "public.content"
)

.sf2:

kMDItemContentType                 = "com.soundblaster.soundfont"
kMDItemContentTypeTree             = (
    "com.soundblaster.soundfont",
    "public.audio",
    "public.audiovisual-content",
    "public.data",
    "public.item",
    "public.content"
)

As far as I can tell, removing the affected files/extensions is the only way to prevent this from happening with the quicklook extension active.