From 4598ceb3f2512e04893f1f1881cd523af6e28318 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Thu, 24 Oct 2024 20:39:07 +0200 Subject: [PATCH] osc.lua: show track-list for one more second Useful now that track metadata is printed. This now uses the same duration as playlist and chapter-list. --- DOCS/man/osc.rst | 8 ++++---- player/lua/osc.lua | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/DOCS/man/osc.rst b/DOCS/man/osc.rst index d19525e77bd24..7f2ff15e81d9e 100644 --- a/DOCS/man/osc.rst +++ b/DOCS/man/osc.rst @@ -535,9 +535,9 @@ clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``. ``audio_track_mbtn_left_command=script-binding select/select-aid; script-message-to osc osc-hide`` -``audio_track_mbtn_mid_command=show-text ${track-list/audio} 2000`` +``audio_track_mbtn_mid_command=show-text ${track-list/audio} 3000`` -``audio_track_mbtn_right_command=show-text ${track-list/audio} 2000`` +``audio_track_mbtn_right_command=show-text ${track-list/audio} 3000`` ``audio_track_wheel_down_command=cycle audio`` @@ -545,9 +545,9 @@ clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``. ``sub_track_mbtn_left_command=script-binding select/select-sid; script-message-to osc osc-hide`` -``sub_track_mbtn_mid_command=show-text ${track-list/sub} 2000`` +``sub_track_mbtn_mid_command=show-text ${track-list/sub} 3000`` -``sub_track_mbtn_right_command=show-text ${track-list/sub} 2000`` +``sub_track_mbtn_right_command=show-text ${track-list/sub} 3000`` ``sub_track_wheel_down_command=cycle sub`` diff --git a/player/lua/osc.lua b/player/lua/osc.lua index 2c2d2f8774eca..4a622f91c95c9 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -95,14 +95,14 @@ local user_opts = { chapter_next_mbtn_right_command = "script-binding select/select-chapter; script-message-to osc osc-hide", audio_track_mbtn_left_command = "script-binding select/select-aid; script-message-to osc osc-hide", - audio_track_mbtn_mid_command = "show-text ${track-list/audio} 2000", - audio_track_mbtn_right_command = "show-text ${track-list/audio} 2000", + audio_track_mbtn_mid_command = "show-text ${track-list/audio} 3000", + audio_track_mbtn_right_command = "show-text ${track-list/audio} 3000", audio_track_wheel_down_command = "cycle audio", audio_track_wheel_up_command = "cycle audio down", sub_track_mbtn_left_command = "script-binding select/select-sid; script-message-to osc osc-hide", - sub_track_mbtn_mid_command = "show-text ${track-list/sub} 2000", - sub_track_mbtn_right_command = "show-text ${track-list/sub} 2000", + sub_track_mbtn_mid_command = "show-text ${track-list/sub} 3000", + sub_track_mbtn_right_command = "show-text ${track-list/sub} 3000", sub_track_wheel_down_command = "cycle sub", sub_track_wheel_up_command = "cycle sub down",