I am looking for a library that will allow me to analyze and modify my internal iPod database programmatically.
My main goal is to delete some serious hogging files, which for reasons too complicated to use, the iTunes interface does not allow me to delete.
Therefore, itβs very important for me to determine the actual file paths associated with individual entries on my iPod. (iTunes obfuscates these paths to hide their contents. They match the regular expression Perl m,^.*/iPod_Control/Music/F\d\d/[AZ]{4}.[a-zA-Z]+$, )
As an additional goal, I would like to change the internal iPod account so that these deletions are recorded correctly.
In case that matters, I need to do this from OS X.
I would prefer the Python library for this, but if such a library does not exist, the Perl library will also work.
Thanks!
PS At first I tried to accomplish this task with a suitable third-party application, but none of those that I tested inspired me with confidence that I had left my iPod in a normal / undamaged state. So I decided to write a script for this.
PS 2: The files that I want to delete are not displayed in the XML file that iTunes creates when the export command is executed. (However, the files are definitely on my iPod, as I can play them.) Therefore, any solution based on this XML file is missing.
PS 3: None of the files that I need to delete is mp3 or even audio, so any solution that focuses on mp3 or audio file is missing.
source share