diff --git a/main.meta.js b/main.meta.js index 91a3b2f..8e72b24 100644 --- a/main.meta.js +++ b/main.meta.js @@ -1,7 +1,7 @@ // ==UserScript== // @name PNGExtraEmbed // @namespace https://coom.tech/ -// @version 0.188 +// @version 0.189 // @description uhh // @author You // @match https://boards.4channel.org/* diff --git a/main.user.js b/main.user.js index 3915737..bc05d2d 100644 --- a/main.user.js +++ b/main.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name PNGExtraEmbed // @namespace https://coom.tech/ -// @version 0.188 +// @version 0.189 // @description uhh // @author You // @match https://boards.4channel.org/* @@ -81,7 +81,7 @@ var define_BUILD_VERSION_default; var init_define_BUILD_VERSION = __esm({ ""() { - define_BUILD_VERSION_default = [0, 188]; + define_BUILD_VERSION_default = [0, 189]; } }); @@ -14827,7 +14827,7 @@ { thumbnail: import_buffer2.Buffer.from(await client.getThumbnail(id)), data: async () => import_buffer2.Buffer.from(await client.getFile(id)), - filename: "file" + metas.metadata[idx].ext + filename: metas.metadata[idx].hash + metas.metadata[idx].ext } ]; })); diff --git a/src/utils.ts b/src/utils.ts index 501d119..bb66762 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -254,7 +254,7 @@ export async function getFileFromHydrus(client: HydrusClient, Buffer.from( await client.getFile(id)! ), - filename: 'file' + metas.metadata[idx].ext, + filename: metas.metadata[idx].hash + metas.metadata[idx].ext, }, ] as [number, EmbeddedFile]; })