From c5240a03794a7fe6b8dad539d5ce65c4de3519fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fearocanity=20=28=E3=81=91=E3=82=8D=E3=81=95=E3=82=93=29?= <91414643+fearocanity@users.noreply.github.com> Date: Tue, 14 May 2024 15:47:40 +0800 Subject: [PATCH] last breath (#35) * other * cope: shellcheck * ?* * last breath --- config.conf | 2 +- fb/bocchiep12_en.ass | 3 ++- frameposter.sh | 8 +++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/config.conf b/config.conf index 0caf5a023..4b8495dc3 100644 --- a/config.conf +++ b/config.conf @@ -16,7 +16,7 @@ gif_prev_framecount="10" album="439945612303090" # Season 1, Episode 12: "Morning Light Falls on You" # This stands for "Frames per Hour" -fph="7" +fph="17" # timestamps is_timestamp="1" diff --git a/fb/bocchiep12_en.ass b/fb/bocchiep12_en.ass index 14ff0b872..4b94ef78b 100644 --- a/fb/bocchiep12_en.ass +++ b/fb/bocchiep12_en.ass @@ -420,4 +420,5 @@ Dialogue: 0,0:20:45.13,0:20:46.64,Signs,sign,0000,0000,0000,,{\fs16\an8\fnArial Dialogue: 0,0:23:31.86,0:23:33.61,DefaultItalics,Hitori,0000,0000,0000,,Another day at the job. Dialogue: 0,0:23:34.97,0:23:39.98,Signs,sign,0000,0000,0000,,{\fnComic Sans MS\an4\c&HFFFFFF&\fs12\pos(66,319)\4c&H3A91B8&\shad1.2}Illustration by Aki Hamaji Dialogue: 0,0:23:34.97,0:23:39.98,Signs,sign,0000,0000,0000,,{\an4\fnComic Sans MS\fs22\c&H8B2ED1&\3c&HF4FDF7&\bord2.4\frz15.93\pos(363.885,267.574)}Thanks for watching! -Dialogue: 0,0:23:36.96,0:23:38.01,Default,Hitori,0000,0000,0000,,Thank you! The Season 2 will be on... +Dialogue: 0,0:23:36.96,0:23:38.01,Default,Hitori,0000,0000,0000,,Thank you! +Dialogue: 0,0:23:38.01,0:23:41.01,Default,Hitori,0000,0000,0000,,The Season 2 will be on... diff --git a/frameposter.sh b/frameposter.sh index a597b0db1..b61bbfc0c 100644 --- a/frameposter.sh +++ b/frameposter.sh @@ -263,7 +263,13 @@ sleep 3 # Delay # Count Down. frame_left="$(bc -l <<< "${total_frame} - ${prev_frame}")" -frame_left_message="${frame_left} Frames left." +if [[ "${prev_frame}" = "4974" ]]; then + frame_left_message='One more frame left!' +elif [[ "${prev_frame}" = "4975" ]]; then + frame_left_message='[END OF SEASON 1]' +else + frame_left_message="${frame_left} Frames left." +fi curl -sfLX POST --retry 2 --retry-connrefused --retry-delay 7 "${graph_url_main}/v18.0/${id}/comments?access_token=${token}" --data-urlencode "message=${frame_left_message}" -o /dev/null # Addons, you can comment this line if you don't want to comment the GIF created on previous 10 frames