From 201ec02260938ded09c3b14f9ebf49022ec596ba Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Fri, 3 Apr 2020 14:11:51 +0200 Subject: [PATCH] [scraper] updates created entry logging format --- scraper/lib/torrentEntries.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scraper/lib/torrentEntries.js b/scraper/lib/torrentEntries.js index 393575d..391ea25 100644 --- a/scraper/lib/torrentEntries.js +++ b/scraper/lib/torrentEntries.js @@ -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) {