Merge origin/master for Furumusic 0.14.0
Build and Publish / Build and Publish Docker Image (push) Successful in 2m40s
Build and Publish / Build and Publish Docker Image (push) Successful in 2m40s
This commit is contained in:
commit
bc0a1f38c8
12 files changed
+675
-143
No files matched your search
+4
-1
@@ -6608,6 +6608,9 @@ async fn history_handler(
|
||||
.await
|
||||
.map_err(|e| cot::Error::internal(e.to_string()))?;
|
||||
crate::metrics::record_play_history(entry.duration_listened, entry.completed);
|
||||
if listened_seconds > 0 {
|
||||
crate::federation::handle().refresh_track_lyrics(entry.track_id, None);
|
||||
}
|
||||
|
||||
Json(serde_json::json!({"ok": true})).into_response()
|
||||
}
|
||||
@@ -10801,7 +10804,7 @@ impl App for PlayerApp {
|
||||
if auth::get_request_user(&auth_ctx,&session,&db).await.is_none() {
|
||||
return Ok(json_error(StatusCode::UNAUTHORIZED,"not authenticated"));
|
||||
}
|
||||
match crate::federation::handle().track_lyrics(&query.0.owner,&query.0.content_id).await {
|
||||
match crate::federation::handle().track_lyrics(query.0.owner.as_deref(),&query.0.content_id).await {
|
||||
Ok(value)=>Json(value).into_response(),
|
||||
Err(error)=>Ok(json_error(StatusCode::BAD_REQUEST,&error.to_string())),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user