doronz88 / pymobiledevice3

Pure python3 implementation for working with iDevices (iPhone, etc...).
https://discord.gg/52mZGC3JXJ
GNU General Public License v3.0
1.19k stars 164 forks source link

FEATURE REQUEST: Music Transfer (`iTunes_Control`) #297

Open CRKatri opened 2 years ago

CRKatri commented 2 years ago

Is your feature request related to a problem? Please describe. The only program I can find to transfer mp3's to your phone's music library without using iTunes is rhythmbox, which you can't use from the command line.

Describe the solution you'd like A command in pymobiledevice3 that allows us to transfer mp3's to our Apple Music local songs.

Describe alternatives you've considered I have researched to find a program, and looked at GNOME's rhythmbox, the only tool I could find.

doronz88 commented 2 years ago

After a quick look, it will require some work that would probably even be in a seperate library entirely. To do so, we'll have to start maintaining Apple's /iTunes_Control/iTunes/MediaLibrary.sqlitedb. Unlike most systems, Apple apparently doesn't think its a good idea just letting their users dump their music folder wherever they want. 😔

CRKatri commented 2 years ago

Dumping the music is the easy part, just scanning /iTunes_Control/Music/ for all the mp3's and grabbing them all over AFC, it's the import that is annoying.

We could probably take a look at how Rhythmbox does it so that we don't have to reverse engineer it from scratch. (Or look at one of the various iPod tools which use a similar format, but mount the disk instead of using AFC)

doronz88 commented 2 years ago

For reference, they use libgpod: https://github.com/fadingred/libgpod