v20 Subtitles selector window instead of cycling? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228) +---- Thread: v20 Subtitles selector window instead of cycling? (/showthread.php?tid=373237) Pages:
1
2
|
Subtitles selector window instead of cycling? - ashlar - 2023-05-21 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). RE: Subtitles selector window instead of cycling? - ashlar - 2023-06-07 Bump? RE: Subtitles selector window instead of cycling? - izprtxqkft - 2023-06-07 basically this? - https://forum.kodi.tv/showthread.php?tid=356310 if you put activatewindow action into keymap ... RE: Subtitles selector window instead of cycling? - ashlar - 2023-06-08 (2023-06-07, 18:04)jepsizofye Wrote: basically this? - https://forum.kodi.tv/showthread.php?tid=356310 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. RE: Subtitles, lanuage selection cycling - how to go FWD and BACKWARD - Dr. Angelo - 2023-06-09 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! RE: Subtitles, lanuage selection cycling - how to go FWD and BACKWARD - ashlar - 2023-06-09 (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. There isn't which is why I am investigating the possibility to open directly this window: 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. RE: Subtitles selector window instead of cycling? - jjd-uk - 2023-06-09 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/Krypton_dsplayer/addons/skin.estuary/xml/Custom_1101_SettingsList.xml and couldn't spot anything. RE: Subtitles selector window instead of cycling? - izprtxqkft - 2023-06-09 (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/Krypton_dsplayer/addons/skin.estuary/xml/Custom_1101_SettingsList.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 RE: Subtitles selector window instead of cycling? - jjd-uk - 2023-06-09 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/addons/skin.estuary/xml/DialogSelect.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. RE: Subtitles selector window instead of cycling? - jjd-uk - 2023-06-09 Btw the single source of truth for the defined Windows is: https://github.com/xbmc/xbmc/blob/master/xbmc/guilib/WindowIDs.h Then for actions it is: https://github.com/xbmc/xbmc/blob/master/xbmc/input/actions/ActionTranslator.cpp RE: Subtitles selector window instead of cycling? - izprtxqkft - 2023-06-09 (2023-06-09, 19:08)jjd-uk Wrote: Btw the single source of truth for the defined Windows is: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"> RE: Subtitles selector window instead of cycling? - Hitcher - 2023-06-09 So what does browsesubtitle do?
RE: Subtitles selector window instead of cycling? - izprtxqkft - 2023-06-09 (2023-06-09, 19:26)Hitcher Wrote: So what does that activates the browse for external subtitle file selection box so you can load .srt/.sub/.idx from the disk RE: Subtitles selector window instead of cycling? - jjd-uk - 2023-06-09 (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 Or you could just add an entry to your keymap e.g.
RE: Subtitles selector window instead of cycling? - ashlar - 2023-06-10 (2023-06-09, 19:26)Hitcher Wrote: So what does 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. 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 Brings up pretty much instantly the list of available subs. Once selected the required sub, one needs to press exit but... baby steps. :-) |