Coder Social home page Coder Social logo

loved2itunes's Introduction

Introduction

This Ruby script creates or overrides an iTunes playlist containing your loved last.fm tracks.

Usage

ruby loved2itunes.rb -h

Examples

ruby loved2itunes.rb -u kain82 -n MyLovedTracks -e # will import loved tracks into MyLovedTracks playlist and excludes videos.
ruby loved2itunes.rb -u kain82 # will import loved tracks into Loved playlist and includes videos.
ruby loved2itunes.rb -u kain82 -e -v # run verbosely, exclude videos

Cronjob

This script is ideal to keep in sync with your last.fm loved tracks. For example this will run hourly:

01 * * * * /path/to/loved2itunes.rb -u username

Tips

You can also use another last.fm username and try to import the loved tracks of another person/account if you have the required files in your library.

Resources

Mac OS X installation

Tested on Snow Leopard with iTunes:

  • 8.2.6
  • 9.0

Two rubygems are required in order to run loved2itunes, nokogiri and rb-appscript.

Open a terminal and issue those commands:

sudo gem install nokogiri --no-rdoc --no-ri
sudo gem install rb-appscript --no-rdoc --no-ri

Run the script as described above.

Windows installation

This is an experimental feature.

Tested on Windows XP SP3 with iTunes:

  • 8.2.6

Download and install Ruby.

After the installation completes, start a command prompt, Start -> Run -> write cmd and press return.

Issue those commands to update rubygems:

gem update --system

Then install the required gem:

gem install nokogiri --no-rdoc --no-ri

Run the script as described above.

loved2itunes's People

Contributors

masterkain avatar

Stargazers

chris montgomery avatar Etienne van Delden de la Haije avatar Kirill Rogovoy avatar  avatar  avatar TANAKA, Koutarou avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

Forkers

eirvandelden

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.