mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 17:15:37 +00:00
[scraper] fixes has movies regex
This commit is contained in:
parent
1308b9eb7a
commit
b08d46efd4
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ const MIN_SIZE = 10 * 1024 * 1024; // 10 MB
|
|||
|
||||
async function parseTorrentFiles(torrent) {
|
||||
const parsedTorrentName = parse(torrent.title);
|
||||
parsedTorrentName.hasMovies = parsedTorrentName.complete || !!torrent.title.match(/movies?(?:\W|$)/);
|
||||
parsedTorrentName.hasMovies = parsedTorrentName.complete || !!torrent.title.match(/movies?(?:\W|$)/i);
|
||||
const metadata = await getMetadata(torrent.kitsuId || torrent.imdbId, torrent.type || Type.MOVIE)
|
||||
.catch(() => undefined);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue