2014-07-03, 21:36
(2014-07-03, 21:16)bambi73 Wrote: I encountered another unicode issue during playlist lookup (branch doesn't solve it):
It fails on files with non-ascii characters in name. Script scans whole special://skin/extras/ where I have studio flags with a lot of unicode names and I guess users can easily have playlist with unicode names too. I removed decode( 'utf-8' ) part and it solved issue for me, but i can't say if it's right or not because my Python knowledge is only "passive" .
Another request: is it possible to return skin playlists as special path (either special://skin/playlists/ or special://skin/extras/ what is looked up) instead of full path? Profile playlists are already returned as special://profile/playlists/video/. It's issue for me because I'm using playlist special path for visibility condition in skin.
Thanks, I'll double-check your fix to ensure it doesn't cause any other issues then make the change on the repofixes branch. As an aside, I'm coming to really hate unicode
No, it's not possible to return the skin playlists as a special path. This is because the idea is that the shortcuts can be shared between different skins using the script. By using the full path, these shortcuts won't break if the user switches skin (as long as they don't uninstall the skin.) Could a SubString visibility condition work for you?