* Lots of improvements to info extraction system

* MUCH faster browsing in file base
* Better release year estimation
* New tool: exiftool2desc
This commit is contained in:
Bryan Ashby 2017-05-19 18:41:13 -06:00
parent b8595f667d
commit 54a7f4f774
8 changed files with 226 additions and 80 deletions

View file

@ -396,13 +396,13 @@ module.exports = class FileEntry {
FROM file_user_rating
WHERE file_id = f.file_id)
AS avg_rating
FROM file f, file_meta m`;
FROM file f`;
sqlOrderBy = `ORDER BY avg_rating ${sqlOrderDir}`;
} else {
sql =
`SELECT DISTINCT f.file_id, f.${filter.sort}
FROM file f, file_meta m`;
FROM file f`;
sqlOrderBy = getOrderByWithCast(`f.${filter.sort}`) + ' ' + sqlOrderDir;
}
@ -410,7 +410,7 @@ module.exports = class FileEntry {
} else {
sql =
`SELECT DISTINCT f.file_id
FROM file f, file_meta m`;
FROM file f`;
sqlOrderBy = `${getOrderByWithCast('f.file_id')} ${sqlOrderDir}`;
}