Hello !
I work on my first addon using SimpleDownloader and now, I can queued items in SimpleDownloader and download them.
They are video files (mp4 and 3gp), from an http: address :
PHP Code:
params = { "url": urlSTR, "download_path": download_path , "Title": videoTitle }
downloader.download(videoTitle+".mp4", params)
Everything go right until I quit my addon.
When I close my custom window and activate the Home window (eg.), SimpleDownloader goes crazy.
Every download in queue stops, I've got some notification from SimpleDownloader, telling me it can't locate RTMPdump (witch I don't use...)
It throw me this in my log :
Code:
16:08:11 T:2220 ERROR: EXCEPTION: Control does not exist in window
16:08:12 T:2220 ERROR: Previous line repeats 3 times.
16:08:12 T:2220 ERROR: EXCEPTION: Unknown exception thrown from the call "clearProperty"
16:08:12 T:2220 ERROR: EXCEPTION: Control does not exist in window
16:08:12 T:2220 ERROR: Previous line repeats 3 times.
16:08:12 T:2220 ERROR: EXCEPTION: Unknown exception thrown from the call "clearProperty"
16:08:12 T:2220 ERROR: Exception in thread Thread-1:
Traceback (most recent call last):
File "E:\Kodi\system\python\Lib\threading.py", line 810, in __bootstrap_inner
self.run()
File "E:\Kodi\system\python\Lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Users\USER\AppData\Roaming\Kodi\addons\script.module.simple.downloader\lib\SimpleDownloader.py", line 127, in _startDownload
self._processQueue()
File "C:\Users\USER\AppData\Roaming\Kodi\addons\script.module.simple.downloader\lib\SimpleDownloader.py", line 201, in _processQueue
self.dialog.close()
File "C:\Users\USER\AppData\Roaming\Kodi\addons\script.module.simple.downloader\lib\DialogDownloadProgress.py", line 286, in close
self.removeControls()
File "C:\Users\USER\AppData\Roaming\Kodi\addons\script.module.simple.downloader\lib\DialogDownloadProgress.py", line 270, in removeControls
self.window.clearProperty("DialogDownloadProgress.Hide")
RuntimeError: Unknown exception thrown from the call "clearProperty"
What did I doing wrong ?
I don't wish to stop my downloads when I quit my addon... I want them to continue while I do other things in kodi during the downloading.
While I don't quit my own window, downloading works fine.