Page 1 of 1

Audio playlists - problem with accents in filenames for m3u

PostPosted: Fri Aug 24, 2012 10:32 am
by tangerine2012
Using Serviio 1.0.1 / Windows XP / Sony BDP-S370

Hello - the new audio playlist functionality is fantastic. However, I've noticed a problem with filenames/dir names containing accents for m3u playlists only. Wpl playlists seem to be fine. I used Windows Media Player to create playlists in each format. Both playlists contained the following songs with accents.

E:\Music\Portuguesa\Portugal - As Grandes Canções de Sempre\Portugal Moderno (CD 1)\15 - Xutos & Pontapés - Contentores.mp3
E:\Music\Portuguesa\Pedro Abrunhosa & Os Bandemónio\Tempo\01-Não Dá.mp3

As you can see from the following log extracts, the wpl playlist parser handled the accents and the songs appeared in the resulting playlist on my Sony BDP-S370. However, in the m3u case, the accents were replaced by square symbols by the m3u parser and therefore the songs failed to appear in the resulting playlist.

Any thoughts? If it's to do with the character encoding on my laptop, why did it work for wpl but not m3u?

Log file extract for m3u playlist:

2012-08-15 16:37:48,859 DEBUG [PlaylistMaintainerThread] Playlist Playlist test m3u 3 has changed, updating the library
2012-08-15 16:37:48,859 DEBUG [PlaylistParser] Parsing playlist 'E:\Music\Playlists\Playlist test m3u 3.m3u'
2012-08-15 16:37:48,875 DEBUG [PlaylistParser] Reading playlist from a local file
2012-08-15 16:37:48,875 DEBUG [PlaylistParser] Found a suitable playlist parser strategy: M3UParserStrategy
2012-08-15 16:37:48,875 DEBUG [PlaylistDAOImpl] Removing all items from playlist 25
2012-08-15 16:37:48,875 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: E:\Music\Portuguesa\Portugal - As Grandes Can��es de Sempre\Portugal Moderno (CD 1)\15 - Xutos & Pontap�s - Contentores.mp3, ignore case: true
2012-08-15 16:37:48,890 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: E:\Music\Portuguesa\Pedro Abrunhosa & Os Bandem�nio\Tempo\01-N�o D�.mp3, ignore case: true
2012-08-15 16:37:48,890 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: E:\Music\Portuguesa\Mariza\Transparente\02-Meu Fado Meu.mp3, ignore case: true
2012-08-15 16:37:48,890 DEBUG [PlaylistDAOImpl] Adding a new Item to playlist (media item = 36478, playlist = 25)
2012-08-15 16:37:48,890 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: E:\Music\Jazz & Blues\Madeleine Peyroux\Careless Love\01-Dance Me To The End Of Love.mp3, ignore case: true
2012-08-15 16:37:48,890 DEBUG [PlaylistDAOImpl] Adding a new Item to playlist (media item = 37349, playlist = 25)
2012-08-15 16:37:48,890 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: E:\Music\Jazz & Blues\Madeleine Peyroux\Careless Love\02-Don't Wait Too Long.mp3, ignore case: true
2012-08-15 16:37:48,890 DEBUG [PlaylistDAOImpl] Adding a new Item to playlist (media item = 37350, playlist = 25)
2012-08-15 16:37:48,890 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: E:\Music\Jazz & Blues\Madeleine Peyroux\Careless Love\09-Weary Blues.mp3, ignore case: true
2012-08-15 16:37:48,890 DEBUG [PlaylistDAOImpl] Adding a new Item to playlist (media item = 37357, playlist = 25)
2012-08-15 16:37:48,906 DEBUG [PlaylistDAOImpl] Updating Playlist (id = 25)
2012-08-15 16:37:50,265 DEBUG [AbstractCDSLibraryIndexingListener] Library updated, notifying CDS

============
Log file extract for wpl playlist

2012-08-15 16:27:48,500 DEBUG [PlaylistParser] Parsing playlist 'E:\Music\Playlists\Playlist test wpl 2.wpl'
2012-08-15 16:27:48,500 DEBUG [PlaylistParser] Reading playlist from a local file
2012-08-15 16:27:48,515 DEBUG [PlaylistParser] Found a suitable playlist parser strategy: WplParserStrategy
2012-08-15 16:27:48,515 DEBUG [PlaylistDAOImpl] Removing all items from playlist 24
2012-08-15 16:27:48,515 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: E:\Music\Portuguesa\Portugal - As Grandes Canções de Sempre\Portugal Moderno (CD 1)\15 - Xutos & Pontapés - Contentores.mp3, ignore case: true
2012-08-15 16:27:48,515 DEBUG [PlaylistDAOImpl] Adding a new Item to playlist (media item = 36363, playlist = 24)
2012-08-15 16:27:48,515 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: E:\Music\Portuguesa\Pedro Abrunhosa & Os Bandemónio\Tempo\01-Não Dá.mp3, ignore case: true
2012-08-15 16:27:48,515 DEBUG [PlaylistDAOImpl] Adding a new Item to playlist (media item = 36491, playlist = 24)
2012-08-15 16:27:48,531 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: E:\Music\Portuguesa\Mariza\Transparente\02-Meu Fado Meu.mp3, ignore case: true
2012-08-15 16:27:48,531 DEBUG [PlaylistDAOImpl] Adding a new Item to playlist (media item = 36478, playlist = 24)
2012-08-15 16:27:48,531 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: E:\Music\Jazz & Blues\Madeleine Peyroux\Careless Love\01-Dance Me To The End Of Love.mp3, ignore case: true
2012-08-15 16:27:48,531 DEBUG [PlaylistDAOImpl] Adding a new Item to playlist (media item = 37349, playlist = 24)
2012-08-15 16:27:48,531 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: E:\Music\Jazz & Blues\Madeleine Peyroux\Careless Love\02-Don't Wait Too Long.mp3, ignore case: true
2012-08-15 16:27:48,531 DEBUG [PlaylistDAOImpl] Adding a new Item to playlist (media item = 37350, playlist = 24)
2012-08-15 16:27:48,546 DEBUG [PlaylistDAOImpl] Updating Playlist (id = 24)
2012-08-15 16:27:50,234 DEBUG [AbstractCDSLibraryIndexingListener] Library updated, notifying CDS

Re: Audio playlists - problem with accents in filenames for

PostPosted: Fri Aug 24, 2012 10:35 am
by Illico
Create a new ticket on bitbucket http://wiki.serviio.org/doku.php?id=bitbucket
and copy the link to this thread (your log is interresting ).

Re: Audio playlists - problem with accents in filenames for

PostPosted: Thu Sep 20, 2012 5:30 pm
by AttilaNab
Hello. i was also having the same issue but Long Path Tool helped me in this situation. You can check see here http://PathTooDeep.com. It might help you.
Thanks

Re: Audio playlists - problem with accents in filenames for

PostPosted: Thu Sep 20, 2012 6:29 pm
by zip
I think it's down to the m3u file's encoding. Make sure it's saved as UTF-8.

Re: Audio playlists - problem with accents in filenames for

PostPosted: Sun Dec 30, 2012 4:54 pm
by nearvana
Saving as UTF-8 solved it for me.
In case it's not obvious how to do that, a text editor like Textpad gives you an 'Encoding' option in the save dialogue.
Nearvana