mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
use cloud mix images
This commit is contained in:
@@ -32,7 +32,7 @@ def homepage_items():
|
||||
return {
|
||||
"artist_mixes": {
|
||||
"title": "Artist mixes for you",
|
||||
"description": "Curated based on artists you have played in the past",
|
||||
"description": "Based on artists you have been listening to",
|
||||
"items": HomepageStore.get_artist_mixes(),
|
||||
"extra": {},
|
||||
},
|
||||
|
||||
@@ -140,3 +140,21 @@ def send_playlist_image(path: PlaylistImagePath):
|
||||
"""
|
||||
folder = Paths.get_playlist_img_path()
|
||||
return send_file_or_fallback(folder, path.imgpath, "playlist.svg")
|
||||
|
||||
# MIXES
|
||||
@api.get("/mix/medium/<imgpath>")
|
||||
def send_md_mix_image(path: ImagePath):
|
||||
"""
|
||||
Get medium mix image
|
||||
"""
|
||||
folder = Paths.get_md_mixes_img_path()
|
||||
return send_file_or_fallback(folder, path.imgpath, "playlist.svg")
|
||||
|
||||
|
||||
@api.get("/mix/small/<imgpath>")
|
||||
def send_sm_mix_image(path: ImagePath):
|
||||
"""
|
||||
Get small mix image
|
||||
"""
|
||||
folder = Paths.get_sm_mixes_img_path()
|
||||
return send_file_or_fallback(folder, path.imgpath, "playlist.svg")
|
||||
|
||||
Reference in New Issue
Block a user