From 771da4528b466fbc62ccf716d46029a375806ea9 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 28 Feb 2019 18:57:22 +0100 Subject: [PATCH] Reverted the revert --- platypush/plugins/music/mpd/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/music/mpd/__init__.py b/platypush/plugins/music/mpd/__init__.py index a1568620b..de52ec503 100644 --- a/platypush/plugins/music/mpd/__init__.py +++ b/platypush/plugins/music/mpd/__init__.py @@ -273,10 +273,10 @@ class MusicMpdPlugin(MusicPlugin): if resource.startswith('spotify:'): resource = resource.split('?')[0] - m = re.match('spotify:user:[^:]+:playlist:(.*)', resource) + m = re.match('spotify:playlist:(.*)', resource) if m: # Old Spotify URI format, convert it to new - resource = 'spotify:playlist:' + m.group(1) + resource = 'spotify:user:spotify:playlist:' + m.group(1) return resource @action