mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 12:02:41 +01:00
Merge pull request #515 from kljohann/mpdstats
fix mpdstats plugin after query restructuring
This commit is contained in:
commit
4fe524c0ec
1 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ import os
|
|||
from beets import ui
|
||||
from beets import config
|
||||
from beets import plugins
|
||||
from beets import dbcore
|
||||
from beets import library
|
||||
from beets.util import displayable_path
|
||||
|
||||
log = logging.getLogger('beets')
|
||||
|
|
@ -165,7 +165,7 @@ class MPDStats(object):
|
|||
def get_item(self, path):
|
||||
"""Return the beets item related to path.
|
||||
"""
|
||||
query = dbcore.query.BytesQuery('path', path)
|
||||
query = library.PathQuery('path', path)
|
||||
item = self.lib.items(query).get()
|
||||
if item:
|
||||
return item
|
||||
|
|
|
|||
Loading…
Reference in a new issue