mirror of
https://github.com/beetbox/beets.git
synced 2025-12-31 13:02:47 +01:00
Merge pull request #2256 from awesomer/missing-album-types
missing plugin, modify "missing" attribute by modifying album_types
This commit is contained in:
commit
c5edd34841
2 changed files with 8 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ from beets.library import Item
|
|||
from beets.plugins import BeetsPlugin
|
||||
from beets.ui import decargs, print_, Subcommand
|
||||
from beets import config
|
||||
from beets.dbcore import types
|
||||
|
||||
|
||||
def _missing_count(album):
|
||||
|
|
@ -81,6 +82,11 @@ def _item(track_info, album_info, album_id):
|
|||
class MissingPlugin(BeetsPlugin):
|
||||
"""List missing tracks
|
||||
"""
|
||||
|
||||
album_types = {
|
||||
'missing': types.INTEGER,
|
||||
}
|
||||
|
||||
def __init__(self):
|
||||
super(MissingPlugin, self).__init__()
|
||||
|
||||
|
|
|
|||
|
|
@ -84,6 +84,8 @@ And there are a few bug fixes too:
|
|||
single track, two-sided mediums are treated as single discs, and tracks
|
||||
have ``media``, ``medium_total`` and ``medium`` set correctly. :bug:`2222`
|
||||
:bug:`2228`.
|
||||
* :doc:`/plugins/missing`: ``missing`` is now treated as an integer, allowing
|
||||
the use of (for example) ranges in queries.
|
||||
|
||||
The last release, 1.3.19, also erroneously reported its version as "1.3.18"
|
||||
when you typed ``beet version``. This has been corrected.
|
||||
|
|
|
|||
Loading…
Reference in a new issue