handle discs in album page

This commit is contained in:
geoffrey45
2022-08-02 22:47:19 +03:00
parent 11d33e9617
commit 3dcb8ed2ef
8 changed files with 60 additions and 12 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ class Track:
genre: str
bitrate: int
tracknumber: int
disknumber: int
discnumber: int
albumhash: str
date: str
image: str
@@ -42,7 +42,7 @@ class Track:
self.genre = tags["genre"]
self.bitrate = int(tags["bitrate"])
self.length = int(tags["length"])
self.disknumber = int(tags["disknumber"])
self.discnumber = int(tags["discnumber"])
self.albumhash = tags["albumhash"]
self.date = tags["date"]
self.image = tags["albumhash"] + ".webp"