Release Artist Slideshow addon (with skin and addon integration)
(2012-08-21, 19:40)pkscuot Wrote:
(2012-08-20, 17:52)dreamkp Wrote: thanks for getting on that so fast.
the new branch script throws an error when playing an artist with special chars and it still doesn't save anything.

OK, let's try this again. This code works properly on my OSX and Windows machines with Björk as an artist. I'm hoping this also fixes the Windows username issue, as it turns out one of the problems relates to the fact that you can't write to the XBMC log in UTF-8. So I had to make sure to re-encode any text string before writing it out.

Here's the updated test code for the non-ascii character issue. If we can get this one resolved, I'll merge it into master and do another pull request into the repo (which will also include the notification fixes then).

Hi pkscout,

it's getting better. Now artistbio.nfo, artistsalbums.nfo and artistsimilar.nfo are written. Then i get a script error and the log below.
Seems only artistimageshtbackdrops.nfo, artistimageslastfm.nfo and the *.tbn are missing now. We're close Wink

-------------------------
20:52:44 T:2672 ERROR: Error Type: <type 'exceptions.UnicodeDecodeError'>
20:52:44 T:2672 ERROR: Error Contents: 'ascii' codec can't decode byte 0xc3 in position 146: ordinal not in range(128)
20:52:44 T:2672 ERROR: Traceback (most recent call last):
File "C:\xbmc_frodo\portable_data\addons\script.artistslideshow\default.py", line 742, in <module>
slideshow = Main()
File "C:\xbmc_frodo\portable_data\addons\script.artistslideshow\default.py", line 134, in __init__
self._use_correct_artwork()
File "C:\xbmc_frodo\portable_data\addons\script.artistslideshow\default.py", line 182, in _use_correct_artwork
self._start_download()
File "C:\xbmc_frodo\portable_data\addons\script.artistslideshow\default.py", line 351, in _start_download
lastfmlist = self._get_images('lastfm')
File "C:\xbmc_frodo\portable_data\addons\script.artistslideshow\default.py", line 562, in _get_images
log( 'asking for images from: %s' %self.url )
File "C:\xbmc_frodo\portable_data\addons\script.artistslideshow\default.py", line 77, in log
message = 'script.artistslideshow: %s' % txt.encode("utf-8")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 146: ordinal not in range(128)
-------------------------

Regards,
Maikl
win7x64, eden pvr / frodo 12.1, mysql, aeon mq4, boblight
Reply


Messages In This Thread
New Test Version Available - by pkscout - 2012-03-08, 16:26
[No subject] - by mardup - 2012-03-10, 12:26
[No subject] - by pkscout - 2012-03-11, 01:35
RE: - by mardup - 2012-03-12, 17:50
RE: - by pkscout - 2012-03-13, 03:22
New Beta Version for Testing - by pkscout - 2012-07-13, 17:54
New Beta Version for Testing - by pkscout - 2012-07-14, 22:50
Pull Request for v1.4 Submitted - by pkscout - 2012-07-20, 23:01
New Beta Version for Testing - by pkscout - 2012-08-10, 03:18
RE: [RELEASE] Artist Slideshow 1.3.0 addon (with skin and addon integration) - by dreamkp - 2012-08-21, 20:57
New Frodo BETA Support Files - by pkscout - 2012-11-21, 06:20
New 2.0.0 Beta Coming Soon - by pkscout - 2016-05-12, 02:54
Writing tips - by Parkerbup - 2017-02-03, 14:56
Add-on Artist Slideshow - by jo26 - 2014-08-08, 22:58
Logout Mark Read Team Forum Stats Members Help
Artist Slideshow addon (with skin and addon integration)5