Fix fish plugin (#6428)

Fixes #6340
This commit is contained in:
Šarūnas Nejus 2026-03-08 13:24:01 +00:00 committed by GitHub
commit f1509a40f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View file

@ -25,7 +25,7 @@ by default but can be added via the `-e` / `--extravalues` flag. For example:
import os
from operator import attrgetter
from beets import library, ui
from beets import library, plugins, ui
from beets.plugins import BeetsPlugin
from beets.ui import commands
@ -111,7 +111,7 @@ class FishPlugin(BeetsPlugin):
nobasicfields = opts.noFields # Do not complete for album/track fields
extravalues = opts.extravalues # e.g., Also complete artists names
beetcmds = sorted(
(commands.default_commands + commands.plugins.commands()),
(commands.default_commands + plugins.commands()),
key=attrgetter("name"),
)
fields = sorted(set(library.Album.all_keys() + library.Item.all_keys()))

View file

@ -13,9 +13,10 @@ Unreleased
New features
~~~~~~~~~~~~
..
Bug fixes
~~~~~~~~~
Bug fixes
~~~~~~~~~
- :doc:`plugins/fish`: Fix AttributeError. :bug:`6340`
..
For plugin developers