Kodi Community Forum
Update the epg manually - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167)
+---- Forum: IPTV Simple Client (https://forum.kodi.tv/forumdisplay.php?fid=215)
+---- Thread: Update the epg manually (/showthread.php?tid=358699)



Update the epg manually - vip. - 2020-11-26

hi
Is there a way to update the epg manually (importing guide from clients by adding RunPlugin/RunScript in keyboard.xml) without enable-disable IPTV Simple Client and without stopping the current live video?


RE: Update the epg manually - phunkyfish - 2020-11-26

(2020-11-26, 17:49)vip. Wrote: hi
Is there a way to update the epg manually (importing guide from clients by adding RunPlugin/RunScript in keyboard.xml) without enable-disable IPTV Simple Client and without stopping the current live video?

Can you explain what you are trying to achieve here?


RE: Update the epg manually - vip. - 2020-11-26

(2020-11-26, 19:57)phunkyfish Wrote:
(2020-11-26, 17:49)vip. Wrote: hi
Is there a way to update the epg manually (importing guide from clients by adding RunPlugin/RunScript in keyboard.xml) without enable-disable IPTV Simple Client and without stopping the current live video?

Can you explain what you are trying to achieve here?

I use primaeval's IPTV addons.
I have several epg sources, and with this addon they merge into one xml file, every time kodi starts (like iptv merge addon).
I want every time kodi starts, there will be both the merging of the sources into one xml file and an update of the epg.
The problem is that merging takes time until it ends, and when it does, IPTV Simple Client are disabled and then enabled. Which causes the video to stop.

I have attached the specific code of the update channel. At the end there are these 2 lines that I want to replace with a script that makes 'importing guide from clients' without disabling IPTV Simple Client:
    time.sleep(2)
    RPC.addons.set_addon_enabled(addonid='pvr.iptvsimple', enabled=False)
    time.sleep(2)
    RPC.addons.set_addon_enabled(addonid='pvr.iptvsimple', enabled=True)

(Sorry for my English)


RE: Update the epg manually - phunkyfish - 2020-11-27

Ok, a lot of these concerns were fixed in Kodi 19's iptvsimple. I would ask the author have they a 19 version yet as starting/stopping iptvsimple would no longer be required.


RE: Update the epg manually - vip. - 2020-11-29

(2020-11-27, 13:19)phunkyfish Wrote: Ok, a lot of these concerns were fixed in Kodi 19's iptvsimple. I would ask the author have they a 19 version yet as starting/stopping iptvsimple would no longer be required.

In this addons I use, in every login to kodi the EPG is downloaded from the internet as you can see here, and is updated in kodi without starting/stopping iptvsimple.
Why is it not possible to do the same in IPTV addons/IPTV Merge?


RE: Update the epg manually - phunkyfish - 2020-11-29

How could I possibly know the answer to that question?

You would need to ask the authors of both addons and ask them to compare how they manage updates.

Does the video addon you reference even use iptvsimple? I’m not sure it does.


RE: Update the epg manually - vip. - 2020-11-29

Yes he uses. There is an option to configure this addon to work with iptvsimple.
Anyway thanks


RE: Update the epg manually - phunkyfish - 2020-11-29

(2020-11-29, 14:57)vip. Wrote: Yes he uses. There is an option to configure this addon to work with iptvsimple.
Anyway thanks

I assume it just reads the new EPG file on the normal update schedule. IPTV merge may try to be more clever and restart iptvsimple so you see the updates straight away.