v20 Subtitles selector window instead of cycling?
#1
In Kodi DSPlayer releases there was a setting that allowed one to get a subtitles list, from which to select, instead of cycling through them.

Is that something that can be achieved now, with Kodi 20? Sometimes there are lots of subtitles to cycle through...

Edit: to clarify, I mean by pressing a remote button (after properly configuring keymap.xml with the relevant function).
For troubleshooting and bug reporting please make sure you read this first (usually it's enough to follow instructions in the second post).
Reply
#2
Bump?
For troubleshooting and bug reporting please make sure you read this first (usually it's enough to follow instructions in the second post).
Reply
#3
basically this? - https://forum.kodi.tv/showthread.php?tid=356310

if you put activatewindow action into keymap ...
Reply
#4
(2023-06-07, 18:04)jepsizofye Wrote: basically this? - https://forum.kodi.tv/showthread.php?tid=356310

if you put activatewindow action into keymap ...

No, that I have done already. But it opens the whole subtitles dialog window. In that window you can go to the subtitles selection and if you select that a new window appears with just the list of subtitles.

I want that to appear when I press the key I set up in keymap.xml.

The DSPlayer builds had that and I was wondering if it was doable in regular Kodi.
For troubleshooting and bug reporting please make sure you read this first (usually it's enough to follow instructions in the second post).
Reply
#5
For subtitle language selection you are only able to move forward with ENTER key. When you miss your target language you have to re-cycle through the entire list back to the one you want.
Q: Is there a key/combination that allows you to cycle backward? That would be very wonderful! THX!
Reply
#6
(2023-06-09, 15:00)Dr. Angelo Wrote: For subtitle language selection you are only able to move forward with ENTER key. When you miss your target language you have to re-cycle through the entire list back to the one you want.
Q: Is there a key/combination that allows you to cycle backward? That would be very wonderful! THX!

There isn't which is why I am investigating the possibility to open directly this window:

Image

The DSPlayer builds offered this option (but it was a setting, not a keymap configuration), so I suppose it's possible for Kodi to call directly that window, without passing through the osdsubs dialog window. What I don't know is if it's achievable without modifying the code.

I am wondering if a combination of Action(action[,window]) or use of ActivateWindowAndFocus(id1, id2,item1, id3,item2) (but in this case I can't for the life of me understand how this is supposed to be used) could be a possible solution.

We even have scripting that is accessible through keymap.xml https://kodi.wiki/view/Built-in_scripting so I'm moderately optimistic that this could be done. But I can't understand how.
For troubleshooting and bug reporting please make sure you read this first (usually it's enough to follow instructions in the second post).
Reply
#7
Not possible as far as I know as there's no unique window id defined for that, so it's dynamically generated. So if DSPlayer builds had that, then it must have been amongst the changes done in the fork, I had a quick skim of the Estuary files at https://github.com/aracnoz/xbmc/blob/Kry...gsList.xml and couldn't spot anything.
Reply
#8
(2023-06-09, 18:47)jjd-uk Wrote: Not possible as far as I know as there's no unique window id defined for that, so it's dynamically generated. So if DSPlayer builds had that, then it must have been amongst the changes done in the fork, I had a quick skim of the Estuary files at https://github.com/aracnoz/xbmc/blob/Kry...gsList.xml and couldn't spot anything.

i came to the same conclusion, the dialog in question and in the screenshot is generic "selectdialog" - https://kodi.wiki/view/Window_IDs

while i can call ActivateWindow(selectdialog) it's just empty because it doesn't know what it is selecting and i dont see a way to call it with a parameter like ActivateWindow(selectdialog,subtitles) or some such

the only direct method i could find was the one i gave above to simply open subtitles in general

there is a more advanced way to automate it with actions but i doubt the op wants this method

it is similar to whats found here https://forum.kodi.tv/showthread.php?tid=306428 just needs to be augmented to have more down actions so it selects the item wanted
Reply
#9
Not quite, however C++ side of things is not my main area of expertise so I'm 100% sure on this. You're right it opens the select dialog and if you check https://github.com/xbmc/xbmc/blob/master...Select.xml you'll very little defined there, that's because C++ side of Kodi calls that xml then the C++ code dynamically populates the dialog with the requested info.
Reply
#10
Btw the single source of truth for the defined Windows is:

https://github.com/xbmc/xbmc/blob/master...indowIDs.h

Then for actions it is:

https://github.com/xbmc/xbmc/blob/master...slator.cpp
Reply
#11
(2023-06-09, 19:08)jjd-uk Wrote: Btw the single source of truth for the defined Windows is:

https://github.com/xbmc/xbmc/blob/master...indowIDs.h

Then for actions it is:

https://github.com/xbmc/xbmc/blob/master...slator.cpp
right on, bookmarked

i usually change the skin's addon.xml so it shows the window name id and xml file of the current window in the upper left corner of kodi for whatever window im in

<extension point="xbmc.gui.skin" debugging="true">
Reply
#12
So what does browsesubtitle do?
Reply
#13
(2023-06-09, 19:26)Hitcher Wrote: So what does browsesubtitle do?

that activates the browse for external subtitle file selection box so you can load .srt/.sub/.idx from the disk
Reply
#14
(2023-06-09, 19:21)jepsizofye Wrote: i usually change the skin's addon.xml so it shows the window name id and xml file of the current window in the upper left corner of kodi for whatever window im in

<extension point="xbmc.gui.skin" debugging="true">

Or you could just add an entry to your keymap e.g.

xml:
<F8>Skin.ToggleDebug()</F8>
Reply
#15
(2023-06-09, 19:26)Hitcher Wrote: So what does browsesubtitle do?
I read this with the following answer below the scroll-line and for a split second I thought "how could I have missed that". Then jepsizofye shattered my dream. Big Grin

I can obviously live with calling osdsubtitlesettings but I think it would be a nice addition to have the possibility to do what DSPlayer did.

In the meantime a script with

Code:
import xbmc, xbmcgui

#sequence of actions

xbmc.executebuiltin('ActivateWindow(osdsubtitlesettings)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(select)')

Brings up pretty much instantly the list of available subs. Once selected the required sub, one needs to press exit but... baby steps. :-)
For troubleshooting and bug reporting please make sure you read this first (usually it's enough to follow instructions in the second post).
Reply

Logout Mark Read Team Forum Stats Members Help
Subtitles selector window instead of cycling?0
This forum uses Lukasz Tkacz MyBB addons.