mirror of
https://github.com/sanderfoobar/ircradio.git
synced 2024-11-22 20:09:41 +01:00
fix lower()
This commit is contained in:
parent
0bd046cf77
commit
bbb9c7b0c6
@ -192,7 +192,7 @@ class Commands:
|
|||||||
return await send_message(target, "No song(s) found!")
|
return await send_message(target, "No song(s) found!")
|
||||||
|
|
||||||
if songs and needle_2nd:
|
if songs and needle_2nd:
|
||||||
songs = [s for s in songs if needle_2nd in s.title.lower()]
|
songs = [s for s in songs if s.title and needle_2nd in s.title.lower()]
|
||||||
|
|
||||||
len_songs = len(songs)
|
len_songs = len(songs)
|
||||||
max_songs = 6
|
max_songs = 6
|
||||||
|
@ -88,7 +88,7 @@ class Station:
|
|||||||
meta: dict = await Radio.icecast_metadata(self)
|
meta: dict = await Radio.icecast_metadata(self)
|
||||||
if meta:
|
if meta:
|
||||||
meta_title = meta.get('title')
|
meta_title = meta.get('title')
|
||||||
if meta_title.lower() in [' ', 'unknown', 'error', 'empty', 'bleepbloopblurp']:
|
if meta_title and meta_title.lower() in [' ', 'unknown', 'error', 'empty', 'bleepbloopblurp']:
|
||||||
meta_title = None
|
meta_title = None
|
||||||
|
|
||||||
if meta_title and len(songs) > 1 and songs:
|
if meta_title and len(songs) > 1 and songs:
|
||||||
|
Loading…
Reference in New Issue
Block a user