ilarischeinin / itmw

sync iTunes to cell phone or another portable device
MIT License
1 stars 2 forks source link

Playlist format and file paths #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
By email:

-----

Currently the itunemywalkman app doesn't create playlist files that can be used 
on the N95 
phone from 
nokia. Other phones that use the same media player may suffer from the same 
problem.

I have been poking around on the phone and doing some testing and I have found 
that the 
reason for this 
problem is that the media player cannot read files that are encoded in 
iso-8859-1, nor files that 
use '\r' line 
breaks (it has to be encoded in utf-8 and use '\n' for newlines). There is also 
a problem with not 
being able 
to read playlist files that use relative paths, and lastly it cannot read m3u 
files that use forward 
slashes (/) as 
separators. The files can only use back slashes (\).
So a m3u file (encoded in iso-8859-1 with '\r' line breaks) that looks like 
this:

Music/Høy vurdering/07 Cemetery and Sundown.mp3
Music/Høy vurdering/02 no time to cry.mp3
Music/Høy vurdering/02 Thirteen Autumns and a Widow [Red October Mix].mp3
Music/Høy vurdering/04 Her Ghost in the Fog.mp3
Music/Høy vurdering/11 Tortured Soul Asylum.mp3
Music/Høy vurdering/06 Nymphetamine Overdose.mp3

Has to be changed to:

E:\Media\Music\Høy vurdering\07 Cemetery and Sundown.mp3
E:\Media\Music\Høy vurdering\02 no time to cry.mp3
E:\Media\Music\Høy vurdering\02 Thirteen Autumns and a Widow [Red October 
Mix].mp3
E:\Media\Music\Høy vurdering\04 Her Ghost in the Fog.mp3
E:\Media\Music\Høy vurdering\11 Tortured Soul Asylum.mp3
E:\Media\Music\Høy vurdering\06 Nymphetamine Overdose.mp3
E:\Media\Music\Høy vurdering\04 Dead End.mp3

Where the E:\Media\ part is where the mount point for the app is.

There may be other issues with filenames, etc, but I haven't been able to 
uncover any yet. I'll play 
with again 
tomorrow and keep you updated if you care about this particular problem.

If you feel that this issue is too phone specific to warrant a patch, it would 
be great if you could 
make the 
info available on your site somehow as I have seen numerous people struggling 
with this issue, 
and with your 
page's rank on google this info would be much more accessible to nokia users. I 
have made a 
quick and dirty 
hack (with python) too convert the files to a format the N95 can read, and you 
can of course have 
it if you 
want, just let me know.

- With kind regards
    Are Jensen

-----

I think we need to add a couple of new user-definable preferences:
playlistPathPrefix -- eg. E:\Media\
playlistPathSeparator -- / or \

And maybe also an option to choose the encoding for the playlist files. Stefan, 
does your phone 
model only 
work with ISO-8859-1 and \r's? To me, UTF8 + \n's would sound like the logical 
first choise in 
today's world, 
but I guess mobile phone software isn't always the most modern, and might not 
work with that. 
In that case 
we would need to let the user specify it.

I think it could be possible that these new preferences would first be 
introduced as "hidden" 
options, that are 
not present in the GUI, but can be changed with the "defaults" command from the 
Terminal.

Original issue reported on code.google.com by ilari.sc...@gmail.com on 22 Aug 2008 at 10:19

GoogleCodeExporter commented 9 years ago
Playlist handling has been improved:
 • encoding
 • path prefix
 • path separator
 • playlist folder
 • playlist management(removal) within that folder

Original comment by stefa...@googlemail.com on 16 Nov 2008 at 4:20

GoogleCodeExporter commented 9 years ago
Fixed in 0.951 thanks to Stefan.

Original comment by ilari.sc...@gmail.com on 6 Mar 2009 at 9:40