Detecting marked tracks easially from a Linux CLI?

Posted by: drakino

Detecting marked tracks easially from a Linux CLI? - 06/12/2003 12:28

I'm working on a small program for my empeg, and part of it involves knowing what songs are marked for attention in a playlist, and being able to take action based on this. Either downloading the songs off the player, or noting their track and artist names (still deciding that one).

Anyone know what the easiest way from a CLI interface only to detect this information?

Thanks
Posted by: tonyc

Re: Detecting marked tracks easially from a Linux CLI? - 06/12/2003 13:45

Hmm. That might be a toughie. I don't think the *1 fids have any info about whether a track is marked. So you'd probably have to pick apart the empeg's database which probably requires writing a little utility that probably doesn't exist yet. I can't think of any easy way to do it with the standard command-line utils.
Posted by: Daria

Re: Detecting marked tracks easially from a Linux CLI? - 06/12/2003 15:09

I think you need to read the flash and decipher it from that. I guess in the next few days I'll try to find time to figure out how that works (what's written where, not how to read the flash).
Posted by: tman

Re: Detecting marked tracks easially from a Linux CLI? - 06/12/2003 15:27

The details on what tracks are marked is stored in the dynamic data partition.
Posted by: tonyc

Re: Detecting marked tracks easially from a Linux CLI? - 06/12/2003 15:54

Yeah, it is, but only for tracks in the current running order (and the 3 bookmarks, I guess), but not for all tracks on the player. I guess if Tom is okay with doing a "down down down" shuffle (and doesn't use "ignore as child in any sub-playlists) using the dyndata partition might work okay...

I do have some code that reads from the dyndata partition, I use it to get play counts and last played info in emphatic.
Posted by: tman

Re: Detecting marked tracks easially from a Linux CLI? - 06/12/2003 16:06

Is it? I thought it was kept along with the seek tool data. It can't be in the fids directory as that's read only when not syncing.
Posted by: tonyc

Re: Detecting marked tracks easially from a Linux CLI? - 06/12/2003 16:19

Is it? I thought it was kept along with the seek tool data. It can't be in the fids directory as that's read only when not syncing.
Yeah, you're right. I forgot that the per-FID data is stored on the dyndata partition for all fids, starting at 0x200. The running order area of the partition is after the playlists portion and just contains entries for the current running order.

Tom, I could probably whip something up that would give you what you want (the fids of marked tracks on the player) pretty quickly.. Just let me know how you want me to format the output.