[scraper] upsert existing video

This commit is contained in:
TheBeastLT
2020-05-02 17:12:28 +02:00
parent 14b2f6b1a2
commit cd5fac2f60

View File

@@ -200,6 +200,9 @@ function setTorrentSeeders(infoHash, seeders) {
}
function createFile(file) {
if (file.id) {
return File.upsert(file);
}
return File.create(file, { include: [Subtitle] });
}