diff --git a/scraper/lib/repository.js b/scraper/lib/repository.js index 9a64284..f3a26a1 100644 --- a/scraper/lib/repository.js +++ b/scraper/lib/repository.js @@ -200,6 +200,9 @@ function setTorrentSeeders(infoHash, seeders) { } function createFile(file) { + if (file.id) { + return File.upsert(file); + } return File.create(file, { include: [Subtitle] }); }