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:
parent
6c3948e699
commit
a25e8adab8
1 changed files with 2 additions and 0 deletions
2
fetch.py
2
fetch.py
|
@ -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():
|
||||||
|
|
Loading…
Reference in a new issue