Release Artist Slideshow addon (with skin and addon integration)
(2012-08-19, 16:21)pkscuot Wrote:
(2012-08-19, 14:15)dreamkp Wrote: specials chars seem to be a problem for local download as well.
e.g. Björk or Alizeé, artist slideshow downloads and displays all info but nothing gets saved in my local folder. works very well for all other artists without ö/ä/ü etc.

I used some of my google-fu and found something that might fix this and the problem with extended characters in a username. I don't have a good way to test it on my system, but it at least didn't break anything. For folks with these problems, please download and try this branch:

https://github.com/pkscout/script.artist...scii-paths
hi pkscuot,

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.

------------------------
17:37:42 T:2276 DEBUG: script.artistslideshow: current artist is Björk
17:37:42 T:2276 DEBUG: script.artistslideshow: looking for local artwork
17:37:42 T:2276 INFO: -->Python script returned the following error<--
17:37:42 T:2276 ERROR: Error Type: <type 'exceptions.UnicodeEncodeError'>
17:37:42 T:2276 ERROR: Error Contents: 'ascii' codec can't encode character u'\xf6' in position 39: ordinal not in range(128)
17:37:42 T:2276 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 144, in __init__
self._use_correct_artwork()
File "C:\xbmc_frodo\portable_data\addons\script.artistslideshow\default.py", line 180, in _use_correct_artwork
self._get_local_images()
File "C:\xbmc_frodo\portable_data\addons\script.artistslideshow\default.py", line 496, in _get_local_images
log('cachedir = %s' % self.CacheDir)
File "C:\xbmc_frodo\portable_data\addons\script.artistslideshow\default.py", line 78, in log
xbmc.log(msg=message, level=xbmc.LOGDEBUG)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 39: ordinal not in range(128)
17:37:42 T:2276 INFO: -->End of Python script error report<--
17:37:42 T:2276 INFO: Python script stopped
------------------------

(2012-08-19, 16:21)pkscuot Wrote: I don't have a good way to test it on my system, but it at least didn't break anything.
that should be easy if you just need some test material
create a new artist folder in your collection, name it Björk, copy any mp3 in there and adjust artist tag with Björk, scrape it into your library and run artist slideshow over it.
example of a file name: "Björk - Homogenic - 01 - Hunter.mp3"

regards,
maikl


P.S:
default.py from cdart manager might be worth a look into. it creates folders and writes fanart from artists with special chars fine to the filesystem
unfortunately my python skills are limited , otherwise i would try to play with it by myself
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-20, 17:52
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