diff --git a/.github/scripts/append-json.js b/.github/scripts/append-json.js index 06debb00..ca8d111e 100644 --- a/.github/scripts/append-json.js +++ b/.github/scripts/append-json.js @@ -192,7 +192,10 @@ async function run() { } let desc = desc_strings.join("\n") const binary_dl_link = binary_link ? binary_link : "???"; - const has_audio_file = preview_file_bytes != null; + let has_audio_file = preview_file_bytes != null; + if (has_audio_file) { + has_audio_file = Buffer.from(preview_file_bytes, "binary").length < (25 * 1024 * 1024); + } let audio_string = "No Preview"; if (has_audio_file) { audio_string = "*(Attached)*"; diff --git a/.github/scripts/pr-analyzer.js b/.github/scripts/pr-analyzer.js index 00251c04..c8843f20 100644 --- a/.github/scripts/pr-analyzer.js +++ b/.github/scripts/pr-analyzer.js @@ -188,7 +188,7 @@ async function run() { json_output["Audio"] = encodeURI(`https://github.com/theballaam96/candys-shop/raw/main/previews/${sub_file}.${preview_extension}`) } if (bin_file) { - json_output["Binary"] = `previews/${sub_file}.bin` + json_output["Binary"] = `binaries/${sub_file}.bin` } if (song_upload) {