From be255040e6d031d996f8744e84b64eccbdf98061 Mon Sep 17 00:00:00 2001 From: IITII Date: Thu, 13 Jun 2024 11:58:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(mt):=20=E6=90=9C=E7=B4=A2=E9=A1=B5=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E7=A7=8D=E5=AD=90=E5=88=B0=E6=9C=AC=E5=9C=B0=20#1808?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/options/views/search/Actions.vue | 18 +----------------- src/options/views/search/SearchTorrent.ts | 22 ++++++++++++---------- 2 files changed, 13 insertions(+), 27 deletions(-) diff --git a/src/options/views/search/Actions.vue b/src/options/views/search/Actions.vue index 5e9b7d8a7..e46b1de13 100644 --- a/src/options/views/search/Actions.vue +++ b/src/options/views/search/Actions.vue @@ -30,7 +30,6 @@ save - - save - - \ No newline at end of file + diff --git a/src/options/views/search/SearchTorrent.ts b/src/options/views/search/SearchTorrent.ts index 321d24460..cd8ff7305 100644 --- a/src/options/views/search/SearchTorrent.ts +++ b/src/options/views/search/SearchTorrent.ts @@ -1234,17 +1234,19 @@ export default Vue.extend({ /** * 下载已选中的种子文件 */ - downloadSelected() { + async downloadSelected() { let files: downloadFile[] = []; - this.selected.forEach((item: SearchResultItem) => { - item.url && - files.push({ - url: item.url, - fileName: `[${item.site.name}][${item.title}].torrent`, - method: item.site.downloadMethod, - timeout: this.options.connectClientTimeout - }); - }); + for (let i = 0; i < this.selected.length; i++) { + const item = this.selected[i]; + console.log(`[${i}]解析 ${item.title} 的 url: ${item.url}`) + const url = this.processURLWithPrefix("m-teamdetail", item.site, item.url) + url && files.push({ + url: url, + fileName: `[${item.site.name}][${item.title}].torrent`, + method: item.site.downloadMethod, + timeout: this.options.connectClientTimeout + }); + } console.log(files); if (files.length) { if (files.length > 1) {