Kodi Community Forum
Change subtitleswindow in videoplayback? - 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: Android (https://forum.kodi.tv/forumdisplay.php?fid=164)
+---- Thread: Change subtitleswindow in videoplayback? (/showthread.php?tid=376765)

Pages: 1 2


Change subtitleswindow in videoplayback? - Hometv07 - 2024-03-24

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


RE: Change subtitleswindow in videoplayback? - Hitcher - 2024-03-24

https://kodi.wiki/index.php?title=List_of_Built_In_Controls#DialogSubtitles.xml


RE: Change subtitleswindow in videoplayback? - Hometv07 - 2024-03-24

(2024-03-24, 14:10)Hitcher Wrote: https://kodi.wiki/index.php?title=List_of_Built_In_Controls#DialogSubtitles.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)


RE: Change subtitleswindow in videoplayback? - Hitcher - 2024-03-24

Browse for subtitles is button ID=160.


RE: Change subtitleswindow in videoplayback? - Hometv07 - 2024-03-24

(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?


RE: Change subtitleswindow in videoplayback? - Hometv07 - 2024-03-24

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?


RE: Change subtitleswindow in videoplayback? - Sholander - 2024-03-24

(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...


RE: Change subtitleswindow in videoplayback? - Hometv07 - 2024-03-24

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


RE: Change subtitleswindow in videoplayback? - Sholander - 2024-03-24

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


RE: Change subtitleswindow in videoplayback? - Hitcher - 2024-03-24

My mistake, it's DialogSettings.xml. The buttons are controlled by Kodi and not the skin so nothing you can do.


RE: Change subtitleswindow in videoplayback? - Hometv07 - 2024-03-24

(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.


RE: Change subtitleswindow in videoplayback? - Hitcher - 2024-03-24

(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/Subtitles#Subtitle_storage_location


RE: Change subtitleswindow in videoplayback? - Hometv07 - 2024-03-24

(2024-03-24, 20:02)Hitcher Wrote: Have you set the default storage location: https://kodi.wiki/view/Settings/Player/Subtitles#Subtitle_storage_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.


RE: Change subtitleswindow in videoplayback? - Hitcher - 2024-03-24

I have mine next to the video on my PC and Shield TV and it opens immediately.


RE: Change subtitleswindow in videoplayback? - Hitcher - 2024-03-24

Looks like it's been reported: https://github.com/xbmc/xbmc/issues/24779