mirror of
https://github.com/krateng/maloja.git
synced 2025-04-13 07:27:12 +03:00
Fix GH-264
This commit is contained in:
parent
02a848c747
commit
6a3fd46219
@ -21,4 +21,10 @@ minor_release_name: "Nicole"
|
||||
- "[Technical] Bumped Python and SQLAlchemy versions"
|
||||
- "[Distribution] Removed build of arm/v7 image"
|
||||
3.2.1:
|
||||
notes: []
|
||||
notes:
|
||||
- "[Feature] Added setting for custom week offset"
|
||||
- "[Bugfix] Fixed album entity rows being marked as track entity rows"
|
||||
- "[Bugfix] Fixed scrobbling of tracks when all artists have been removed by server parsing"
|
||||
- "[Bugfix] Fixed Spotify import of multiple files"
|
||||
- "[Bugfix] Fixed process control on FreeBSD"
|
||||
- "[Bugfix] Fixed Spotify authentication thread blocking the process from terminating"
|
@ -214,8 +214,6 @@ class MTRangeWeek(MTRangeSingular):
|
||||
# do this so we can construct the week with overflow (eg 2020/-3)
|
||||
thisisoyear_firstday = date.fromisocalendar(year,1,1) + timedelta(days=malojaconfig['WEEK_OFFSET']-1)
|
||||
self.firstday = thisisoyear_firstday + timedelta(days=7*(week-1))
|
||||
self.firstday = date(self.firstday.year,self.firstday.month,self.firstday.day)
|
||||
# for compatibility with pre python3.8 (https://bugs.python.org/issue32417)
|
||||
|
||||
self.lastday = self.firstday + timedelta(days=6)
|
||||
|
||||
|
@ -190,7 +190,8 @@ malojaconfig = Configuration(
|
||||
"delimiters_formal":(tp.Set(tp.String()), "Formal Delimiters", [";","/","|","␝","␞","␟"], "Delimiters used to tag multiple artists when only one tag field is available"),
|
||||
"filters_remix":(tp.Set(tp.String()), "Remix Filters", ["Remix", "Remix Edit", "Short Mix", "Extended Mix", "Soundtrack Version"], "Filters used to recognize the remix artists in the title"),
|
||||
"parse_remix_artists":(tp.Boolean(), "Parse Remix Artists", False),
|
||||
"week_offset":(tp.Integer(), "Week Begin Offset", 0, "Start of the week for the purpose of weekly statistics. 0 = Sunday, 6 = Saturday")
|
||||
"week_offset":(tp.Integer(), "Week Begin Offset", 0, "Start of the week for the purpose of weekly statistics. 0 = Sunday, 6 = Saturday"),
|
||||
"timezone":(tp.Integer(), "UTC Offset", 0)
|
||||
},
|
||||
"Web Interface":{
|
||||
"default_range_startpage":(tp.Choice({'alltime':'All Time','year':'Year','month':"Month",'week':'Week'}), "Default Range for Startpage Stats", "year"),
|
||||
@ -204,7 +205,6 @@ malojaconfig = Configuration(
|
||||
"discourage_cpu_heavy_stats":(tp.Boolean(), "Discourage CPU-heavy stats", False, "Prevent visitors from mindlessly clicking on CPU-heavy options. Does not actually disable them for malicious actors!"),
|
||||
"use_local_images":(tp.Boolean(), "Use Local Images", True),
|
||||
#"local_image_rotate":(tp.Integer(), "Local Image Rotate", 3600),
|
||||
"timezone":(tp.Integer(), "UTC Offset", 0),
|
||||
"time_format":(tp.String(), "Time Format", "%d. %b %Y %I:%M %p"),
|
||||
"theme":(tp.String(), "Theme", "maloja")
|
||||
}
|
||||
|
4
maloja/thirdparty/spotify.py
vendored
4
maloja/thirdparty/spotify.py
vendored
@ -47,6 +47,8 @@ class Spotify(MetadataInterface):
|
||||
expire = responsedata.get("expires_in",3600)
|
||||
self.settings["token"] = responsedata["access_token"]
|
||||
#log("Successfully authenticated with Spotify")
|
||||
Timer(expire,self.authorize).start()
|
||||
t = Timer(expire,self.authorize)
|
||||
t.daemon = True
|
||||
t.start()
|
||||
except Exception as e:
|
||||
log("Error while authenticating with Spotify: " + repr(e))
|
||||
|
Loading…
x
Reference in New Issue
Block a user