Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Deprecated API warning due to upstream changes #3

@xfzv

Description

@xfzv

After updating yazi to sxyazi/yazi@2014aee, the following API deprecation message is printed when hovering some files (see below for details):

sxyazi/yazi@8b47ebf#diff-f3fd609a7d5e2151bea826946cc2bf959f788ad4b6b97175f4fcc2f81e2032feR10-R25

image

Edit: updated screenshot showcasing plug-in name after updating to sxyazi/yazi@da1b236

ref: sxyazi/yazi#1761


I can reproduce with this minimal setup:

% uname -s
Linux

% yazi -V
Yazi 0.3.3 (2014aee 2024-10-11)
% tree ~/.config/yazi
yazi
├── plugins
│   └── mediainfo.yazi
│       └── init.lua
└── yazi.toml

yazi.toml content:

[plugin]
fetchers = [
  { id = "mime", name = "*", run = "mime", if = "!mime", prio = "high" },
]

prepend_previewers = [
  { mime = "{image,audio,video}/*", run = "mediainfo" },
  { mime = "application/{octet-stream,x-subrip}", run = "mediainfo" },
]

Then, open yazi and hover some files. I could only trigger the warning when hovering images, audio and video files as well as ~/.Xauthority for example. Hovering directories and other files doesn't trigger the warning.

Either commenting these lines or mv ~/.config/yazi/plugins/mediainfo.yazi ~/.config/yazi/plugins/mediainfo.yazi.bak removes the warning:

- prepend_previewers = [
-   { mime = "{image,audio,video}/*", run = "mediainfo" },
-   { mime = "application/{octet-stream,x-subrip}", run = "mediainfo" },
- ]

+ # prepend_previewers = [
+ #   { mime = "{image,audio,video}/*", run = "mediainfo" },
+ #   { mime = "application/{octet-stream,x-subrip}", run = "mediainfo" },
+ # ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions