Ape / mediainfo.yazi

Yazi plugin for previewing media files
MIT License
7 stars 0 forks source link

thumbnails working, mediainfo isn't #2

Open ehula opened 1 month ago

ehula commented 1 month ago

Thank you for making this plugin. I am looking forward to using it. However, it is not working for me.

Without the plugin, I get thumbnail previews of images and videos, but not audio.

After installing your plugin, I get thumbnail previews of images, videos and audio files, but I do not get any mediainfo for any of the filetypes. Mediainfo is installed, and it is on the path.

I am running NixOS.

edit: BTW, mediainfo is working for subrips.

Ape commented 1 month ago

Check Yazi logs for any errors.

The plugin should always show some text even if mediainfo is not available or fails.

ehula commented 1 month ago

Here is a sample of what I see in the log file:

  2024-08-04T07:23:37.079567Z ERROR yazi_plugin::isolate::peek: runtime error: [string "yazi-plugin/src/isolate/peek.rs:29:21"]:19: attempt to index a number value
stack traceback:
    [string "yazi-plugin/src/isolate/peek.rs:29:21"]:19: in function <[string "yazi-plugin/src/isolate/peek.rs:29:21"]:13>
    at yazi-plugin/src/isolate/peek.rs:50
Ape commented 1 month ago

Hmm. Hard to say what's going on. My guess is that the plugin is not installed or configured properly.