Thanks to those who responded so far. I now have a prototype script which seems to work ok on a 10k+ tracks repository. It is not complete by any means, but it does the job: you launch the script, it scans your local repository, and deletes/adds tracks to the iPod accordingly. I now would like to add support for covers and on the fly transcoding of FLAC files.
Where shall I post the script? Ed On Thu, Mar 18, 2010 at 10:20 PM, chris.com <[email protected]> wrote: > > Hi Ed, > > I've managed something like what you're trying to do with my iPod. > > Mine is a 2nd generation iPod shuffle and I wanted to automagically : > * delete any played or skipped song from the iPod > * add (random) new songs until the iPod was full again > when plugged in a Linux system. > > I programmed udev to detect the plugging in, > whereupon the iPod gets mounted > and then synced it with "tunes2pod -force". > Next I delete the skipped and played songs > and fill it with fresh songs > In the end I call mktunes and unmount the iPod > Voila ready to unplug > > If you know the 2nd generation iPod shuffle you'll have noticed that the > current gnuPod version doesn't sync the iPod because the iTunesStats file > isn't handled. > Furthermore the gnupod_search function doesn't have playcount and skipcount > options. > So I wrote a patch for that. > > My little system works quite well. > If this is like what you're trying to do and you need some help I might be > able to help you. > > I will post my patch soon because it might be useful to others but I have to > clean it up a bit first > > Chris > > > > > > Le 15/03/2010 12:09, Edouard Lafargue a écrit : >> >> Hi, >> >> I have been trying for some time to achieve the following: I would >> like to keep my iPod in sync with a 'master' music repository which I >> keep on a (Linux) server at home. The idea is very simple: whenever I >> dock my Ipod on this server, it should scan both the ipod and the >> music repository on the server, delete any song which are present on >> the iPod and not on the repository, and add any song present on the >> repo and not on the iPod, then eject the iPod: no human intervention >> needed at all, no iTunes, etc... >> >> So far I have not been able to achieve this with reliable results: >> maybe I am missing something altogether with the gnupod utilities? As >> far as I can tell, there is no simple way to do this, am I wrong ? I >> was under the impression this scenario should be fairly common, how do >> other gnupod users achieve this? >> >> At the moment, using the Audio::Scan perl library, I can get very good >> MP3/M4A tag scanning, and I can reliably compare my repo and my iPod >> using a perl script, i.e. I can identify whether a song is already >> present on the iPod, whether it should be deleted or added, and the >> only thing I miss is a way to add/remove songs from the GnupodDB >> directly from my perl script, any hints? >> >> There is an old Mac::iPod:GNUpod package around, which seems to be >> slightly outdated and does not work very well on recent iPods. Ideally >> I would rather use the GNUPod packages directly, rather than an >> intermediate package? >> >> Thanks for your help, >> >> Ed >> >> >> _______________________________________________ >> Bug-gnupod mailing list >> [email protected] >> http://lists.gnu.org/mailman/listinfo/bug-gnupod >> >> > > > > _______________________________________________ > Bug-gnupod mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/bug-gnupod > _______________________________________________ Bug-gnupod mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-gnupod
