Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#192171 - 06/12/2003 12:28 Detecting marked tracks easially from a Linux CLI?
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
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

Top
#192172 - 06/12/2003 13:45 Re: Detecting marked tracks easially from a Linux CLI? [Re: drakino]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
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.
_________________________
- Tony C
my empeg stuff

Top
#192173 - 06/12/2003 15:09 Re: Detecting marked tracks easially from a Linux CLI? [Re: drakino]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
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).

Top
#192174 - 06/12/2003 15:27 Re: Detecting marked tracks easially from a Linux CLI? [Re: Daria]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
The details on what tracks are marked is stored in the dynamic data partition.

Top
#192175 - 06/12/2003 15:54 Re: Detecting marked tracks easially from a Linux CLI? [Re: tman]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
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.
_________________________
- Tony C
my empeg stuff

Top
#192176 - 06/12/2003 16:06 Re: Detecting marked tracks easially from a Linux CLI? [Re: tonyc]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
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.

Top
#192177 - 06/12/2003 16:19 Re: Detecting marked tracks easially from a Linux CLI? [Re: tman]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
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.
_________________________
- Tony C
my empeg stuff

Top