handles series type mismatch if is in movie category
This commit is contained in:
@@ -81,6 +81,10 @@ function getTorrent(torrent) {
|
||||
})
|
||||
}
|
||||
|
||||
function getTorrentsBasedOnTitle(titleQuery, type) {
|
||||
return Torrent.findAll({ where: { title: { [Op.regexp]: `${titleQuery}` }, type: type } });
|
||||
}
|
||||
|
||||
function createTorrent(torrent) {
|
||||
return Torrent.upsert(torrent);
|
||||
}
|
||||
@@ -133,8 +137,9 @@ module.exports = {
|
||||
connect,
|
||||
getProvider,
|
||||
updateProvider,
|
||||
getTorrent,
|
||||
createTorrent,
|
||||
getTorrent,
|
||||
getTorrentsBasedOnTitle,
|
||||
createFile,
|
||||
getFiles,
|
||||
getFilesBasedOnTitle,
|
||||
|
||||
Reference in New Issue
Block a user