1
0
Fork 0
mirror of https://github.com/Findus23/RadioStats.git synced 2024-09-19 16:03:48 +02:00

skip empty entries

This commit is contained in:
Lukas Winkler 2021-02-02 12:06:09 +01:00
parent 6c3948e699
commit a25e8adab8
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -22,6 +22,8 @@ def detect_show(artist, title):
def add_entry(time, artist, title): def add_entry(time, artist, title):
print(time, artist, title) print(time, artist, title)
if artist is None or title is None:
return
if artist.isupper(): if artist.isupper():
artist = artist.title() artist = artist.title()
if title.isupper(): if title.isupper():