Skip to content

Commit

Permalink
Perf: Replace torrent name parser lib by an new one
Browse files Browse the repository at this point in the history
  • Loading branch information
jy95 committed Sep 3, 2017
1 parent 3cb9b51 commit 5c428a0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -14,7 +14,7 @@
"prepare": "npm run compile",
"test": "mocha",
"generate-docs": "node_modules/.bin/jsdoc --configure .jsdoc.json --verbose",
"lint" : "./node_modules/.bin/eslint ./src ./test --fix"
"lint": "./node_modules/.bin/eslint ./src ./test --fix"
},
"engines": {
"node": ">=6",
Expand Down Expand Up @@ -70,7 +70,7 @@
"bluebird": "^3.5.0",
"filehound": "^1.16.2",
"lodash": "^4.17.4",
"torrent-name-parser": "git+https://github.com/jy95/torrent-name-parser.git",
"parse-torrent-title": "^1.0.0",
"video-extensions": "^1.1.0"
}
}
4 changes: 2 additions & 2 deletions src/TorrentLibrary.js
Expand Up @@ -111,9 +111,9 @@ import videosExtension from 'video-extensions';

/**
* Parser for media files name
* @see {@link https://github.com/jy95/torrent-name-parser}
* @see {@link https://github.com/clement-escolano/parse-torrent-title}
*/
import nameParser from 'torrent-name-parser';
import { parse as nameParser } from 'parse-torrent-title';

import {
EventEmitter,
Expand Down
2 changes: 1 addition & 1 deletion test/APITests.js
@@ -1,7 +1,7 @@
import videosExtension from 'video-extensions';
import assert from 'assert';
import path from 'path';
import nameParser from 'torrent-name-parser';
import { parse as nameParser } from 'parse-torrent-title';
import _ from 'lodash';
import TorrentLibrary from '../lib/TorrentLibrary';

Expand Down

0 comments on commit 5c428a0

Please sign in to comment.