ryanbinns / ttwatch

Linux TomTom GPS Watch Utilities
MIT License
205 stars 66 forks source link

[QUESTION] Playlists #148

Open angushendrick opened 6 years ago

angushendrick commented 6 years ago

Thanks much for ttwatch. Is there any chance that support for putting playlists on the Spark 3 could be added?

ryanbinns commented 6 years ago

That's a tough one. I don't have a Spark and am unlikely to get one, so someone else would have to provide details of how the playlists are transferred to the watch.

angushendrick commented 6 years ago

I figured out an approach this morning that works. The watch is mounted as a drive and I can manually put files on it. I'm not sure what mounts it, but I have both the TomTom debian package and ttwatch installed and running daemons. Thanks for following up.

On Mar 2, 2018 05:20, "Ryan Binns" notifications@github.com wrote:

That's a tough one. I don't have a Spark and am unlikely to get one, so someone else would have to provide details of how the playlists are transferred to the watch.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ryanbinns/ttwatch/issues/148#issuecomment-369882560, or mute the thread https://github.com/notifications/unsubscribe-auth/ADmLcfCEeflSLS4IfoazHkVdWKtcB4sOks5taRz6gaJpZM4SZNYc .

scubajorgen commented 6 years ago

Indeed, on my windows PC the storage for music is mounted as a removable storage. Furthermore, file 0x00880000 contains a textual representation of the playlist directory structure. Example:

/MySportsConnect/Music/playlist001/04 Lovin Me.mp3
/MySportsConnect/Music/playlist001/01 Canto Ostinato 1.mp3
/MySportsConnect/Music/playlist003/02 Canto Ostinato 2.mp3

Looking at the actual directories as mounted, I see m3u8 playlist files, which are not mentioned in the 0x00880000 file

/MySportsConnect/Music/masterplaylist.m3u8

#TTPLAYLIST
#NAME:TomTomDemo
playlist001/PLAYLIST.m3u8
#NAME:playlist003
playlist003/PLAYLIST.m3u8

/MySportsConnect/Music/playlist001/PLAYLIST.m3u8

#EXTM3U
#TTPLAYLIST_NAME:TomTomDemo
#EXTINF:277,Lovin' Me
04 Lovin Me.mp3

/MySportsConnect/Music/playlist003/PLAYLIST.m3u8

#EXTM3U
#TTPLAYLIST_NAME:playlist003
#EXTINF:0,02 Canto Ostinato 2
02 Canto Ostinato 2.mp3

The m3u8 files are UTF-8 encoded version of m3u standard; https://en.wikipedia.org/wiki/M3U

I don't know whether the masterplaylist is according to the spec: according to wikipedia the 1st line of a m3u file must be '#EXTM3U', which it isn't apparently.

(the '04 Loven Me.mp3' is delivered on the watch by TomTom, I cannot remember how I copied the canto ostinato files: directly or via the TomTom MySports application; I guess the latter)

typhoon2099 commented 6 years ago

I have tended to copy/paste songs into a new folder in /MySportsConnect/Music and then opened them all in Amarok (music player), then exporting the current playlist as an M3U8 and saving it in the directory. Then I need to update the master playlist with a link to the newly created playlist. It's a bit or work but it's doable. I'm sure the process could be automated somehow.