#!/usr/bin/env python

list_albums.py

Copyright © 2008 Dave Bayer. Subject to a BSD-style license.


Usage:

list_albums.py outfile logfile

Lists the albums found in the iTunes master music library.

This Python script is part of the iTunes project.


Import iTunes module:

from iTunes import *

Open command line arguments as the unicode files out, log:

out, log = open_args(2, 'outfile logfile')

List all albums found in the master music library:

list_albums(out, log)