[scraper] assigns subtitle indexes directly to file table as json array

This commit is contained in:
TheBeastLT
2020-05-04 21:46:39 +02:00
parent 46b75f0466
commit d47cf4304e
4 changed files with 71 additions and 88 deletions

View File

@@ -106,7 +106,7 @@ async function assignSubs() {
const assignedContents = assignSubtitles({ videos, subtitles });
return Promise.all(assignedContents.videos
.filter(video => video.subtitles)
.map(video => repository.upsertSubtitles(video, video.subtitles)));
.map(video => repository.createFile(video)));
}));
}