2011-08-10, 19:25
paul elder Wrote:Is it possible to try it with another skin?
i'm not keeping track which skins are using it,
but give Cirrus Extended and Aeon MQ2 a shot.
paul elder Wrote:Is it possible to try it with another skin?
kiboy6 Wrote:Hi Ronie,
Sorry to flog what may already be a dead horse to you
kiboy6 Wrote:Ie, get the first image --check for new artist playing ---get 3 more images---check for new artist playing---get 3 more images etc...maybe my previous explanation wasn't clear...
kiboy6 Wrote:Oh, and did you ever get a chance to explore offline use of the script? At the moment it just returns a script failed message even if cached images are present.
ronie Wrote:a dead horse? certainly not ;-)
Quote:i've been doing some major code refactoring over the past week,
added the option to download images from htbackdrops.com,
made sure you can properly run the script at startup as well,
and i'm currently adding to option to fetch additional artist info from last.fm
(artist bio, albums, similar artists)
...oh yeah, and store the images in addon_data.
Quote:maybe my previous explanation wasn't clear...oops, no i think you were perfectly clear - I was just being a bit dense. Must have blocked out of my mind the fact that my connection is so crippled it can take so long to download a single image!
the script checks after each download if there's a new artist playing.
Quote:yup, also fixed that.
i'll release a new version for testing once i'm finished adding the extra last.fm stuff.
kiboy6 Wrote:That being the case, would there be any single-threaded way to add a timeout of, say, 30 seconds to the download of any single image? Or would that too require a second thread for counting?
ronie Wrote:heh, that would nee two threads, one downloading and the other keeping track of time.
17:35:33 T:3060792176 NOTICE: script.artistslideshow: script started
17:35:33 T:3060792176 INFO: -->Python script returned the following error<--
17:35:33 T:3060792176 ERROR: Error Type: <type 'exceptions.ValueError'>
17:35:33 T:3060792176 ERROR: Error Contents: invalid literal for int() with base 10: ''
17:35:33 T:3060792176 ERROR: Traceback (most recent call last):
File "/root/.xbmc/addons/script.artistslideshow/default.py", line 185, in <module>
Start()
File "/root/.xbmc/addons/script.artistslideshow/default.py", line 178, in Start
MyPlayer()
File "/root/.xbmc/addons/script.artistslideshow/default.py", line 139, in __init__
self.minwidth = int(__settings__.getSetting( "minwidth" ))
ValueError: invalid literal for int() with base 10: ''
17:35:33 T:3060792176 INFO: -->End of Python script error report<--
17:35:33 T:3060792176 INFO: Python script stopped
17:35:33 T:3060792176 DEBUG: Thread XBPyThread 3060792176 terminating
17:35:33 T:9301888 DEBUG: waiting for python thread 3 to stop
brabax22 Wrote:For me the script does not running - i tried several versions of script and xbmc with no success. Debug-Log is showing this error:
Base is Ubuntu Natty, XBMC is self compiled (git from today), script installed from repository. Can anybody help?Code:17:35:33 T:3060792176 NOTICE: script.artistslideshow: script started
17:35:33 T:3060792176 INFO: -->Python script returned the following error<--
17:35:33 T:3060792176 ERROR: Error Type: <type 'exceptions.ValueError'>
17:35:33 T:3060792176 ERROR: Error Contents: invalid literal for int() with base 10: ''
17:35:33 T:3060792176 ERROR: Traceback (most recent call last):
File "/root/.xbmc/addons/script.artistslideshow/default.py", line 185, in <module>
Start()
File "/root/.xbmc/addons/script.artistslideshow/default.py", line 178, in Start
MyPlayer()
File "/root/.xbmc/addons/script.artistslideshow/default.py", line 139, in __init__
self.minwidth = int(__settings__.getSetting( "minwidth" ))
ValueError: invalid literal for int() with base 10: ''
17:35:33 T:3060792176 INFO: -->End of Python script error report<--
17:35:33 T:3060792176 INFO: Python script stopped
17:35:33 T:3060792176 DEBUG: Thread XBPyThread 3060792176 terminating
17:35:33 T:9301888 DEBUG: waiting for python thread 3 to stop
ronie Wrote:check the script settings and make sure a value is set from min width and min height.
they default to 0, but looks like you've removed them?
will make sure to things like this won't make the script crash in the next version.
brabax22 Wrote:Ok, you are right. I deleted the values (dont know why). After setting 0 to both the script is running :-).
Quote:T:4512 NOTICE: script.artistslideshow: cachedir = C:\Users\..\AppData\Roaming\XBMC\userdata\Thumbnails\ArtistSlideshow\d7556be2
16:14:30 T:4512 NOTICE: script.artistslideshow: downloading images
16:14:34 T:4512 INFO: -->Python script returned the following error<--
16:14:34 T:4512 ERROR: Error Type: <class 'urllib2.URLError'>
16:14:34 T:4512 ERROR: Error Contents: <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it>
16:14:34 T:4512 ERROR: Traceback (most recent call last):
File "C:\Users\..\AppData\Roaming\XBMC\addons\script.artistslideshow\default.py", line 185, in <module>
Start()
File "C:\Users\..\AppData\Roaming\XBMC\addons\script.artistslideshow\default.py", line 178, in Start
MyPlayer()
File "C:\Users\..\AppData\Roaming\XBMC\addons\script.artistslideshow\default.py", line 143, in __init__
startDownload( self.minwidth , self.minheight )
File "C:\Users\..\AppData\Roaming\XBMC\addons\script.artistslideshow\default.py", line 88, in startDownload
response = urllib2.urlopen(req)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 391, in open
response = self._open(req, data)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 409, in _open
'_open', req)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 369, in _call_chain
result = func(*args)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 1170, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 1145, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it>
16:14:34 T:4512 INFO: -->End of Python script error report<--
kardesken Wrote:This wonderful script has stop working on my computer. I don't know why, but I fear I might have done some updating to windows , xbmc and T! (win7, xbmc nightly and svn T!)
Don't know if this maybe give some answers
This message make me think I've dine something stupid:
"No connection could be made because the target machine actively refused it"
But then again I don't understand any of the lines so I ask here first before I do more wrong things
Machine-Sanctum Wrote:Ronie,
I use advancedsettings substitue to locate my thumbnails on my server. This all works fine and the thumbnails are stored somewhere there. However the artistslideshow does create its own folder located on the original location of thumbnails. So it doesn't use the substitute rules. Is that possible?