PEP8 fixes
This commit is contained in:
parent
45c94bd5cd
commit
b89b1c783f
@ -13,6 +13,7 @@ def _extract_artist_title(input):
|
|||||||
# fallback
|
# fallback
|
||||||
return (input.split('-') + [''] * 2)[:2]
|
return (input.split('-') + [''] * 2)[:2]
|
||||||
|
|
||||||
|
|
||||||
class Cmus(IntervalModule):
|
class Cmus(IntervalModule):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@ -76,7 +77,8 @@ class Cmus(IntervalModule):
|
|||||||
}
|
}
|
||||||
|
|
||||||
if fdict['stream']:
|
if fdict['stream']:
|
||||||
fdict['artist'], fdict['title'] = _extract_artist_title(fdict['stream'])
|
fdict['artist'], fdict[
|
||||||
|
'title'] = _extract_artist_title(fdict['stream'])
|
||||||
|
|
||||||
elif not fdict['title']:
|
elif not fdict['title']:
|
||||||
_, filename = os.path.split(fdict['file'])
|
_, filename = os.path.split(fdict['file'])
|
||||||
|
Loading…
Reference in New Issue
Block a user