mpd: Don't use the \S regexp group
This commit is contained in:
parent
ab906c5684
commit
bb32ff6b6b
@ -270,7 +270,7 @@ def playlistinfo(context, songpos=None, start=None, end=None):
|
||||
|
||||
|
||||
@handle_request(r'^playlistsearch "(?P<tag>[^"]+)" "(?P<needle>[^"]+)"$')
|
||||
@handle_request(r'^playlistsearch (?P<tag>\S+) "(?P<needle>[^"]+)"$')
|
||||
@handle_request(r'^playlistsearch (?P<tag>\w+) "(?P<needle>[^"]+)"$')
|
||||
def playlistsearch(context, tag, needle):
|
||||
"""
|
||||
*musicpd.org, current playlist section:*
|
||||
|
||||
@ -7,7 +7,7 @@ from mopidy.frontends.mpd.protocol import handle_request
|
||||
from mopidy.frontends.mpd.translator import playlist_to_mpd_format
|
||||
|
||||
|
||||
@handle_request(r'^listplaylist (?P<name>\S+)$')
|
||||
@handle_request(r'^listplaylist (?P<name>\w+)$')
|
||||
@handle_request(r'^listplaylist "(?P<name>[^"]+)"$')
|
||||
def listplaylist(context, name):
|
||||
"""
|
||||
@ -29,7 +29,7 @@ def listplaylist(context, name):
|
||||
return ['file: %s' % t.uri for t in playlists[0].tracks]
|
||||
|
||||
|
||||
@handle_request(r'^listplaylistinfo (?P<name>\S+)$')
|
||||
@handle_request(r'^listplaylistinfo (?P<name>\w+)$')
|
||||
@handle_request(r'^listplaylistinfo "(?P<name>[^"]+)"$')
|
||||
def listplaylistinfo(context, name):
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user