beets/beetsplug
Adrian Sampson a0cb31956d distinguish Album and Item template fields
An earlier change (due to @pedros) added the ability for plugins to define
template fields that work with Albums as well as Items. This enables some
cool new use cases but required that every template field definition check the
type of its arguments. Instead, this iteration on the idea distinguishes
between fields meant for Items and those meant for Albums.

In addition to simplifying the implementation of these functions, this also
enables the creation of album fields with identical names to item fields.
(For example, a user contacted me recently about adding a $bitrate field for
albums, which would be the average bitrate of the items. They can do this now
using a plugin.)

I also changed the docs to stop using the decorator approach to registering
template fields. We're moving toward removing those.
2013-05-28 22:30:23 -07:00
..
bpd changelog note and indentation fix for #86 2013-02-02 12:27:42 -08:00
lastgenre changelog for #254 2013-04-21 20:41:01 -07:00
web changelog for #246 2013-04-10 10:18:58 -07:00
__init__.py happy new year 2013-01-11 10:43:41 -08:00
bench.py happy new year 2013-01-11 10:43:41 -08:00
chroma.py Update signature for item_candidates() in chroma plugin. 2013-05-22 08:10:20 +10:00
convert.py docs/changelog for convert paths config (#285) 2013-05-22 15:00:53 -07:00
discogs.py fix some dumb mistakes from most recent flurry 2013-05-28 22:04:20 -07:00
duplicates.py duplicates: refactoring and empty-ID fix (#278) 2013-05-17 12:35:35 -07:00
echonest_tempo.py echonest_tempo: catch socket.error 2013-03-09 11:33:55 -08:00
embedart.py fixing things 2013-03-25 15:20:38 -03:00
fetchart.py API/test enhancements for #257 2013-04-27 16:47:42 -07:00
fuzzy.py fix extra super call in fuzzy 2013-03-14 18:43:44 -07:00
ihate.py remove singleton enforcement from plugins 2013-01-31 12:13:19 -08:00
importfeeds.py changelog for #180 2013-03-12 22:00:11 -07:00
info.py happy new year 2013-01-11 10:43:41 -08:00
inline.py distinguish Album and Item template fields 2013-05-28 22:30:23 -07:00
lyrics.py lyrics: substitute more punctuation (fixes #270) 2013-05-12 12:45:49 -07:00
mbcollection.py mbcollection: use library functions 2013-03-11 19:43:57 -07:00
mbsync.py fixing things 2013-03-25 15:20:38 -03:00
missing.py distinguish Album and Item template fields 2013-05-28 22:30:23 -07:00
mpdupdate.py Update comments to reflect config migration 2013-01-31 18:17:00 -05:00
random.py random -e (#263): fix some short responses 2013-05-19 11:00:52 -07:00
replaygain.py replaygain: catch Unicode exc on Windows (GC-499) 2013-01-12 14:38:19 -08:00
rewrite.py fix inline and rewrite for instance fields 2013-02-02 08:35:54 -08:00
scrub.py minor style cleanup for #75 2013-01-29 21:30:57 -08:00
smartplaylist.py smartplaylist: split query w/ shlex (fixes #256) 2013-04-21 20:55:07 -07:00
the.py remove singleton enforcement from plugins 2013-01-31 12:13:19 -08:00
zero.py zero: remove redundant list of dict's keys 2013-01-31 12:15:18 -08:00