forked from platypush/platypush
typo
This commit is contained in:
parent
4fa7a08006
commit
632255d2dc
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class MusicMpdBackend(Backend):
|
||||||
|
|
||||||
if 'title' in track and ('artist' not in track
|
if 'title' in track and ('artist' not in track
|
||||||
or not track['artist']
|
or not track['artist']
|
||||||
or re.search('^tunein:', track_info['file'])):
|
or re.search('^tunein:', track['file'])):
|
||||||
m = re.match('^\s*(.+?)\s+-\s+(.*)\s*$', track['title'])
|
m = re.match('^\s*(.+?)\s+-\s+(.*)\s*$', track['title'])
|
||||||
if m and m.group(1) and m.group(2):
|
if m and m.group(1) and m.group(2):
|
||||||
track['artist'] = m.group(1)
|
track['artist'] = m.group(1)
|
||||||
|
|
Loading…
Reference in a new issue