Kodi Community Forum
Custom Subtitle addon problem - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Subtitle Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=143)
+---- Thread: Custom Subtitle addon problem (/showthread.php?tid=363218)



Custom Subtitle addon problem - dancaer69 - 2021-06-22

Hello,
I've made some years ago for personal use a simple script addon to load a list with subtitles from a local folder. I followed the tutorial and I used a template which was availble then. Before some months, using a subtitle addon I found in its code a way to add it to the list with subtitles addons which opens when activate the "Download Subtitles", which pauses the video.
The problem I have is that I already have a function to pause/unpause the video, and now because the video is paused when the "Download Subtitles" dialog runs, it starts playback again as soon as I activate my addon.
So I'm asking if there is a way to check if this dialog is activated(so I'm using my addon from there) and only pause the video if it's not(I activated my addon without to use "Download Subtitles" option)