mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 修复新版本搜书uri问题
This commit is contained in:
parent
642d9cc5fe
commit
70b81d35f3
@ -200,10 +200,12 @@ async function getZBook(e, keyword) {
|
||||
cover,
|
||||
} = item;
|
||||
const bookDownloadUrls = zBookDownloadUrl.map(
|
||||
url =>
|
||||
`${url}${ipfs_cid}?filename=${encodeURIComponent(
|
||||
title,
|
||||
)}_[${language}]${author}.${extension}`,
|
||||
url => {
|
||||
const filename = `${title}_[${language}]${author}`
|
||||
return `${url}${ipfs_cid}?filename=${encodeURIComponent(
|
||||
filename
|
||||
)}.${extension}`
|
||||
}
|
||||
);
|
||||
// const { url, speed } = await findFastestUrl(bookDownloadUrls);
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user