mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
add setting to show albums with single track as singles
+ add the above setting to db queries file and migration
This commit is contained in:
+5
-3
@@ -221,13 +221,15 @@ def get_artist(artisthash: str):
|
||||
|
||||
genres = list(genres)
|
||||
|
||||
min_stamp = min(t.date for t in tracks)
|
||||
year = datetime.fromtimestamp(min_stamp).year
|
||||
try:
|
||||
min_stamp = min(t.date for t in tracks)
|
||||
year = datetime.fromtimestamp(min_stamp).year
|
||||
except ValueError:
|
||||
year = 0
|
||||
|
||||
# TODO: Find a way to round a number to the nearest lower 10, and just add an "s" to get the decade
|
||||
|
||||
year = int(str(year)[:3])
|
||||
|
||||
decade = ""
|
||||
|
||||
if year == 196:
|
||||
|
||||
Reference in New Issue
Block a user