Change subtitleswindow in videoplayback?
#1
Hello. Inside what xml-file can i find the subtitle-settings when playing a movie?

This window:
https://kodi.wiki/view/Video_playback#Subtitles


I would like to remove "browse for subtitle..."

Because when i accidentally click it, my kodi crashes. (Even though i have set a custom folder in kodi-settings).

So it seems easier to just remove that button-text. But i cant seem to find it anywhere.

Anyone have any ideas?

Best regard
Reply
#2
https://kodi.wiki/index.php?title=List_o...titles.xml
Reply
#3
(2024-03-24, 14:10)Hitcher Wrote: https://kodi.wiki/index.php?title=List_o...titles.xml

Thank you. I went to this xml, and first put comments (<!-- -->) around those ID's, and later even put everything inside that xml inside a comment. And nothing changed when i click on the subtitles-button when i pause a video.

(I still see: enable subtitles, subtitle offset, browse for subtitle, download subtitle)
Reply
#4
Browse for subtitles is button ID=160.
Reply
#5
(2024-03-24, 16:11)Hitcher Wrote: Browse for subtitles is button ID=160.

Thank you. So what i must do is to open dialogsubtitles.xml and edit this line:

Quote:<include content="DefaultDialogButton">
<param name="id" value="160" />
<param name="label" value="$LOCALIZE[24120]" />
<param name="width" value="420" />
<param name="height" value="150" />
</include>

And put it inside a comment, right?

Nothing changes when i do so. Browse for subtitles is still visible. (I fully close and open kodi after i make the changes).

I even tried putting _everything_ inside that xml-file inside a comment. Still nothing changes in the subtitle-settings-window.

I must be in the wrong xml-file?
Reply
#6
I hve searched for "160" inside every xml-file now. And the only places i find it is the one i posted above, and inside dialogkeyboard.xml:

Quote: <control type="button" id="160">
<description>(3,0) key button</description>
<onup>140</onup>
<ondown>304</ondown>
<include>KeyboardButton</include>
</control>

Putting this inside a comment dont do anything either

Edit: when i go inside videoosd.xml, this is the button that opens up the subtitle-window:

Quote: <control type="radiobutton" id="70046">
<include content="OSDButton">
<param name="texture" value="osd/fullscreen/buttons/settings-subtitle.png"/>
</include>
<onclick>ActivateWindow(osdsubtitlesettings)</onclick>
<visible>!VideoPlayer.Content(LiveTV) | VideoPlayer.HasSubtitles</visible>
</control>

Maybe that can give a clue to something?
Reply
#7
(2024-03-24, 12:16)Hometv07 Wrote: I would like to remove "browse for subtitle..."

Because when i accidentally click it, my kodi crashes. (Even though i have set a custom folder in kodi-settings).

This option "Browse for subtitles" during video playback, does not work properly also on my 21-rc2 version. It does not crush Kodi, but freezes it for about 1-2 minutes. After that period of waiting it opens my Subtitle folder, where I can choose my subtitle. So, I just avoid using it for the time being...
Reply
#8
Good to see im not alone. Maybe its the same for me, i have never waited more than 40seconds after it freezes, so i just assumed it crashed. Hopefully we can find a way to fully remove it here
Reply
#9
I'd rather wait until it gets fixed Smile
But I'm not savvy enough to make a bug report on GitHub, and don't know how to make debug log on my Fire 4K stick
Reply
#10
My mistake, it's DialogSettings.xml. The buttons are controlled by Kodi and not the skin so nothing you can do.
Reply
#11
(2024-03-24, 19:22)Hitcher Wrote: My mistake, it's DialogSettings.xml. The buttons are controlled by Kodi and not the skin so nothing you can do.

Ah thats a bummer. Thank you for the answer. Just to be clear; would i be able to change it if i were to have access to all the other files on a PC? Or is it impossible on pc too?

Do you think this issue will be fixed? A googlesearch on "kodi freeze browse sibtitles" show that this issue has been present all the way back to kodi leia.
Reply
#12
(2024-03-24, 19:33)Hometv07 Wrote: Just to be clear; would i be able to change it if i were to have access to all the other files on a PC? Or is it impossible on pc too?
No, you'd have to build your own version of Kodi.
(2024-03-24, 19:33)Hometv07 Wrote: Do you think this issue will be fixed?
No idea, but it needs to be reported on GitHub to have any chance of getting looked at.

Have you set the default storage location: https://kodi.wiki/view/Settings/Player/S...e_location
Reply
#13
(2024-03-24, 20:02)Hitcher Wrote: Have you set the default storage location: https://kodi.wiki/view/Settings/Player/S...e_location

Yes, i have. It still freezes. I have tried many different locations.

I did read a comment somewhere to set the location to "home folder", like this:

https://imgur.com/PEjpx3D

But i dont have that option.
Reply
#14
I have mine next to the video on my PC and Shield TV and it opens immediately.
Reply
#15
Looks like it's been reported: https://github.com/xbmc/xbmc/issues/24779
Reply

Logout Mark Read Team Forum Stats Members Help
Change subtitleswindow in videoplayback?0