GithubHelp home page GithubHelp logo

smorkolama / itunes-playlist-to-usb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stevenchanin/itunes-playlist-to-usb

0.0 1.0 0.0 724 KB

Takes playlist(s) exported from iTunes and pull out the mp3's into folders by artist / album

License: MIT License

Ruby 100.00%

itunes-playlist-to-usb's Introduction

ITunes Playlist To USB

The Problem

Lots of cars now have USB interfaces to allow you to bring music with you. Those are great because you can buy a USB stick for much lower $/GB ($6 for 16gb = $0.37/gb) than by getting the storage space as part of an iPod ($139.99 for 16gb = $8.75/gb).

But I ran into a problem getting music copied over from my iTunes library onto the USB stick in a way that I could use it.

The first problem was that with a lot of music, I find it helpful to organize it by Genre and then by Album. That lets me quickly navigate to the album / songs I'm looking for. iTunes lets you drag (copy) music over to a USB stick, but then you just get all the files dropped into a single folder with no organization.

The second problem I ran into was that what ends up in that folder is a copy of the file where the name is whatever the underlying filename was originally created as, but that often includes all kinds of other information (junk) depending on what software was used to rip the song. Any cleanup you've done in iTunes to improve the name (or fix other meta data) is ignore. You just get the original file name.

Usage

To use the playlist_exporter (this script), you:

  • create a playlist(s) containing the songs / albums you want in iTunes

  • export the playlist as XML

Initiate Export

Save Export as XML file

  • run playlist_exporter
bundle install
ruby playlist_exporter.rb process

Run in Terminal

and it will copy all the songs from the playlist onto the USB stick organized in a hierarchy of Genre and Album using the iTunes meta data. It will generate new file names that are

	<track number>-<song name from iTunes>
    #==> 9-Rock of Ages.mp3

so you end up with a final result like: Final Result

Options

if you ask for help from playlist_exporter, it will show you the options it accepts:

ruby playlist_exporter.rb help process 

Usage:
  playlist_exporter.rb process

Options:
  -v, [--verbose]  # running in verbose mode will also show each file as it's copied
  -d, [--debug]    # in debug mode files will not actually be copied
  -f, [--force]    # normally, copying a file is skipped if a file with the same name and size already exists in the destination. Force mode always copies.

process playlist

itunes-playlist-to-usb's People

Contributors

stevenchanin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.