Reformat code

This commit is contained in:
localhost_frssoft 2022-05-06 12:09:04 +03:00
parent 2536388308
commit 4d0535fa09

View file

@ -454,7 +454,7 @@ statuses_render()
echo '[NSFW]'
fi
echo "$status" | jj -r content | delqse | html_to_txt_render
attachments=$(echo "$status" | jj -l media_attachments.#.remote_url | delq)
attachments=$(echo "$status" | jj -l 'media_attachments.#.remote_url' | delq)
menuattachments=
if [ -n "$attachments" ]; then
echo "#EXTINF:-1, $uri" >> attachments.m3u8
@ -469,7 +469,10 @@ statuses_render()
while [ "$next" -eq 0 ]; do
per_status_menu=$(echo "Next$menuattachments"$s_f_menu"\nFavorite\nBookmark\nReply\nBack" | fzy)
case "$per_status_menu" in
"Next") next=1; clear ;;
"Next")
next=1
clear
;;
"Media")
for one_media in $attachments; do
mpv "$one_media"
@ -480,7 +483,10 @@ statuses_render()
"Favorite") favorite_api_status "$id_status" ;;
"Bookmark") bookmark_api_status "$id_status" ;;
"Reply") reply_mode "$id_status" ;;
"Back") next=1; force_stop=1 ;;
"Back")
next=1
force_stop=1
;;
esac
done
if [ "$force_stop" -eq 1 ]; then break; fi
@ -886,7 +892,8 @@ case $main_menu in
else
echo 'No recently used instances...'
empty=1
fi ;;
fi
;;
"Choice from list") instance=$(jj -l -i config.json public_list_instances | sed 's/"//g' | fzy) ;;
@ -906,7 +913,8 @@ case $main_menu in
fi
clear
make_login
fi ;;
fi
;;
"$authmake") auth_api_get_token ;;
"$Exit") exit 0 ;;
esac