[Help] Disable/Enable pvr.iptvsimple makes kodi stuck
#1
Hi,

There is a PVR Refresh procedure that contains this code.
When it's trying to disable the pvr.iptvsimple ("enabled":false), I'm getting a black screen and Kodi not responding.
And the next line of ("enabled":true) isn't done.
Code:
xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Addons.SetAddonEnabled","params":{"addonid":"pvr.iptvsimple","enabled":false},"id":1}')
Code:
xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Addons.SetAddonEnabled","params":{"addonid":"pvr.iptvsimple","enabled":true},"id":1}')

This log is from after activate the first line ("enabled":false) :
Code:
  DEBUG: PVR - PVR::CPVRClient:: Destroy - destroying PVR add-on 'IPTV Simple PVR Add-on:connected'
 DEBUG: SECTION:UnloadDll(C:\Program Files (x86)\Kodi\addons\pvr.iptvsimple\pvr.iptvsimple.dll)
  INFO: ADDON: Dll Destroyed - PVR IPTV Simple Client
 DEBUG: Thread EPGUpdater 7924 terminating
NOTICE: PVRManager - stopping
  DEBUG: Thread PVRManager 15368 terminating
  DEBUG: Thread PVRGUIInfo 16528 terminating
  DEBUG: Thread JobWorker 16792 terminating (autodelete)
  DEBUG: Thread JobWorker 14628 terminating (autodelete)
  DEBUG: Thread JobWorker 13284 terminating (autodelete)
  DEBUG: Thread JobWorker 15316 terminating (autodelete)

Am I missing something?
Is there another way to implement this?

Kodi 17.6
Thanks.
Reply
#2
Is anyone can help about that?
I know it's too old but still I will glad if someone know anything regrding this.

The issue is only when trying to Enable/Disable pvr.iptvsimple through the code,
When doing it in the addon information in the gui it's ok.

Thanks.
Reply
#3
Just to mention that most of the tries kodi is stuck, but 1 to 10 tries the 'disable' command works and it look like this:
Code:
   DEBUG: PVR - PVR::CPVRClient:: Destroy - destroying PVR add-on 'IPTV Simple PVR Add-on:connected'
   DEBUG: SECTION:UnloadDll(C:\Program Files (x86)\Kodi\addons\pvr.iptvsimple\pvr.iptvsimple.dll)
    INFO: ADDON: Dll Destroyed - PVR IPTV Simple Client
   DEBUG: Thread EPGUpdater 16744 terminating
  NOTICE: PVRManager - stopping
   DEBUG: Thread PVRManager 10216 terminating
  DEBUG: Thread PVRGUIInfo 6300 terminating
   DEBUG: ------ Window Deinit (Pointer.xml) ------
   DEBUG: ------ Window Init (Pointer.xml) ------
   DEBUG: CImageLoader:: DoWork - took 541 ms to load special://masterprofile/Thumbnails/4/409fbc1e.jpg
   DEBUG: ------ Window Deinit (Pointer.xml) ------
    INFO: XCURL:: DllLibCurlGlobal::CheckIdle - Closing session to http://image.tmdb.org (easy=2F9C6060, multi=1EC36F80)
   DEBUG: ------ Window Init (Pointer.xml) ------
   DEBUG: Testing Existence (multipath://special%3a%2f%2fprofile%2fplaylists%2fvideo/special%3a%2f%2fprofile%2fplaylists%2fmixed/)
   DEBUG: Testing Existence (special://profile/playlists/video)
   DEBUG: CMultiPathDirectory::GetDirectory(multipath://special%3a%2f%2fprofile%2fplaylists%2fvideo/special%3a%2f%2fprofile%2fplaylists%2fmixed/)
   DEBUG: Getting Directory (special://profile/playlists/video)
   DEBUG: Getting Directory (special://profile/playlists/mixed)
   DEBUG: CMultiPathDirectory::MergeItems, items = 2
   DEBUG: Testing path: [000] special://profile/playlists/video/Movies/
   DEBUG: CMultiPathDirectory::MergeItems, items = 2,  took 0 ms
   DEBUG: Testing Existence (multipath://special%3a%2f%2fprofile%2fplaylists%2fmusic/special%3a%2f%2fprofile%2fplaylists%2fmixed/)
   DEBUG: Testing Existence (special://profile/playlists/music)
   DEBUG: CMultiPathDirectory::GetDirectory(multipath://special%3a%2f%2fprofile%2fplaylists%2fmusic/special%3a%2f%2fprofile%2fplaylists%2fmixed/)
   DEBUG: Getting Directory (special://profile/playlists/music)
   DEBUG: Getting Directory (special://profile/playlists/mixed)
   DEBUG: CMultiPathDirectory::MergeItems, items = 1
   DEBUG: CMultiPathDirectory::MergeItems, items = 1,  took 0 ms
   DEBUG: CInputManager:: ProcessMouse: trying mouse action wheeldown
   DEBUG: Previous line repeats 1 times.
   DEBUG: CWinEventsWin32::WndProcWindow is active
   DEBUG: ------ Window Deinit (Pointer.xml) ------
   DEBUG: PVR - PVR::CPVRClient::Create - creating PVR add-on instance 'PVR IPTV Simple Client'
   DEBUG: ADDON: Dll Initializing - PVR IPTV Simple Client
   DEBUG: SECTION:LoadDLL(C:\Program Files (x86)\Kodi\addons\pvr.iptvsimple\pvr.iptvsimple.dll)
   DEBUG: AddOnLog: PVR IPTV Simple Client: ADDON_Create - Creating the PVR IPTV Simple add-on
Reply

Logout Mark Read Team Forum Stats Members Help
[Help] Disable/Enable pvr.iptvsimple makes kodi stuck0