feat(zip): place images inside Scans/ folder in archive
Files are now stored as Scans/<filename> instead of being placed directly in the ZIP root, producing a cleaner folder structure on extraction. Bump version to 2.9.4. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name VGMdb Album Downloader
|
// @name VGMdb Album Downloader
|
||||||
// @namespace https://vgmdb.net/
|
// @namespace https://vgmdb.net/
|
||||||
// @version 2.9.3
|
// @version 2.9.4
|
||||||
// @description 支持 单张下载 & zip 打包 & 实时进度显示 & 图片重命名
|
// @description 支持 单张下载 & zip 打包 & 实时进度显示 & 图片重命名
|
||||||
// @match https://vgmdb.net/album/*
|
// @match https://vgmdb.net/album/*
|
||||||
// @grant GM_xmlhttpRequest
|
// @grant GM_xmlhttpRequest
|
||||||
@@ -191,7 +191,7 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
await new Promise(res => setTimeout(res, 400));
|
await new Promise(res => setTimeout(res, 400));
|
||||||
zipFiles.push({ name: filename, lastModified: new Date(), input: blob });
|
zipFiles.push({ name: `Scans/${filename}`, lastModified: new Date(), input: blob });
|
||||||
log(T.added(filename));
|
log(T.added(filename));
|
||||||
} else {
|
} else {
|
||||||
GM_download({
|
GM_download({
|
||||||
|
|||||||
Reference in New Issue
Block a user