mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-10-12 17:54:25 +00:00
fix(uc/qk): improve directory download with cookie, transfer fallback and URL-safe param encoding
- Preserve download cookie for UC/Quark needDownloader flows and disable browser/copy when required - Quark: share-link first, transfer only on size limit (23018), reuse savedFileCache/search_exit - Propagate auth to subdirectory parser URLs; switch path params to URL-safe Base64 (no double encode) - Bump version to 0.4.2 Fixes #205 Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -5,6 +5,7 @@ const fileTypeUtils = {
|
||||
},
|
||||
getFileTypeClass(file) {
|
||||
if (file.fileType === 'folder') return 'folder'
|
||||
if (file.fileType === 'url') return 'url'
|
||||
const ext = this.getFileExtension(file.fileName)
|
||||
const fileTypes = {
|
||||
'image': ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'svg', 'webp'],
|
||||
@@ -23,6 +24,8 @@ const fileTypeUtils = {
|
||||
},
|
||||
getFileIcon(file) {
|
||||
if (file.fileType === 'folder') return 'fas fa-folder'
|
||||
// 永硕等网盘的外链/公告条目
|
||||
if (file.fileType === 'url') return 'fas fa-link'
|
||||
const ext = this.getFileExtension(file.fileName)
|
||||
const iconMap = {
|
||||
'jpg': 'fas fa-file-image', 'jpeg': 'fas fa-file-image', 'png': 'fas fa-file-image',
|
||||
|
||||
Reference in New Issue
Block a user