mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
use album colors on album header play button
- use alnum chars only on hashes - add underline on track album hover
This commit is contained in:
committed by
Mungai Geoffrey
parent
5acb8cb84d
commit
34a214df22
@@ -54,10 +54,8 @@ class Track:
|
||||
|
||||
@staticmethod
|
||||
def create_unique_hash(*args):
|
||||
ill_chars = '/\\:*?"<>|#&'
|
||||
|
||||
string = "".join(str(a) for a in args).replace(" ", "")
|
||||
return "".join(string).strip(ill_chars).lower()
|
||||
return "".join([i for i in string if i.isalnum()]).lower()
|
||||
|
||||
|
||||
@dataclass(slots=True)
|
||||
|
||||
Reference in New Issue
Block a user