diff --git a/platypush/plugins/music/mpd/__init__.py b/platypush/plugins/music/mpd/__init__.py index 7550bc0f..adf163cd 100644 --- a/platypush/plugins/music/mpd/__init__.py +++ b/platypush/plugins/music/mpd/__init__.py @@ -257,6 +257,9 @@ class MusicMpdPlugin(MusicPlugin): @classmethod def _parse_resource(cls, resource): + m = re.search('^https://open.spotify.com/([^?]+)', resource) + if m: resource = 'spotify:{}'.format(m.group(1).replace('/', ':')) + if resource and resource.startswith('spotify:playlist:'): # Old Spotify URI format, convert it to new m = re.match('^spotify:playlist:(.*)$', resource)