From 2c8099e7ae5dbdd171b3a1ef0a37104e30aca098 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 10 Jan 2019 18:01:24 +0100 Subject: [PATCH] Apply stream name filtering logic also to HTTP streams --- platypush/plugins/music/mpd/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platypush/plugins/music/mpd/__init__.py b/platypush/plugins/music/mpd/__init__.py index 289bae6ec..955b88754 100644 --- a/platypush/plugins/music/mpd/__init__.py +++ b/platypush/plugins/music/mpd/__init__.py @@ -360,6 +360,7 @@ class MusicMpdPlugin(MusicPlugin): track = self._exec('currentsong', return_status=False) if 'title' in track and ('artist' not in track or not track['artist'] + or re.search('^https?://', track['file']) or re.search('^tunein:', track['file'])): m = re.match('^\s*(.+?)\s+-\s+(.*)\s*$', track['title']) if m and m.group(1) and m.group(2):