Reverted the revert
This commit is contained in:
parent
f2bd309478
commit
771da4528b
1 changed files with 2 additions and 2 deletions
|
@ -273,10 +273,10 @@ class MusicMpdPlugin(MusicPlugin):
|
||||||
if resource.startswith('spotify:'):
|
if resource.startswith('spotify:'):
|
||||||
resource = resource.split('?')[0]
|
resource = resource.split('?')[0]
|
||||||
|
|
||||||
m = re.match('spotify:user:[^:]+:playlist:(.*)', resource)
|
m = re.match('spotify:playlist:(.*)', resource)
|
||||||
if m:
|
if m:
|
||||||
# Old Spotify URI format, convert it to new
|
# Old Spotify URI format, convert it to new
|
||||||
resource = 'spotify:playlist:' + m.group(1)
|
resource = 'spotify:user:spotify:playlist:' + m.group(1)
|
||||||
return resource
|
return resource
|
||||||
|
|
||||||
@action
|
@action
|
||||||
|
|
Loading…
Reference in a new issue