Merge branch 'master' of github.com:DEgITx/rats-search
This commit is contained in:
commit
4c21e06613
1
.gitignore
vendored
1
.gitignore
vendored
@ -20,3 +20,4 @@ node.exe
|
||||
/app/app.js
|
||||
/app/background.js
|
||||
/app/**/*.map
|
||||
|
||||
|
41
CHANGELOG.md
41
CHANGELOG.md
@ -1,3 +1,44 @@
|
||||
## [1.1.2](https://github.com/DEgITx/rats-search/compare/v1.1.1...v1.1.2) (2019-01-28)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **bootstrap:** fix preventing bootstrap saving [#74](https://github.com/DEgITx/rats-search/issues/74) [#69](https://github.com/DEgITx/rats-search/issues/69) ([a68ebc5](https://github.com/DEgITx/rats-search/commit/a68ebc5))
|
||||
|
||||
## [1.1.1](https://github.com/DEgITx/rats-search/compare/v1.1.0...v1.1.1) (2019-01-26)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **portative:** fix updater check [#71](https://github.com/DEgITx/rats-search/issues/71) ([b524845](https://github.com/DEgITx/rats-search/commit/b524845))
|
||||
|
||||
# [1.1.0](https://github.com/DEgITx/rats-search/compare/v1.0.0...v1.1.0) (2019-01-26)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **1337x:** proper poster in some cases ([515d30c](https://github.com/DEgITx/rats-search/commit/515d30c))
|
||||
* **arm:** ignore relay on arm [#66](https://github.com/DEgITx/rats-search/issues/66) ([e8cb4d8](https://github.com/DEgITx/rats-search/commit/e8cb4d8))
|
||||
* **build:** fix production build after upgrade to new engine ([09ef602](https://github.com/DEgITx/rats-search/commit/09ef602))
|
||||
* **p2p:** fix files in db count on new architecture ([073eefe](https://github.com/DEgITx/rats-search/commit/073eefe))
|
||||
* **p2p:** potencial problem with some p2p decoding messages ([db48f44](https://github.com/DEgITx/rats-search/commit/db48f44))
|
||||
* **tests:** fix check of starting download ([0dee20d](https://github.com/DEgITx/rats-search/commit/0dee20d))
|
||||
* **tests:** more timeout time for some strategies ([471efc1](https://github.com/DEgITx/rats-search/commit/471efc1))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **arm:** added testing arm support ([8b9f9f6](https://github.com/DEgITx/rats-search/commit/8b9f9f6))
|
||||
* **core:** updated to new browser engine ([2370847](https://github.com/DEgITx/rats-search/commit/2370847))
|
||||
* **strategies:** 1337 strategie ([3f75cce](https://github.com/DEgITx/rats-search/commit/3f75cce))
|
||||
* **strategies:** autoload trackers strategies ([4367da9](https://github.com/DEgITx/rats-search/commit/4367da9))
|
||||
* **ui:** settings tabs ([5cb119f](https://github.com/DEgITx/rats-search/commit/5cb119f))
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* **start:** simplify some init statistic calls ([c788569](https://github.com/DEgITx/rats-search/commit/c788569))
|
||||
|
||||
# [1.0.0](https://github.com/DEgITx/rats-search/compare/v0.30.1...v1.0.0) (2018-12-02)
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
"name": "rats-search",
|
||||
"productName": "Rats on The Boat",
|
||||
"description": "P2P BitTorrent search engine",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.2",
|
||||
"private": true,
|
||||
"author": "Alexey Kasyanchuk <degitx@gmail.com>",
|
||||
"copyright": "Copyright © 2018 Alexey Kasyanchuk",
|
||||
|
@ -260,7 +260,13 @@ app.on("ready", async () => {
|
||||
|
||||
if(portative)
|
||||
{
|
||||
autoUpdater.getUpdateInfo().then(info => {
|
||||
autoUpdater.getUpdateInfoAndProvider().then(({info}) => {
|
||||
if(!info)
|
||||
{
|
||||
logTE('updater', 'info not provided for updater')
|
||||
return
|
||||
}
|
||||
|
||||
if(info.version == app.getVersion())
|
||||
{
|
||||
logT('updater', 'update not founded for version', app.getVersion())
|
||||
|
@ -271,7 +271,12 @@ module.exports = function (send, recive, dataDirectory, version, env)
|
||||
});
|
||||
|
||||
resp.on('end', () => {
|
||||
resolve(data.length > 0 && JSON.parse(data))
|
||||
try {
|
||||
resolve(data.length > 0 && JSON.parse(data))
|
||||
} catch(e) {
|
||||
logTE('p2p', 'loading bootstrap failed', e)
|
||||
resolve(false)
|
||||
}
|
||||
});
|
||||
}).on("error", (err) => {
|
||||
logTE('http', `${url} error: ` + err.message)
|
||||
|
@ -47,9 +47,13 @@ module.exports = class Stragegie
|
||||
contentCategory = $('.torrent-category-detail .list li').first().find('span').text()
|
||||
} catch(er) {}
|
||||
|
||||
let poster = $('.torrent-image img').attr('src') || $('#description img').attr('data-original');
|
||||
if(poster)
|
||||
poster = poster.replace(/^\/\//, 'https://');
|
||||
|
||||
return {
|
||||
name: topicTitle.trim(),
|
||||
poster: $('#description img').attr('data-original'),
|
||||
poster,
|
||||
description: $('#description').text(),
|
||||
x1337ThreadId: parseInt(this.id),
|
||||
x1337Href: this.href,
|
||||
|
@ -14,6 +14,13 @@ describe("1337x", () => {
|
||||
assert.equal(data.contentCategory, 'Music')
|
||||
})
|
||||
|
||||
it("properFilmPoster", async function() {
|
||||
this.timeout(8000);
|
||||
const data = await strategy.findHash('BA696FB753078807B696A6F1DA5D8DD24F43BE04')
|
||||
assert.equal(data.name, 'Tears of the Sun (2003) [720p] [BluRay] [YTS.ME] [YIFY]')
|
||||
assert.equal(data.poster, 'https://lx1.dyncdn.cc/cdn/89/891b2655428e3016e1fe648539e22220.jpg')
|
||||
})
|
||||
|
||||
it("notFound", async function() {
|
||||
assert(!await strategy.findHash('1734BCCAA7B05BD4D77B86E17820C840BF0C2EF6'))
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user