2018-10-21, 17:59
Sounds nice but how to start the update manually (nice and simple) from the UI? :-)
(2018-10-21, 18:06)C.O.D. Wrote: Problem is, the tv data from koditvepg.com was corrupted sometimes and so I was looking for a way to update tv data manually to check if data is ok again - and all this as effortless as possible from the UI under LibreELEC with a remote in my hand...Was that corruption due to the change to koditvepg2 or does it still do it?
special://profile/addon_data/plugin.program.xmltv.meld/after_update.py
import xbmc
import subprocess
output = subprocess.check_output(["ls","-l"],shell=True)
xbmc.log(repr(output),xbmc.LOGERROR)
(2018-10-21, 18:06)C.O.D. Wrote: Problem is, the tv data from koditvepg.com was corrupted sometimes and so I was looking for a way to update tv data manually to check if data is ok again - and all this as effortless as possible from the UI under LibreELEC with a remote in my hand...It looks like it isn't working because Mimic seems to cache the output of its shortcut commands.
userdata\addon_data\script.skinshortcuts\movies.DATA.xml
<shortcut>
<defaultID>plugin.program.xmltv.meld/start_update</defaultID>
<label>Update xmltv</label>
<label2>Video Add-On</label2>
<icon>DefaultShortcut.png</icon>
<thumb>image://special%3a%2f%2fhome%2faddons%2fplugin.program.xmltv.meld%2fresources%2fimg%2fsettings.png/</thumb>
<action>ActivateWindow(Videos,"plugin://plugin.program.xmltv.meld/start_update",return)</action>
</shortcut>
(2018-10-21, 19:09)C.O.D. Wrote: Puh, lots of stuff and somehow complicated (at least for me) but thanks a lot for all your efforts!I think the bottom line is:
Will have a look tomorrow since I'm running out of time this evening, but thanks again,
Take care
import xbmc
import subprocess
output = subprocess.check_output(["curl", "-d", "@/storage/.kodi/userdata/addon_data/plugin.program.xmltv.meld/xmltv.xml", "-X", "POST", "-m", "5", "--unix-socket", "/storage/.kodi/userdata/addon_data/service.tvheadend42/epggrab/xmltv.sock", "http://google.com"],shell=False)
xbmc.log(repr(output),xbmc.LOGERROR)
<shortcut>
<defaultID />
<label>19251</label>
<label2>livetv</label2>
<icon>special://skin/extras/icons/update.png</icon>
<action>RunPlugin(plugin://plugin.program.xmltv.meld/update)</action>
</shortcut>
(2018-10-22, 03:24)olympus Wrote: I can confirm that I use the following skin shortcut in Aura skin and it works.That's the trick. Thanks.
Code:
<shortcut>
<defaultID />
<label>19251</label>
<label2>livetv</label2>
<icon>special://skin/extras/icons/update.png</icon>
<action>RunPlugin(plugin://plugin.program.xmltv.meld/update)</action>
</shortcut>
(2018-08-08, 18:44)TopekaRoy Wrote: YES! "WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning string value"
(2018-10-23, 02:20)Cangeoboy Wrote: Having a problem with channels from koditvepg.com. I resubscribed to the country's I have added channels for and they do now appear in my guide, but the message 'New epg url! Visit our Website' appears on top of the correct epg data. Basically my guide is showing two sets of information for the same channel. Using tvguide fullscreen as my epg guide. Anything I'm missing or is anyone else seeing this?Ok, think I have sorted out my issue. Had to delete the xmltv file from .storage and then go back in and resubscribe to all the channel sources I use. Seems that the urls for koditvepg.com and koditvepg2.com where both being stored in the xmltv file hence the double epg data on some of the channels.
(2018-10-23, 03:46)Cangeoboy Wrote:Try version 0.0.35.(2018-10-23, 02:20)Cangeoboy Wrote: Having a problem with channels from koditvepg.com. I resubscribed to the country's I have added channels for and they do now appear in my guide, but the message 'New epg url! Visit our Website' appears on top of the correct epg data. Basically my guide is showing two sets of information for the same channel. Using tvguide fullscreen as my epg guide. Anything I'm missing or is anyone else seeing this?Ok, think I have sorted out my issue. Had to delete the xmltv file from .storage and then go back in and resubscribe to all the channel sources I use. Seems that the urls for koditvepg.com and koditvepg2.com where both being stored in the xmltv file hence the double epg data on some of the channels.