Refactor: separate Spotify API from player logic
The separation is not perfect yet, but it's a start and makes the entire codebase much easier to read.
This commit is contained in:
@@ -26,7 +26,7 @@ impl Show {
|
||||
return;
|
||||
}
|
||||
|
||||
let episodes_result = spotify.show_episodes(&self.id);
|
||||
let episodes_result = spotify.api.show_episodes(&self.id);
|
||||
while !episodes_result.at_end() {
|
||||
episodes_result.next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user