This repository has been archived by the owner. It is now read-only.
Python abstraction layer around ScriptingBridge to control iTunes with style.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
iTunesConnector
.gitignore
README.md
setup.py

README.md

Disclaimer

Please don't use this. I'm currently working on a much better solution that doesn't require over 2000 lines of code and works with every ScriptingBridge capable application.

iTunes Connector

Abstraction layer around ScriptingBridge to control iTunes with style.

Installation

Clone the repo

git clone https://github.com/PhilipTrauner/iTunesConnector

Navigate into cloned repo

cd iTunesConnector

Run install script

python setup.py install

Usage Example

from iTunesConnector import iTunes

itunes = iTunes()

# Starting track
itunes.play()
# Get album of current track
print(itunes.current_track.album)
# Get length of current playlist
print(itunes.current_playlist.time)
# Get genre of currently highlighted tracks
for song in itunes.selection:
	print(song.genre)
# Playing 11th track of current playlist
itunes.play(itunes.current_playlist.tracks[10])