Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
same31 committed Oct 14, 2016
2 parents 9ee69c9 + 95fb09a commit 7bba1ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ function findSubtitles (body, languages) {
continue;
}

distributionMatch = version.match(/HDTV|WEB.DL|WEB.?RIP|WR|BRRIP|BDRIP|BLURAY/i);
distributionMatch = version.match(/HDTV|WEB(.DL|.?RIP)?|WR|BRRIP|BDRIP|BLURAY/i);

distribution = distributionMatch
? distributionMatch[0].toUpperCase()
.replace(/WEB.DL|WEB.?RIP|WR/, 'WEB-DL')
.replace(/WEB(.DL|.?RIP)?|WR/, 'WEB-DL')
.replace(/BRRIP|BDRIP|BLURAY/, 'BLURAY')
: 'UNKNOWN';

team = version.replace(/.?(REPACK|PROPER|[XH].?264|HDTV|480P|720P|1080P|2160P|WEB.DL|WEB.?RIP|WR|BRRIP|BDRIP|BLURAY)+.?/g, '')
team = version.replace(/.?(REPACK|PROPER|[XH].?264|HDTV|480P|720P|1080P|2160P|WEB(.DL|.?RIP)?|WR|BRRIP|BDRIP|BLURAY)+.?/g, '')
.trim().toUpperCase() || 'UNKNOWN';

subs.push({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "addic7ed-api",
"version": "1.3.1",
"version": "1.3.2",
"description": "API to search and download subtitles files from addic7ed.com",
"main": "index.js",
"dependencies": {
Expand Down

0 comments on commit 7bba1ce

Please sign in to comment.