fix album having date = 0

This commit is contained in:
mungai-njoroge
2023-07-09 17:57:14 +03:00
parent 65d21d07da
commit 4a7416853a
8 changed files with 63 additions and 31 deletions
+1
View File
@@ -191,5 +191,6 @@ class Album:
if len(dates) == 0:
self.date = 0
return
self.date = datetime.datetime.fromtimestamp(min(dates)).year