fix(podcast): slightly more robust downloading and concurrency (#433)

This commit is contained in:
Senan Kelly
2023-12-21 03:20:22 +00:00
committed by GitHub
parent 2f109f1982
commit f34cd2e213
4 changed files with 202 additions and 221 deletions

View File

@@ -222,7 +222,8 @@ func (c *Controller) ServeSearchTwo(r *http.Request) *spec.Response {
for _, s := range queries {
q = q.Where(`right_path LIKE ? OR right_path_u_dec LIKE ?`, s, s)
}
q = q.Preload("AlbumStar", "user_id=?", user.ID).
q = q.
Preload("AlbumStar", "user_id=?", user.ID).
Preload("AlbumRating", "user_id=?", user.ID).
Offset(params.GetOrInt("artistOffset", 0)).
Limit(params.GetOrInt("artistCount", 20))