Default media player variable inserted in config

This commit is contained in:
localhost_frssoft 2022-05-06 18:40:56 +03:00
parent eeb88482f6
commit 95d04e57d1
2 changed files with 3 additions and 1 deletions

View file

@ -17,6 +17,7 @@
"reversed_statuses": false, "reversed_statuses": false,
"quoting_reply": true, "quoting_reply": true,
"copy_mentions": true, "copy_mentions": true,
"default_media_player": "mpv",
"public_list_instances": [ "public_list_instances": [
"outerheaven.club", "outerheaven.club",
"stereophonic.space", "stereophonic.space",

View file

@ -40,6 +40,7 @@ reversed_statuses=$(jj -i config.json reversed_statuses)
quoting_reply=$(jj -i config.json quoting_reply) quoting_reply=$(jj -i config.json quoting_reply)
copy_mentions=$(jj -i config.json copy_mentions) copy_mentions=$(jj -i config.json copy_mentions)
per_status_mode=$(jj -i config.json per_status_mode) per_status_mode=$(jj -i config.json per_status_mode)
default_media_player=$(jj -i config.json default_media_player)
#[AUTH SECTION] #[AUTH SECTION]
mkdir -m 711 -p .app_sessions mkdir -m 711 -p .app_sessions
@ -494,7 +495,7 @@ statuses_render()
;; ;;
"Media") "Media")
for one_media in $attachments; do for one_media in $attachments; do
mpv "$one_media" $default_media_player "$one_media"
done done
;; ;;
"Share and favorite") share_and_favorite_mode "$id_status" ;; "Share and favorite") share_and_favorite_mode "$id_status" ;;