Skip to content

Commit

Permalink
small
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaridas committed Mar 1, 2024
1 parent 93e1642 commit 80282f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const defaultConfig = {

"searchByType": process.env.SEARCH_BY_TYPE || false,

"searchByYear": process.env.SEARCH_BY_YEAR || false,
"dontSearchByYear": process.env.DONT_SEARCH_BY_YEAR || false,

"responseTimeout": parseInt(process.env.RESPONSE_TIMEOUT) || 8000,

Expand All @@ -32,7 +32,7 @@ const defaultConfig = {

"maximumSize": process.env.MAX_SIZE || "5GB",

"ignoreTitles": process.env.IGNORE_TITLES || "\\b(Telecine|CAMRip|HQCAM)\\b|\\b(?:HD-?)?T(?:ELE)?S(?:YNC)?\\b|\\b(?:HD-?)?CAM\\b",
"ignoreTitles": process.env.IGNORE_TITLES || "\\b(Telecine|CAMRip)\\b|\\b(?:HD-?)?T(?:ELE)?S(?:YNC)?\\b|\\b(?:HD-?)?CAM\\b|\\b(?:HQ-?)?CAM\\b",

"downloadTorrentQueue": parseInt(process.env.DOWNLOAD_TORRENT_QUEUE) || 10,

Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function streamFromParsed(tor, parsedTorrent, streamInfo, cb) {
} else {
let regEx = null;
if (streamInfo.type === 'movie') {
regEx = new RegExp(`${streamInfo.name.split(' ').join('.*')}.*${config.searchByYear && streamInfo.year ? streamInfo.year : ''}.*`, 'i');
regEx = new RegExp(`${streamInfo.name.split(' ').join('.*')}.*${!config.dontSearchByYear && streamInfo.year ? streamInfo.year : ''}.*`, 'i');
} else {
regEx = new RegExp(`${streamInfo.name.split(' ').join('.*')}.*${helper.episodeTag(streamInfo.season, streamInfo.episode)}.*`, 'i');
}
Expand Down

0 comments on commit 80282f4

Please sign in to comment.