From c51983961a0eadf9e326a42005e405a3b3cc7cc7 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Sun, 17 Apr 2022 14:04:02 +0300 Subject: [PATCH] fix indexator --- pleroma-cli.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pleroma-cli.sh b/pleroma-cli.sh index c176e5f..79c9a9a 100755 --- a/pleroma-cli.sh +++ b/pleroma-cli.sh @@ -370,7 +370,7 @@ statuses_view_menu() case "$menustatuses" in "Back") sub_menu_lvl=1 ;; "Prev") - indexator=$(expr $max_statuses - 1) + indexator=$(expr $(echo $json | jj \#) - 1) echo '#EXTM3U' > attachments.m3u8 clear offset=$(echo $json | jj $indexator.id) @@ -452,7 +452,7 @@ timeline_menu() menu=$(echo 'Prev\nNext\nReply\nShare\nFavorite\nShare and favorite\nThread\nMain menu' | fzy) case $menu in "Prev") - indexator=$(expr $max_statuses - 1) + indexator=$(expr $(echo $json | jj \#) - 1) echo '#EXTM3U' > attachments.m3u8 clear offset=$(echo $json | jj $indexator.id)