mirror of
https://github.com/beetbox/beets.git
synced 2025-12-27 02:52:33 +01:00
remove vestigial plugin hooks
These have been superseded by the new function-based approach.
This commit is contained in:
parent
925a6178ba
commit
da794ffc44
1 changed files with 0 additions and 21 deletions
|
|
@ -309,27 +309,6 @@ def template_funcs():
|
|||
funcs.update(plugin.template_funcs)
|
||||
return funcs
|
||||
|
||||
def template_values(item):
|
||||
"""Get all the template values computed for a given Item by
|
||||
registered field computations.
|
||||
"""
|
||||
values = {}
|
||||
for plugin in find_plugins():
|
||||
if plugin.template_fields:
|
||||
for name, func in plugin.template_fields.iteritems():
|
||||
values[name] = unicode(func(item))
|
||||
return values
|
||||
|
||||
def album_template_values(album):
|
||||
"""Get the plugin-defined template values for an Album.
|
||||
"""
|
||||
values = {}
|
||||
for plugin in find_plugins():
|
||||
if plugin.album_template_fields:
|
||||
for name, func in plugin.album_template_fields.iteritems():
|
||||
values[name] = unicode(func(album))
|
||||
return values
|
||||
|
||||
def _add_media_fields(fields):
|
||||
"""Adds a {name: descriptor} dictionary of fields to the MediaFile
|
||||
class. Called during the plugin initialization.
|
||||
|
|
|
|||
Loading…
Reference in a new issue