mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 21:26:53 +00:00
[scraper] upsert existing video
This commit is contained in:
parent
14b2f6b1a2
commit
cd5fac2f60
1 changed files with 3 additions and 0 deletions
|
|
@ -200,6 +200,9 @@ function setTorrentSeeders(infoHash, seeders) {
|
|||
}
|
||||
|
||||
function createFile(file) {
|
||||
if (file.id) {
|
||||
return File.upsert(file);
|
||||
}
|
||||
return File.create(file, { include: [Subtitle] });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue