@accepts(utf8, gboolean) @returns(gboolean) def load_uri(uri, play)
Loads a URI representing a single song, a directory, a playlist, or an internet radio station, and optionally starts playing it.
For playlists containing only stream URLs, we either add the playlist itself (if it's remote) or each URL from it (if it's local). The main reason for this is so clicking on stream playlist links in web browsers works properly - the playlist file will be downloaded to /tmp/, and we can't add that to the database, so we need to add the stream URLs instead.
uri : |
the URI to load |
play : |
if TRUE, start playing the URI (if possible) |
Returns : |
TRUE if the URI was added successfully |