mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[scraper] populate kitsuId for movies in series torrents
This commit is contained in:
@@ -110,13 +110,16 @@ async function mapSeriesEpisode(file, torrent, files) {
|
||||
}
|
||||
|
||||
async function mapSeriesMovie(file, torrent) {
|
||||
return findMovieImdbId(file).then((imdbId) => [{
|
||||
infoHash: torrent.infoHash,
|
||||
fileIndex: file.fileIndex,
|
||||
title: file.path || file.name,
|
||||
size: file.size,
|
||||
imdbId: imdbId
|
||||
}])
|
||||
return findMovieImdbId(file)
|
||||
.then(imdbId => getMetadata(imdbId, Type.MOVIE).catch(() => ({ imdbId })))
|
||||
.then(metadata => [{
|
||||
infoHash: torrent.infoHash,
|
||||
fileIndex: file.fileIndex,
|
||||
title: file.path || file.name,
|
||||
size: file.size,
|
||||
imdbId: metadata.imdbId,
|
||||
kitsuId: metadata.kitsuId
|
||||
}]);
|
||||
}
|
||||
|
||||
function parseSeriesFile(file, parsedTorrentName) {
|
||||
|
||||
Reference in New Issue
Block a user