fix indexator

This commit is contained in:
localhost_frssoft 2022-04-17 14:04:02 +03:00
parent 09922423bf
commit c51983961a
1 changed files with 2 additions and 2 deletions

View File

@ -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)