add proxy configuration value
+ document possible configuration options fixes #109
This commit is contained in:
@@ -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()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user