mirror of
https://github.com/Findus23/RadioStats.git
synced 2024-09-19 16:03:48 +02:00
more verbosity
This commit is contained in:
parent
7eaf786034
commit
560558146e
1 changed files with 5 additions and 0 deletions
5
color.py
5
color.py
|
@ -29,7 +29,9 @@ else:
|
|||
|
||||
query = Song.select().where((Song.show == 0) & (Song.image_large.is_null(False)) & (Song.background_color.is_null()))
|
||||
for song in query.limit(limit):
|
||||
print(song.title)
|
||||
url = song.image_large
|
||||
print(url)
|
||||
if not url:
|
||||
continue
|
||||
|
||||
|
@ -46,4 +48,7 @@ for song in query.limit(limit):
|
|||
song.alternative_color = to_rgb_string(*data["DarkVibrant"]["rgb"]) if "DarkVibrant" in data else None
|
||||
song.text_color = to_rgb_string(*data["DarkMuted"]["rgb"]) if "DarkMuted" in data else None
|
||||
song.save()
|
||||
print(song.background_color)
|
||||
print(song.alternative_color)
|
||||
print(song.text_color)
|
||||
sleep(5)
|
||||
|
|
Loading…
Reference in a new issue