![]() You can create smart playlists inside iTunes if you want, it doesn't have to be the playlist you imported that is synced. Do whatever you want inside iTunes to sync files to your phone, or whatever.(You have to do this manually as iTunesLibrary Framework is read only.) m3u8 from the output directory (default ~/Music/sw2iphone) into iTunes. Run sw2iphone -e and pick which Swinsian playlist you want to export.Though I think I have good defaults, I suppose a switch for -V 2 rather than -V 0 would be good. I guess some configurability around lame and sox options would be nice to have.I bet there are some more that people might want? I only copy over the basic tags when we do a transcode from flac.I suppose this is one of the first feature requests I am going to get however :p Also, I am intentionally single threaded, as I am on a laptop and a prefer not spinning my fans up, and I don't mind waiting a bit for my music to be ready. This is kinda slow, so may be worth hitting the files directly and inserting changes into Swinsian's database. I am using AppleScript to push changes back to Swinsian, to get out of having to deal with the UI and other challenges of tag editing. Perhaps link files, or keep track of previously used paths? Could get messy. Handle changing the path to our directory better.But I should warn you when this happens, on sync, if there are files I have never seen in iTunes. I don't think it is my fault, as even dragging the file directly into iTunes doesn't work. There are some files that iTunes silently refuses to import, related to characters in the path name.Send me mail if you have problems, requests or just to let me know you are using it. And I do intend to continue work to clean it up, make it more robust, and add a few features. That said I think other people may have needs similar to mine, so I am releasing it here under the MIT license. It is pretty simple, and may break in bad ways if you are doing something other than my specific workflow (see workflows below). This is a tool I hacked up to fill a need of mine (to get music from Swinsian to my iPhone, and sync back playcounts and ratings). For more see the workflows section below for examples.You can use the above along with -dry-run to get a feel for what sw2iphone will do on the run, with this flag we won't create files on disk (other than temp files, which we clean up), or make changes to the Swinsian database.Whichever is largest will be used, you don't need to include them all. -v or -vv (and super secret option -vvv) will increase the amount of verbosity.This is the sandbox permission request for AppleScript to work with Swinsian. ![]() On first run it will probably ask you if you want "Terminal to be able to control Swinsian".We do save the path, you don't have to pass it each time, just when you want to change it. Recommend you set the path to what you want from the start, and if you do change it later, either manually move over the files to the new directory before you run anything with sw2iphone, or start fresh in iTunes. If you do change the path after mp3s have been created in the old path, be aware that we don't do anything to move them, and they will be recreated next time you export the playlist, and things will get funky (duplicated tracks in iTunes). You can change this by passing in a path after -path. By default we will use the directory ~/Music/sw2iphone as our export folder for playlists, and any mp3s we create.Sw2iphone -h will give the commands, but here is what you need to know: Recommend installing with homebrew for ease: brew install flac, brew install lame and brew install sox. If you have FLAC files you want to sync, make sure you have sox, lame, and metaflac installed in /usr/local/bin/.Download sw2iphone.zip from the latest release and extract it and place it somewhere in your $PATH (or reference it directly).Keeps track of files being added or removed from iTunes, so that we can keep proper count of playcount, and clean up files from disk that we transcoded if desired.Reads song data from the iTunesLibrary Framework (macOS 10.15+).Tries (not too hard) to find cover images (cover.jpg, etc), and include them (requires metaflac). Converts FLAC files to mp3 (requires sox and lame) as needed.A command line tool to export Swinsian playlists to iTunes/Music and sync back playcounts and ratings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |