From 774decda7d120e8ad83c69c5f70ae66ccfaf7925 Mon Sep 17 00:00:00 2001 From: Bruno Cauet Date: Mon, 16 Mar 2015 16:21:49 +0100 Subject: [PATCH] =?UTF-8?q?Smartplayist:=20parse=5Fquery=5Fparts()=20?= =?UTF-8?q?=E2=86=92=20...ry=5Fstring()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beetsplug/smartplaylist.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beetsplug/smartplaylist.py b/beetsplug/smartplaylist.py index 197257459..12e9c3fcd 100644 --- a/beetsplug/smartplaylist.py +++ b/beetsplug/smartplaylist.py @@ -21,7 +21,7 @@ from __future__ import (division, absolute_import, print_function, from beets.plugins import BeetsPlugin from beets import ui from beets.util import mkdirall, normpath, syspath -from beets.library import Item, Album, parse_query_parts +from beets.library import Item, Album, parse_query_string from beets.dbcore import OrQuery import os @@ -91,9 +91,9 @@ class SmartPlaylistPlugin(BeetsPlugin): query = None sort = None elif isinstance(qs, basestring): - query, sort = parse_query_parts(qs, Model) + query, sort = parse_query_string(qs, Model) else: - query = OrQuery([parse_query_parts(q, Model)[0] + query = OrQuery([parse_query_string(q, Model)[0] for q in qs]) sort = None playlist_data += (query,)