mirror of
https://github.com/beetbox/beets.git
synced 2026-07-21 01:36:52 -04:00
25 lines
765 B
Python
25 lines
765 B
Python
"""Creates freedesktop.org-compliant .directory files on an album level."""
|
|
|
|
from beets import ui
|
|
from beets.plugins import BeetsPlugin
|
|
|
|
|
|
class FreedesktopPlugin(BeetsPlugin):
|
|
def commands(self):
|
|
deprecated = ui.Subcommand(
|
|
"freedesktop",
|
|
help="Print a message to redirect to thumbnails --dolphin",
|
|
)
|
|
deprecated.func = self.deprecation_message
|
|
return [deprecated]
|
|
|
|
def deprecation_message(self, lib, opts, args):
|
|
ui.print_(
|
|
"This plugin is deprecated. Its functionality is "
|
|
"superseded by the 'thumbnails' plugin"
|
|
)
|
|
ui.print_(
|
|
"'thumbnails --dolphin' replaces freedesktop. See doc & "
|
|
"changelog for more information"
|
|
)
|