mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 21:26:53 +00:00
[scraper] updates created entry logging format
This commit is contained in:
parent
a8e76cd46e
commit
201ec02260
1 changed files with 2 additions and 2 deletions
|
|
@ -35,13 +35,13 @@ async function createTorrentEntry(torrent) {
|
|||
|
||||
const files = await parseTorrentFiles(torrent);
|
||||
if (!files || !files.length) {
|
||||
console.log(`no video files found: ${torrent.title}`);
|
||||
console.log(`no video files found for [${torrent.infoHash}] ${torrent.title}`);
|
||||
return;
|
||||
}
|
||||
|
||||
return repository.createTorrent(torrent)
|
||||
.then(() => Promise.all(files.map(file => repository.createFile(file))))
|
||||
.then(() => console.log(`Created entry for ${torrent.title}`));
|
||||
.then(() => console.log(`Created entry for [${torrent.infoHash}] ${torrent.title}`));
|
||||
}
|
||||
|
||||
async function createSkipTorrentEntry(torrent) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue