mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
fix #165
This commit is contained in:
+1
-1
@@ -207,7 +207,7 @@ class Album:
|
|||||||
dates = (int(t.date) for t in tracks if t.date)
|
dates = (int(t.date) for t in tracks if t.date)
|
||||||
try:
|
try:
|
||||||
self.date = datetime.datetime.fromtimestamp(min(dates)).year
|
self.date = datetime.datetime.fromtimestamp(min(dates)).year
|
||||||
except ValueError:
|
except:
|
||||||
self.date = datetime.datetime.now().year
|
self.date = datetime.datetime.now().year
|
||||||
|
|
||||||
def set_count(self, count: int):
|
def set_count(self, count: int):
|
||||||
|
|||||||
Reference in New Issue
Block a user