(2023-02-17, 13:43)phunkyfish Wrote: (2023-02-17, 13:11)1deep Wrote: (2023-02-17, 08:24)matthuisman Wrote: I've got an issue opened here keeping track of what I think we need in python
https://github.com/xbmc/xbmc/issues/22779
I guess this can be considered somewhat of a hotfix for folks like me who like to tinker with different m3us etc and don't want to manually type things in every time. Only supports one instance but will bring back the automation part. I just threw in a line to delete the instance settings forcing it to do the migrate from the regular settings over again. Requires you to add a kodi force close line of code at the end for settings to take.
xbmcvfs.delete('special://masterprofile/addon_data/pvr.iptvsimple/instance-settings-1.xml')
SC = xbmcaddon.Addon('pvr.iptvsimple')
SC.setSetting('yoursettings')
Genius!
Lol thanks can't live without my automation scripts gotta maintain my parents setup too! Got another rudimentary script that broke going from 19 to 20 and can't figure out why. Since there's never been that I know of an easy way to clear PVR data in 1 click if the guide doesn't load I just made a button pressing script to add to the menu. Always worked. Now it just freezes when it presses clear data. This script is exclusive to aeon nox but I have one for Titan too and still freezes. Here it is if anyone finds this useful and wants to take a crack at it.
import xbmc
import sys
import json
import xbmcgui
import time
xbmc.executebuiltin('ActivateWindow(pvrsettings)')
xbmc.executebuiltin('SendClick(-74)')
time.sleep(3)
xbmc.executebuiltin("Action(Left)")
time.sleep(1)
xbmc.executebuiltin("Action(Select)")
time.sleep(3)
xbmc.executebuiltin("Action(Left)")
time.sleep(1)
xbmc.executebuiltin("Action(Select)")
time.sleep(15)
xbmc.executebuiltin("Action(Back)")