Commit 4ecf21e6 authored by Deion Menor's avatar Deion Menor

Modify navbar and search result style

parent 9690e6f1
...@@ -9,11 +9,11 @@ def init(): ...@@ -9,11 +9,11 @@ def init():
musicbrainzngs.set_useragent("mymusiclist","0.1", contact="none") musicbrainzngs.set_useragent("mymusiclist","0.1", contact="none")
musicbrainzngs.set_rate_limit(limit_or_interval=False, new_requests=1) musicbrainzngs.set_rate_limit(limit_or_interval=False, new_requests=1)
print("[Exthook] Initialized") print("[Exthook] Initialized")
def verifyAlbumArt(album, artist): def verifyAlbumArt(album, artist):
if(album.art == None): if(album.art == None):
album.art = fetchAlbumArt(album.album_name, artist) album.art = fetchAlbumArt(album.album_name, artist)
album.save() album.save()
#may or may not add checks to see if valid http link #may or may not add checks to see if valid http link
def fetchAlbumArt(name, artist): def fetchAlbumArt(name, artist):
...@@ -34,4 +34,4 @@ def fetchAlbumArt(name, artist): ...@@ -34,4 +34,4 @@ def fetchAlbumArt(name, artist):
return imagelist['images'][0]['thumbnails']['large'] return imagelist['images'][0]['thumbnails']['large']
def debug(string): def debug(string):
print("[Exthook] " + string) print("[Exthook] " + string)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment