Skip to content

Commit

Permalink
Couple changes
Browse files Browse the repository at this point in the history
  • Loading branch information
theballaam96 committed Jan 14, 2024
1 parent 2450109 commit 684661b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/scripts/append-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)*";
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/pr-analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 684661b

Please sign in to comment.