same/prior; method call missing data.station, added
This commit is contained in:
@ -82,7 +82,7 @@ class Radio(FastAPI):
|
|||||||
if not self.util.check_key(path=request.url.path, req_type=4, key=data.key):
|
if not self.util.check_key(path=request.url.path, req_type=4, key=data.key):
|
||||||
raise HTTPException(status_code=403, detail="Unauthorized")
|
raise HTTPException(status_code=403, detail="Unauthorized")
|
||||||
if data.skipTo:
|
if data.skipTo:
|
||||||
queue_item = self.radio_util.get_queue_item_by_uuid(data.skipTo)
|
queue_item = self.radio_util.get_queue_item_by_uuid(data.skipTo, data.station)
|
||||||
if not queue_item:
|
if not queue_item:
|
||||||
return JSONResponse(
|
return JSONResponse(
|
||||||
status_code=500,
|
status_code=500,
|
||||||
|
@ -368,7 +368,7 @@ class RadioUtil:
|
|||||||
self.active_playlist.clear()
|
self.active_playlist.clear()
|
||||||
|
|
||||||
with sqlite3.connect(
|
with sqlite3.connect(
|
||||||
f"file:{self.playback_db_path}?mode=ro", uri=True, timeout=15
|
f"file:{self.playback_db_path}?mode=ro", uri=True, timeout=30
|
||||||
) as db_conn:
|
) as db_conn:
|
||||||
db_conn.row_factory = sqlite3.Row
|
db_conn.row_factory = sqlite3.Row
|
||||||
for station in self.db_queries:
|
for station in self.db_queries:
|
||||||
|
Reference in New Issue
Block a user