add route to open a file in file manager

+ try a new approach of cleaning remasters from track titles
This commit is contained in:
geoffrey45
2023-05-09 13:25:31 +03:00
parent b9f0204225
commit 740f45b9ac
5 changed files with 83 additions and 8 deletions
+4 -1
View File
@@ -2,7 +2,6 @@
Contains all the artist(s) routes.
"""
from collections import deque
from pprint import pprint
from flask import Blueprint, request
@@ -44,6 +43,10 @@ class ArtistsCache:
"""
artists: deque[CacheEntry] = deque(maxlen=1)
# THE ABOVE IS SET TO MAXLEN=1 TO AVOID A BUG THAT I WAS TOO LAZY TO INVESTIGATE
# ARTIST TRACKS SOMEHOW DISAPPEARED FOR SOME REASON I COULDN'T UNDERSTAND. BY
# DISAPPEARING I MEAN AN ARTIST YOU ARE SURE HAS 150 TRACKS ONLY SHOWING LIKE 3 IN
# THE ARTIST PAGE. 🤷🏿 (TODO: MAYBE FIX THIS BUG?)
@classmethod
def get_albums_by_artisthash(cls, artisthash: str) -> tuple[list[Album], int]: