From db3c6faab29f437c74085bee25ca3aec24c6ad40 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Sat, 26 Jan 2019 15:27:53 +0300 Subject: [PATCH 1/9] fix(1337x): proper poster in some cases --- src/background/strategies/1337x.js | 6 +++++- tests/strategies/1337x.test.js | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/background/strategies/1337x.js b/src/background/strategies/1337x.js index 7bc1724..084d18a 100644 --- a/src/background/strategies/1337x.js +++ b/src/background/strategies/1337x.js @@ -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, diff --git a/tests/strategies/1337x.test.js b/tests/strategies/1337x.test.js index 1d050eb..d27abb3 100644 --- a/tests/strategies/1337x.test.js +++ b/tests/strategies/1337x.test.js @@ -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')) }) From 52d934dcd3c98b1a4f16b43ac13a3a014251ff5e Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Sat, 26 Jan 2019 15:32:42 +0300 Subject: [PATCH 2/9] release --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 9fd759b..f08c082 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ node.exe /app/app.js /app/background.js /app/**/*.map + From 1e2216c70ab95e4efd2088930b37b44564ffd78e Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sat, 26 Jan 2019 12:38:15 +0000 Subject: [PATCH 3/9] chore(release): 1.1.0 [skip ci] # [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)) --- CHANGELOG.md | 27 +++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4d92a6..4658e6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,30 @@ +# [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) diff --git a/package.json b/package.json index 096f03b..f0c5b97 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "rats-search", "productName": "Rats on The Boat", "description": "P2P BitTorrent search engine", - "version": "1.0.0", + "version": "1.1.0", "private": true, "author": "Alexey Kasyanchuk ", "copyright": "Copyright © 2018 Alexey Kasyanchuk", From e7b85335ed09265e2ea09b1bab7401c3e08b9131 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Sun, 27 Jan 2019 00:00:31 +0300 Subject: [PATCH 4/9] fix(portative): fix updater check #71 --- src/background/background.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/background/background.js b/src/background/background.js index 49fe13e..a36dc8a 100644 --- a/src/background/background.js +++ b/src/background/background.js @@ -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()) From 04582b4613e40f54a5b321b7771cdfff62212781 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Sun, 27 Jan 2019 00:40:14 +0300 Subject: [PATCH 5/9] release --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index f08c082..9fd759b 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,3 @@ node.exe /app/app.js /app/background.js /app/**/*.map - From ad3fa2dc4d1f260e4db5b36d5393ef795b56b209 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sat, 26 Jan 2019 21:45:58 +0000 Subject: [PATCH 6/9] chore(release): 1.1.1 [skip ci] ## [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)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4658e6c..a76bb23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [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) diff --git a/package.json b/package.json index f0c5b97..e2af8e6 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "rats-search", "productName": "Rats on The Boat", "description": "P2P BitTorrent search engine", - "version": "1.1.0", + "version": "1.1.1", "private": true, "author": "Alexey Kasyanchuk ", "copyright": "Copyright © 2018 Alexey Kasyanchuk", From 6e79ae4db3aa52294374d2c656277cb9597804f2 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Mon, 28 Jan 2019 22:32:13 +0300 Subject: [PATCH 7/9] fix(bootstrap): fix preventing bootstrap saving #74 #69 --- src/background/spider.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/background/spider.js b/src/background/spider.js index a071230..6f3cf22 100644 --- a/src/background/spider.js +++ b/src/background/spider.js @@ -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) From aabf6b55a0d002d61091a47a2217b28871ca61f1 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Mon, 28 Jan 2019 22:33:54 +0300 Subject: [PATCH 8/9] release --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 9fd759b..f08c082 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ node.exe /app/app.js /app/background.js /app/**/*.map + From 9f754def6a520a8a282d0c0c004e0188b3650b9f Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Mon, 28 Jan 2019 19:45:47 +0000 Subject: [PATCH 9/9] chore(release): 1.1.2 [skip ci] ## [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)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a76bb23..1ad0d58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [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) diff --git a/package.json b/package.json index e2af8e6..eb81933 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "rats-search", "productName": "Rats on The Boat", "description": "P2P BitTorrent search engine", - "version": "1.1.1", + "version": "1.1.2", "private": true, "author": "Alexey Kasyanchuk ", "copyright": "Copyright © 2018 Alexey Kasyanchuk",