Net::DAAP::Client

Net::DAAP::Client is a client for Apple iTunes DAAP service.
Download

Net::DAAP::Client Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Nathan Torkington
  • Publisher web site:
  • http://search.cpan.org/~nwclark/perl-5.8.8/pod/perlhack.pod

Net::DAAP::Client Tags


Net::DAAP::Client Description

Net::DAAP::Client is a client for Apple iTunes DAAP service. Net::DAAP::Client is a client for Apple iTunes DAAP service.SYNOPSIS my $daap; # see WARNING below $daap = Net::DAAP::Client->new(SERVER_HOST => $hostname, SERVER_PORT => $portnum, PASSWORD => $password); $dsn = $daap->connect; $dbs_hash = $daap->databases; $current_db = $daap->db; $daap_db($new_db_id); $songs_hash = $daap->songs; $playlists_hash = $daap->playlists; $array_of_songs_in_playlist = $daap->playlist($playlist_id); $url = $daap->url($song_or_playlist_id); $binary_audio_data = $obj->get($song_id); $binary_audio_data = $obj->get(@song_ids); $song_id = $obj->save($dir, $song_id); @song_ids = $obj->get($dir, @song_ids); $daap->disconnect; if ($daap->error) { warn $daap->error; # returns error string }Net::DAAP::Client provides objects representing connections to DAAP servers. You can fetch databases, playlists, and songs. This module was written based on a reverse engineering of Apple's iTunes 4 sharing implementation. As a result, features that iTunes 4 doesn't support (browsing, searching) aren't supported here.Each connection object has a destructor, so that you can forget to disconnect without leaving the server expecting you to call back.WARNINGIf you store your object in a global variable, Perl can't seem to disconnect gracefully from the server. Until I figure out why, always store your object in a lexical (my) variable.Requirements:· PerlLimitations:· No authentication. No updates. No browsing. No searching.


Net::DAAP::Client Related Software