mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[scraper] upsert existing video
This commit is contained in:
@@ -200,6 +200,9 @@ function setTorrentSeeders(infoHash, seeders) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createFile(file) {
|
function createFile(file) {
|
||||||
|
if (file.id) {
|
||||||
|
return File.upsert(file);
|
||||||
|
}
|
||||||
return File.create(file, { include: [Subtitle] });
|
return File.create(file, { include: [Subtitle] });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user