[autoqueue commit] r273 - minor logic flaw

0 views
Skip to first unread message

codesite...@google.com

unread,
Jun 2, 2009, 10:47:13 AM6/2/09
to auto...@googlegroups.com
Author: this...@gmail.com
Date: Tue Jun 2 07:46:13 2009
New Revision: 273

Modified:
trunk/quodlibet_autoqueue.py

Log:
minor logic flaw


Modified: trunk/quodlibet_autoqueue.py
==============================================================================
--- trunk/quodlibet_autoqueue.py (original)
+++ trunk/quodlibet_autoqueue.py Tue Jun 2 07:46:13 2009
@@ -233,9 +233,9 @@
def player_construct_track_search(self, artist, title,
restrictions=None):
"""construct a search that looks for songs with this artist
and title"""
+ search = '&(artist = "%s", title = "%s", version="")' % (
+ escape(artist), escape(title))
if "(" in title:
- search = '&(artist = "%s", title = "%s")' % (
- escape(artist), escape(title))
split = title.split("(")
if not split[0]:
# (something) title [(version)]
@@ -250,10 +250,6 @@
escape(vtitle),
escape(version))
search = "|(%s, %s)" % (search, versioned)
- else:
- search = '&(artist = "%s", title = "%s", version="")' % (
- escape(artist), escape(title))
- versioned = ""
if restrictions:
search = "&(%s, %s)" % (search, restrictions)
return search

Reply all
Reply to author
Forward
0 new messages