Compare commits

..

No commits in common. "0ce58b3ce7501011c76bfd98c4c90234f6e3da77" and "3615fb59ebf3819f6724b14a5b32f3f11331d225" have entirely different histories.

View file

@ -137,6 +137,18 @@ public class Subsonic : Object {
private string url;
private string parameters;
public Subsonic.with_password (string url, string username, string password) {
this.url = url;
this.parameters = @"u=$(Uri.escape_string(username))&p=$(Uri.escape_string(password))&v=1.16.1&c=eu.callcc.audrey";
this.session = new Soup.Session ();
this.session.user_agent = "audrey/linux";
this.artist_list = new ListStore (typeof (Artist));
this.album_list = new ListStore (typeof (Album));
this.song_list = new ListStore (typeof (Song));
}
public Subsonic.with_token (string url, string username, string token, string salt) {
this.url = url;
this.parameters = @"u=$(Uri.escape_string(username))&t=$(Uri.escape_string(token))&s=$(Uri.escape_string(salt))&v=1.16.1&c=eu.callcc.audrey";