add colors to album page header

- add colors attribute to the album class
- render color gradient in the album page
This commit is contained in:
geoffrey45
2022-06-30 14:01:48 +03:00
committed by Mungai Geoffrey
parent f919ce35df
commit a23b6200eb
7 changed files with 70 additions and 42 deletions
+12 -8
View File
@@ -15,6 +15,7 @@ from app.lib.albumslib import ValidateAlbumThumbs
from app.lib import trackslib
from app.lib.populate import CreateAlbums, Populate
from app.lib.playlistlib import ValidatePlaylistThumbs
from app.lib.colorlib import ProcessAlbumColors
@helpers.background
@@ -23,17 +24,20 @@ def run_checks():
Checks for new songs every 5 minutes.
"""
# while True:
trackslib.validate_tracks()
while True:
trackslib.validate_tracks()
Populate()
CreateAlbums()
Populate()
CreateAlbums()
if helpers.Ping()():
CheckArtistImages()()
if helpers.Ping()():
CheckArtistImages()()
ValidateAlbumThumbs()
ValidatePlaylistThumbs()
ValidateAlbumThumbs()
ValidatePlaylistThumbs()
ProcessAlbumColors()
time.sleep(300)
@helpers.background