Skip to content

Commit bf9cc91

Browse files
committed
release: v0.4.4
1 parent e2ec94c commit bf9cc91

4 files changed

Lines changed: 18 additions & 10 deletions

File tree

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ Metadata manager & server for Lidarr
1212
- Caches artist & album art to serve to Lidarr locally
1313

1414

15-
### Disclaimer
16-
17-
LIDARR - nuLMD is not related to, supported, or endorsed by the official Lidarr dev team
18-
19-
Ai - Vibe coded with intention, understanding, & oversight.
15+
## A.I. Disclosure
16+
Coding agents were used for the development of this project with oversight and understanding of all core functions.
2017

2118
## Requirements
2219

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nulmd",
3-
"version": "0.4.3",
3+
"version": "0.4.4",
44
"description": "New Lidarr Metadata Server",
55
"main": "server/index.js",
66
"scripts": {

server/lib/routes.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -824,10 +824,21 @@ router.get('/jobs/recent', async (req, res, next) => {
824824
END::bigint as track_count,
825825
NULL::text as cover_type,
826826
NULL::text as image_provider
827-
FROM metadata_jobs j
827+
FROM (
828+
SELECT *
829+
FROM metadata_jobs
830+
WHERE status IN ('processing', 'pending', 'completed', 'failed')
831+
ORDER BY
832+
CASE status
833+
WHEN 'processing' THEN 0
834+
WHEN 'pending' THEN 1
835+
ELSE 2
836+
END ASC,
837+
created_at DESC
838+
LIMIT 500
839+
) j
828840
LEFT JOIN artists a ON a.mbid = j.entity_mbid
829-
LEFT JOIN release_groups rg ON rg.mbid = j.entity_mbid
830-
WHERE j.status IN ('processing', 'pending', 'completed', 'failed')`);
841+
LEFT JOIN release_groups rg ON rg.mbid = j.entity_mbid`);
831842
}
832843

833844
if (includeDownloads) {

server/sql/database.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class Database {
208208
(SELECT COUNT(*) FROM artists) as artist_count,
209209
(SELECT COUNT(*) FROM release_groups) as album_count,
210210
(SELECT COUNT(*) FROM releases) as release_count,
211-
(SELECT COUNT(DISTINCT recording_mbid) FROM tracks) as track_count,
211+
(SELECT COUNT(*) FROM recordings) as track_count,
212212
(SELECT COUNT(*) FROM images WHERE cached = true) as cached_images,
213213
(SELECT pg_database_size(current_database())) as db_size_bytes
214214
`);

0 commit comments

Comments
 (0)