fix: inserting videos into songs
table regardless of classified label
This commit is contained in:
parent
00b52c01f7
commit
8158ce10c0
@ -26,7 +26,7 @@ export const classifyVideoWorker = async (job: Job) => {
|
|||||||
await insertVideoLabel(client, aid, label);
|
await insertVideoLabel(client, aid, label);
|
||||||
|
|
||||||
const exists = await aidExistsInSongs(client, aid);
|
const exists = await aidExistsInSongs(client, aid);
|
||||||
if (!exists) {
|
if (!exists && label !== 0) {
|
||||||
await insertIntoSongs(client, aid);
|
await insertIntoSongs(client, aid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user