2009-06-12 06:15:52 -04:00
|
|
|
forked-daapd
|
|
|
|
------------
|
|
|
|
|
2014-03-11 18:20:29 -04:00
|
|
|
forked-daapd is a Linux/FreeBSD DAAP (iTunes) and RSP (Roku) media server.
|
|
|
|
|
|
|
|
It has support for AirPlay devices/speakers, Apple Remote (and compatibles),
|
2014-09-28 15:12:20 -04:00
|
|
|
internet radio, Spotify and LastFM. It does not support AirPlay video.
|
2009-06-12 06:15:52 -04:00
|
|
|
|
|
|
|
DAAP stands for Digital Audio Access Protocol, and is the protocol used
|
|
|
|
by iTunes and friends to share/stream media libraries over the network.
|
|
|
|
|
|
|
|
RSP is Roku's own media sharing protocol. Roku are the makers of the
|
|
|
|
SoundBridge devices. See <http://www.roku.com>.
|
|
|
|
|
2013-10-22 15:14:21 -04:00
|
|
|
The source for this version of forked-daapd can be found here:
|
|
|
|
|
|
|
|
<https://github.com/ejurgensen/forked-daapd.git>
|
|
|
|
|
|
|
|
The original (now unmaintained) source can be found here:
|
2010-09-04 05:07:48 -04:00
|
|
|
|
|
|
|
<http://git.debian.org/?p=users/jblache/forked-daapd.git>
|
2014-01-09 16:58:58 -05:00
|
|
|
|
|
|
|
forked-daapd is a complete rewrite of mt-daapd (Firefly Media Server).
|
2009-06-12 06:15:52 -04:00
|
|
|
|
|
|
|
|
2014-03-11 18:20:29 -04:00
|
|
|
Contents of this README
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
- Supported clients
|
|
|
|
- Using Remote
|
|
|
|
- AirPlay devices/speakers
|
|
|
|
- Local audio output
|
|
|
|
- Supported formats
|
|
|
|
- Streaming MPEG4
|
|
|
|
- Playlists and internet radio
|
|
|
|
- Artwork
|
|
|
|
- Library
|
2014-04-01 18:02:48 -04:00
|
|
|
- Command line and web interface
|
2014-03-11 18:20:29 -04:00
|
|
|
- Spotify
|
2014-08-15 17:36:54 -04:00
|
|
|
- LastFM
|
2014-03-11 18:20:29 -04:00
|
|
|
|
|
|
|
|
2009-06-12 06:15:52 -04:00
|
|
|
Supported clients
|
|
|
|
-----------------
|
|
|
|
|
2014-03-12 05:48:53 -04:00
|
|
|
forked-daapd supports 4 kinds of clients:
|
2014-02-07 16:10:40 -05:00
|
|
|
|
2014-03-12 05:48:53 -04:00
|
|
|
- DAAP clients, like iTunes or Rhythmbox
|
|
|
|
- Remote clients, like Apple Remote or compatibles for Android/Windows Phone
|
|
|
|
- AirPlay devices, like AirPort Express, Shairport and various AirPlay speakers
|
|
|
|
- RSP clients, like Roku Soundbridge
|
2014-02-07 16:10:40 -05:00
|
|
|
|
2014-03-12 05:48:53 -04:00
|
|
|
Like iTunes, you can control forked-daapd with Remote and stream your music
|
|
|
|
to AirPlay devices.
|
2009-06-12 06:15:52 -04:00
|
|
|
|
|
|
|
A single forked-daapd instance can handle several clients concurrently,
|
|
|
|
regardless of the protocol.
|
|
|
|
|
2014-03-12 05:48:53 -04:00
|
|
|
Here is a list of working and non-working DAAP and Remote clients. The list is
|
|
|
|
probably obsolete when you read it :-)
|
|
|
|
|
2014-03-12 05:55:17 -04:00
|
|
|
+--------------------------+------------+--------+---------------+-----------------+
|
|
|
|
| Client | Developer | Type | Platform | Working (vers.) |
|
|
|
|
+--------------------------+------------+--------+---------------+-----------------+
|
|
|
|
| iTunes | Apple | DAAP | Win, OSX | Yes (11.2) |
|
|
|
|
| Rhythmbox | Gnome | DAAP | Linux | Yes |
|
|
|
|
| WinAmp DAAPClient | WardFamily | DAAP | WinAmp | Yes |
|
|
|
|
| Banshee | | DAAP | Linux/Win/OSX | No (2.6.2) |
|
|
|
|
| jtunes4 | | DAAP | Java | No |
|
|
|
|
| Firefly Client | | (DAAP) | Java | No |
|
|
|
|
| Remote | Apple | Remote | iOS | Yes (4.2) |
|
|
|
|
| Retune | SquallyDoc | Remote | Android | Yes (3.5.23) |
|
|
|
|
| TunesRemote+ | Melloware | Remote | Android | Yes (2.5.3) |
|
|
|
|
| Remote for iTunes | Hyperfine | Remote | Android | Yes |
|
|
|
|
| Remote for Windows Phone | Komodex | Remote | Windows Phone | Yes (2.2.1.0) |
|
|
|
|
| TunesRemote SE | | Remote | Java | Yes (r108) |
|
|
|
|
+--------------------------+------------+--------+---------------+-----------------+
|
2014-03-12 05:48:53 -04:00
|
|
|
|
|
|
|
|
2009-06-12 06:15:52 -04:00
|
|
|
|
2011-06-16 12:22:16 -04:00
|
|
|
Using Remote
|
|
|
|
------------
|
|
|
|
|
|
|
|
If you plan to use Remote with forked-daapd, read the following sections
|
2013-12-21 12:24:48 -05:00
|
|
|
carefully. The pairing process described is similar for other controllers, but
|
|
|
|
some do not require pairing.
|
2011-06-16 12:22:16 -04:00
|
|
|
|
|
|
|
Pairing with Remote on iPod/iPhone
|
|
|
|
----------------------------------
|
2010-01-17 05:16:17 -05:00
|
|
|
|
2013-12-21 12:24:48 -05:00
|
|
|
forked-daapd can be paired with Apple's Remote application for iPod/iPhone/iPad;
|
2010-01-17 05:16:17 -05:00
|
|
|
this is how the pairing process works:
|
2013-12-21 12:24:48 -05:00
|
|
|
|
2014-01-09 16:58:58 -05:00
|
|
|
1. Start forked-daapd
|
|
|
|
2. Start Remote, go to Settings, Add Library
|
|
|
|
3. Look in the log file for a message saying:
|
|
|
|
|
|
|
|
"Discovered remote 'Foobar' (id 71624..."
|
|
|
|
|
|
|
|
This tells you the name of your device (Foobar in this example).
|
2010-01-17 05:16:17 -05:00
|
|
|
|
2014-01-09 16:58:58 -05:00
|
|
|
If you cannot find this message, it means that forked-daapd did not receive
|
|
|
|
a mDNS announcement from your Remote. You have a network issue and mDNS
|
|
|
|
doesn't work properly on your network.
|
|
|
|
|
|
|
|
4. Prepare a text file with a filename ending with .remote; the filename
|
|
|
|
doesn't matter, only the .remote ending does. This file must contain
|
|
|
|
two lines: the first line is the name of your iPod/iPhone/iPad, the second
|
|
|
|
is the 4-digit pairing code displayed by Remote.
|
|
|
|
|
|
|
|
If your iPod/iPhone/iPad is named "Foobar" and Remote gives you the pairing
|
|
|
|
code 5387, the file content must be:
|
2010-01-17 05:16:17 -05:00
|
|
|
|
|
|
|
Foobar
|
|
|
|
5387
|
|
|
|
|
2014-01-09 16:58:58 -05:00
|
|
|
5. Move this file somewhere in your library
|
2010-01-17 05:16:17 -05:00
|
|
|
|
|
|
|
At this point, you should be done with the pairing process and Remote should
|
|
|
|
display the name of your forked-daapd library. You can delete the .remote file
|
|
|
|
once the pairing process is done.
|
|
|
|
|
|
|
|
If Remote doesn't display the name of your forked-daapd library at this point,
|
|
|
|
the pairing process failed.
|
|
|
|
|
|
|
|
This will usually be because the .remote file did not contain the correct name
|
|
|
|
or pairing code. Start over the pairing process and try again.
|
|
|
|
|
2014-01-09 16:58:58 -05:00
|
|
|
If you have trouble pairing with forked-daapd, you can use avahi-browse for
|
|
|
|
troubleshooting:
|
2010-01-17 05:16:17 -05:00
|
|
|
- in a terminal, run avahi-browse -r -k _touch-remote._tcp
|
2013-12-21 12:24:48 -05:00
|
|
|
- start Remote, goto Settings, Add Library
|
2010-01-17 05:16:17 -05:00
|
|
|
- after a couple seconds at most, you should get something similar to this:
|
|
|
|
|
|
|
|
+ ath0 IPv4 59eff13ea2f98dbbef6c162f9df71b784a3ef9a3 _touch-remote._tcp local
|
|
|
|
= ath0 IPv4 59eff13ea2f98dbbef6c162f9df71b784a3ef9a3 _touch-remote._tcp local
|
|
|
|
hostname = [Foobar.local]
|
|
|
|
address = [192.168.1.1]
|
|
|
|
port = [49160]
|
|
|
|
txt = ["DvTy=iPod touch" "RemN=Remote" "txtvers=1" "RemV=10000" "Pair=FAEA410630AEC05E" "DvNm=Foobar"]
|
|
|
|
|
2013-12-21 12:24:48 -05:00
|
|
|
The name of your iPod/iPhone/iPad is the value of the DvNm field above. In this
|
2010-01-17 05:16:17 -05:00
|
|
|
example, the correct value is Foobar.
|
|
|
|
|
2010-09-06 13:06:49 -04:00
|
|
|
Watch out for fancy characters; for instance, the name of your device may
|
|
|
|
include Unicode characters that aren't visually different from plain ASCII
|
|
|
|
characters (like the single quote if your device name follows the default
|
|
|
|
scheme of "Foo's iPhone"). If unsure, change the name of your device or
|
|
|
|
capture the output in a file to extract the real, correct name.
|
|
|
|
|
2010-01-17 05:16:17 -05:00
|
|
|
Hit Ctrl-C to terminate avahi-browse.
|
|
|
|
|
2011-06-16 12:22:16 -04:00
|
|
|
Selecting output devices
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
Remote gets a list of output devices from the server; this list includes any
|
2014-02-07 16:10:40 -05:00
|
|
|
and all devices on the network we know of that advertise AirPlay: AirPort
|
2011-06-16 12:22:16 -04:00
|
|
|
Express, Apple TV, ... It also includes the local audio output, that is, the
|
|
|
|
sound card on the server (even if there is no soundcard).
|
|
|
|
|
|
|
|
By default, if no output is selected when playback starts, the local output
|
2014-01-15 15:39:28 -05:00
|
|
|
device will be used. If that fails it will try to stream to any available
|
|
|
|
AirPlay speaker.
|
2011-06-16 12:22:16 -04:00
|
|
|
|
|
|
|
forked-daapd remembers your selection and the individual volume for each
|
|
|
|
output device; selected devices will be automatically re-selected at the next
|
|
|
|
server startup, provided they appear in the 5 minutes following the startup
|
2014-01-15 15:39:28 -05:00
|
|
|
and no playback has occured yet.
|
2011-06-16 12:22:16 -04:00
|
|
|
|
2010-01-17 05:16:17 -05:00
|
|
|
|
2014-02-07 16:10:40 -05:00
|
|
|
AirPlay devices/speakers
|
|
|
|
------------------------
|
2010-05-02 09:48:53 -04:00
|
|
|
|
2014-02-07 16:10:40 -05:00
|
|
|
forked-daapd will discover the AirPlay devices available on your network. For
|
|
|
|
devices that are password-protected, the device's AirPlay name and password
|
2010-05-02 09:48:53 -04:00
|
|
|
must be given in the configuration file. See the sample configuration file
|
|
|
|
for the syntax.
|
|
|
|
|
|
|
|
|
|
|
|
Local audio output
|
|
|
|
------------------
|
|
|
|
|
|
|
|
The audio section of the configuration file supports 2 parameters for the local
|
|
|
|
audio device:
|
|
|
|
- nickname: this is the name that will be used in the speakers list in Remote
|
|
|
|
- card: this is the name/device string (ALSA) or device node (OSS4) to be used
|
|
|
|
as the local audio device. Defaults to "default" for ALSA and "/dev/dsp" for
|
|
|
|
OSS4.
|
|
|
|
|
|
|
|
|
2009-06-12 06:15:52 -04:00
|
|
|
Supported formats
|
|
|
|
-----------------
|
|
|
|
|
2011-06-02 15:07:53 -04:00
|
|
|
forked-daapd should support pretty much all media formats. It relies on libav
|
|
|
|
(ffmpeg) to extract metadata and decode the files on the fly when the client
|
|
|
|
doesn't support the format.
|
2009-06-12 06:15:52 -04:00
|
|
|
|
|
|
|
Formats are attributed a code, so any new format will need to be explicitely
|
|
|
|
added. Currently supported:
|
|
|
|
- MPEG4: mp4a, mp4v
|
|
|
|
- AAC: alac
|
|
|
|
- MP3 (and friends): mpeg
|
|
|
|
- FLAC: flac
|
|
|
|
- OGG VORBIS: ogg
|
|
|
|
- Musepack: mpc
|
|
|
|
- WMA: wma (WMA Pro), wmal (WMA Lossless), wmav (WMA video)
|
|
|
|
- AIFF: aif
|
|
|
|
- WAV: wav
|
|
|
|
|
|
|
|
|
2010-02-10 13:40:38 -05:00
|
|
|
Streaming MPEG4
|
|
|
|
---------------
|
|
|
|
|
2010-02-13 05:15:09 -05:00
|
|
|
Depending on the client application, you may need to optimize your MPEG4 files
|
|
|
|
for streaming. Stream-optimized MPEG4 files have their metadata at the beginning
|
|
|
|
of the file, whereas non-optimized files have them at the end.
|
|
|
|
|
|
|
|
Not all clients need this; if you're having trouble playing your MPEG4 files,
|
|
|
|
this is the most probable cause. iTunes, in particular, doesn't handle files
|
|
|
|
that aren't optimized, though FrontRow does.
|
2010-02-10 13:40:38 -05:00
|
|
|
|
|
|
|
Files produced by iTunes are always optimized by default. Files produced by
|
2010-02-12 13:10:37 -05:00
|
|
|
FAAC and a lot of other encoders are not, though some encoders have an option
|
|
|
|
for that.
|
2010-02-10 13:40:38 -05:00
|
|
|
|
|
|
|
The mp4creator tool from the mpeg4ip suite can be used to optimize MPEG4 files,
|
|
|
|
with the -optimize option:
|
|
|
|
$ mp4creator -optimize foo.m4a
|
|
|
|
|
|
|
|
Don't forget to make a backup copy of your file, just in case.
|
|
|
|
|
2010-02-12 13:10:37 -05:00
|
|
|
Note that not all tag/metadata editors know about stream optimization and will
|
|
|
|
happily write the metadata back at the end of the file after you've modified
|
|
|
|
them. Watch out for that.
|
|
|
|
|
2010-02-10 13:40:38 -05:00
|
|
|
|
2014-03-11 18:20:29 -04:00
|
|
|
Playlists and internet radio
|
|
|
|
----------------------------
|
2009-06-12 06:15:52 -04:00
|
|
|
|
2014-08-27 15:57:16 -04:00
|
|
|
forked-daapd supports M3U and PLS playlists. Just drop your playlist somewhere
|
|
|
|
in your library with an .m3u or .pls extension and it will pick it up.
|
2009-06-12 06:15:52 -04:00
|
|
|
|
2014-08-27 15:57:16 -04:00
|
|
|
If the playlist contains an http URL it will be added as an internet radio
|
|
|
|
station, and the URL will be probed for Shoutcast (ICY) metadata.
|
|
|
|
|
|
|
|
forked-daapd does not support playlists in playlists (so for instance a .m3u
|
|
|
|
where one of the items is another .m3u or .pls).
|
2014-03-11 18:20:29 -04:00
|
|
|
|
2009-11-28 05:01:22 -05:00
|
|
|
Support for iTunes Music Library XML format is available as a compile-time
|
|
|
|
option. By default, metadata from our parsers is preferred over what's in
|
|
|
|
the iTunes DB; use itunes_overrides = true if you prefer iTunes' metadata.
|
|
|
|
|
2009-06-12 06:15:52 -04:00
|
|
|
Smart playlists are not supported at the moment.
|
|
|
|
|
|
|
|
|
2010-03-07 10:10:04 -05:00
|
|
|
Artwork
|
|
|
|
-------
|
|
|
|
|
2014-01-09 16:58:58 -05:00
|
|
|
forked-daapd has support for artwork.
|
2010-03-07 10:10:04 -05:00
|
|
|
|
2014-01-09 16:58:58 -05:00
|
|
|
Embedded artwork is only supported if your version of forked-daapd was built
|
|
|
|
with libav 9+ or ffmpeg 0.11+.
|
2010-03-07 10:10:04 -05:00
|
|
|
|
2010-10-24 12:48:55 -04:00
|
|
|
Your artwork must be in PNG or JPEG format, dimensions do not matter;
|
|
|
|
forked-daapd scales down (never up) the artwork on-the-fly to match the
|
|
|
|
constraints given by the client. Note, however, that the bigger the picture,
|
|
|
|
the more time and resources it takes to perform the scaling operation.
|
2010-03-07 10:10:04 -05:00
|
|
|
|
|
|
|
As for the naming convention, it is quite simple; consider your foo.mp3 song,
|
|
|
|
residing at /bar/foo.mp3:
|
2014-01-09 16:58:58 -05:00
|
|
|
- if it has embedded artwork, this will be used as the artwork for this file;
|
|
|
|
- failing that, if /bar/foo.{png,jpg} exists, it is used;
|
|
|
|
- failing that, if /bar/{artwork,cover,Folder}.{png,jpg} exists, it is used;
|
|
|
|
- failing that, if /bar/bar.{png,jpg} exists, it is used
|
2010-03-07 10:10:04 -05:00
|
|
|
|
|
|
|
For "groups" (same album name and album artist), the situation is a bit
|
|
|
|
different:
|
2013-10-22 15:19:11 -04:00
|
|
|
- if a file {artwork,cover,Folder}.{png,jpg} is found in one of the directories
|
2010-10-24 12:48:55 -04:00
|
|
|
containing files that are part of the group, it is used as the artwork. The
|
|
|
|
first file found is used, ordering is not guaranteed;
|
2013-07-14 14:54:23 -04:00
|
|
|
- failing that, if [directory name].{png,jpg} is found in one of the
|
|
|
|
directories containing files that are part of the group, it is used as the
|
|
|
|
artwork. The first file found is used, ordering is not guaranteed;
|
2014-01-09 16:58:58 -05:00
|
|
|
- failing that, individual files are examined and the first artwork found
|
|
|
|
(embedded or in the same dir and named the same as the file) is used. Here
|
|
|
|
again, ordering is not guaranteed.
|
2010-03-07 10:10:04 -05:00
|
|
|
|
2013-10-22 15:19:11 -04:00
|
|
|
{artwork,cover,Folder} are the default, you can add other base names in the
|
2013-07-14 14:54:23 -04:00
|
|
|
configuration file.
|
|
|
|
|
2010-03-07 10:10:04 -05:00
|
|
|
You can use symlinks for the artwork files; the artwork is not scanned/indexed
|
2010-10-24 12:48:55 -04:00
|
|
|
in any way in the database and there is no caching on forked-daapd's side.
|
2010-03-07 10:10:04 -05:00
|
|
|
|
|
|
|
|
2009-06-12 06:15:52 -04:00
|
|
|
Library
|
|
|
|
-------
|
|
|
|
|
2014-05-13 16:01:58 -04:00
|
|
|
The library is scanned in bulk mode at startup, but the server will be available
|
|
|
|
even while this scan is in progress. You can follow the progress of the scan in
|
|
|
|
the log file.
|
2009-06-12 06:15:52 -04:00
|
|
|
|
2014-05-13 16:01:58 -04:00
|
|
|
Of course, if files have gone missing while the server was not running a request
|
|
|
|
for these files will produce an error until the scan has completed and the file
|
|
|
|
is no longer offered. Similarly, new files added while the server was not
|
|
|
|
running won't be offered until they've been scanned.
|
2013-11-29 16:48:53 -05:00
|
|
|
|
2014-05-13 16:01:58 -04:00
|
|
|
Changes to the library are reflected in real time after the initial scan. The
|
|
|
|
directories are monitored for changes and rescanned on the fly. Note that if you
|
|
|
|
have your library on a network mount then real time updating may not work. Read
|
|
|
|
below about what to do in that case.
|
2013-12-21 12:24:48 -05:00
|
|
|
|
|
|
|
If you change any of the directory settings in the library section of the
|
|
|
|
configuration file a rescan is required before the new setting will take effect.
|
|
|
|
Currently, this will not be done automatically, so you need to trigger the
|
2014-05-13 16:01:58 -04:00
|
|
|
rescan as described below.
|
2013-12-21 12:24:48 -05:00
|
|
|
|
2009-06-12 06:15:52 -04:00
|
|
|
Symlinks are supported and dereferenced. This does interact in tricky ways
|
|
|
|
with the above monitoring and rescanning, so you've been warned. Changes to
|
|
|
|
symlinks themselves won't be taken into account, or not the way you'd expect.
|
|
|
|
|
|
|
|
If you use symlinks, do not move around the target of the symlink. Avoid
|
|
|
|
linking files, as files themselves aren't monitored for changes individually,
|
|
|
|
so changes won't be noticed unless the file happens to be in a directory that
|
|
|
|
is monitored.
|
|
|
|
|
|
|
|
Bottom line: symlinks are for directories only.
|
2014-03-11 18:20:29 -04:00
|
|
|
|
2014-04-01 18:02:48 -04:00
|
|
|
Pipes made with mkfifo are also supported. This feature can be useful if you
|
|
|
|
have a program that can stream PCM16 audio to a pipe. Forked-daapd can then
|
|
|
|
forward the audio to one or more AirPlay speakers.
|
|
|
|
|
|
|
|
Pipes have no metadata, so they will be added with "Unknown artist" and "Unknown
|
|
|
|
album". The name of the pipe will be used as the track title.
|
|
|
|
|
|
|
|
|
2014-05-15 18:02:33 -04:00
|
|
|
Libraries on network mounts
|
|
|
|
---------------------------
|
2014-05-13 16:01:58 -04:00
|
|
|
Most network filesharing protocols do not offer notifications when the library
|
|
|
|
is changed. So that means forked-daapd cannot update its database in real time.
|
|
|
|
Instead you can schedule a cron job to update the database.
|
|
|
|
|
|
|
|
The first step in doing this is to add two entries to the 'directories'
|
|
|
|
configuration item in forked-daapd.conf:
|
|
|
|
|
2014-05-15 18:02:33 -04:00
|
|
|
directories = { "/some/local/dir", "/your/network/mount/library" }
|
2014-05-13 16:01:58 -04:00
|
|
|
|
|
|
|
Now you can make a cron job that runs this command:
|
|
|
|
|
|
|
|
touch /some/local/dir/trigger.init-rescan
|
|
|
|
|
|
|
|
When forked-daapd detects a file with filename ending .init-rescan it will
|
|
|
|
perform a bulk scan similar to the startup scan.
|
|
|
|
|
|
|
|
|
2014-05-15 18:02:33 -04:00
|
|
|
Troubleshooting library issues
|
|
|
|
------------------------------
|
2014-05-13 16:01:58 -04:00
|
|
|
If you place a file with the filename ending .full-rescan in your library,
|
|
|
|
you can trigger a full rescan of your library. This will clear all music and
|
|
|
|
playlists from forked-daapd's database and initiate a fresh bulk scan. Pairing
|
|
|
|
and speaker information will be kept. Only use this for troubleshooting, it is
|
|
|
|
not necessary during normal operation.
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-01 18:02:48 -04:00
|
|
|
Command line and web interface
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
forked-daapd is meant to be used with the clients mentioned above, so it does
|
|
|
|
not have a command line interface nor does it have a web interface. You can,
|
|
|
|
however, to some extent control forked-daapd from the command line by issuing
|
|
|
|
DAAP/DACP commands with a program like curl. Here is an example of how to do
|
|
|
|
that.
|
|
|
|
|
|
|
|
Say you have a playlist with a radio station, and you want to make a script that
|
|
|
|
starts playback of that station:
|
|
|
|
|
|
|
|
1. Run 'sqlite3 [your forked-daapd db]'. Use 'select id,title from files' to get
|
|
|
|
the id of the radio station, and use 'select id,title from playlists' to get the
|
|
|
|
id of the playlist.
|
|
|
|
2. Convert the two ids to hex.
|
|
|
|
3. Put the following lines in the script with the relevant ids inserted (also
|
|
|
|
observe that you must use a session-id < 100, and that you must login and
|
|
|
|
logout):
|
|
|
|
|
|
|
|
curl "http://localhost:3689/login?pairing-guid=0x1&request-session-id=50"
|
|
|
|
curl "http://localhost:3689/ctrl-int/1/playspec?database-spec='dmap.persistentid:0x1'&container-spec='dmap.persistentid:0x[PLAYLIST-ID]'&container-item-spec='dmap.containeritemid:0x[FILE ID]'&session-id=50"
|
|
|
|
curl "http://localhost:3689/logout?session-id=50"
|
|
|
|
|
2014-03-11 18:20:29 -04:00
|
|
|
|
|
|
|
Spotify
|
|
|
|
-------
|
|
|
|
|
|
|
|
forked-daapd has *some* support for Spotify. It must be compiled with the
|
|
|
|
--enable-spotify option (see INSTALL). You must have also have libspotify
|
|
|
|
installed, otherwise the Spotify integration will not be available. You can
|
|
|
|
get libspotify here:
|
|
|
|
|
|
|
|
- Original (binary) tar.gz, see <https://developer.spotify.com>
|
2014-03-29 17:26:46 -04:00
|
|
|
- Debian package (libspotify-dev), see <https://apt.mopidy.com>
|
2014-03-11 18:20:29 -04:00
|
|
|
|
2014-03-28 16:00:55 -04:00
|
|
|
You must also have a Spotify premium account. If you normally log into Spotify
|
|
|
|
with your Facebook account you must first go to Spotify's web site where you can
|
|
|
|
get the Spotify username and password that matches your account. With
|
|
|
|
forked-daapd you cannot login into Spotify with your Facebook username/password.
|
2014-03-11 18:20:29 -04:00
|
|
|
|
|
|
|
The procedure for logging in to Spotify is very much like the Remote pairing
|
|
|
|
procedure. You must prepare a file, which should have the ending ".spotify".
|
|
|
|
The file must have two lines: The first is your Spotify user name, and the
|
|
|
|
second is your password. Move the file to your forked-daapd library.
|
|
|
|
Forked-daapd will then log in and add all the music in your Spotify playlists
|
|
|
|
to its database.
|
|
|
|
|
|
|
|
Spotify will automatically notify forked-daapd about playlist updates, so you
|
|
|
|
should not need to restart forked-daapd to syncronize with Spotify.
|
|
|
|
|
|
|
|
For safety you should delete the ".spotify" file after first login. Forked-daapd
|
|
|
|
will not store your password, but will still be able to log you in automatically
|
|
|
|
afterwards, because libspotify saves a login token. You can configure the
|
|
|
|
location of your Spotify user data in the configuration file.
|
|
|
|
|
|
|
|
Limitations: You will only be able to play tracks from your Spotify playlists,
|
|
|
|
so you can't search and listen to music from the rest of the Spotify catalogue.
|
|
|
|
You will not be able to do any playlist management through forked-daapd - use
|
|
|
|
a Spotify client for that. You also can only listen to your music by letting
|
|
|
|
forked-daapd do the playback - so that means you can't stream from forked-daapd
|
2014-04-04 17:16:03 -04:00
|
|
|
to iTunes.
|
2014-08-15 17:36:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
LastFM
|
|
|
|
------
|
|
|
|
|
|
|
|
If forked-daapd was built with LastFM scrobbling enabled (see the INSTALL file)
|
|
|
|
you can have it scrobble the music you listen to. To set up scrobbling you must
|
|
|
|
create a text file with the file name ending ".lastfm". The file must have two
|
|
|
|
lines: The first is your LastFM user name, and the second is your password. Move
|
|
|
|
the file to your forked-daapd library. Forked-daapd will then log in and get a
|
|
|
|
permanent session key.
|
|
|
|
|
|
|
|
You should delete the .lastfm file immediately after completing the first login.
|
|
|
|
For safety, forked-daapd will not store your LastFM username/password, only the
|
|
|
|
session key. The session key does not expire.
|
|
|
|
|
|
|
|
To stop scrobbling from forked-daapd, add an empty ".lastfm" file to your
|
|
|
|
library.
|