add proxy configuration value

+ document possible configuration options

fixes #109
This commit is contained in:
Henrik Friedrichsen
2019-11-21 22:45:09 +01:00
parent ff000077ad
commit 177c4893e0
7 changed files with 42 additions and 13 deletions

View File

@@ -31,6 +31,7 @@ extern crate chrono;
extern crate fern;
extern crate rand;
extern crate url;
use std::fs;
use std::path::PathBuf;
@@ -161,7 +162,7 @@ fn main() {
let mut credentials = get_credentials(false);
while !spotify::Spotify::test_credentials(credentials.clone()) {
while !spotify::Spotify::test_credentials(cfg.clone(), credentials.clone()) {
credentials = get_credentials(true);
}
@@ -172,7 +173,11 @@ fn main() {
let event_manager = EventManager::new(cursive.cb_sink().clone());
let spotify = Arc::new(spotify::Spotify::new(event_manager.clone(), credentials));
let spotify = Arc::new(spotify::Spotify::new(
cfg.clone(),
event_manager.clone(),
credentials,
));
let queue = Arc::new(queue::Queue::new(spotify.clone()));