diff options
| author | Essau Ramirez <sauramirez@users.noreply.github.com> | 2017-11-25 13:22:29 -0600 |
|---|---|---|
| committer | Rubén Beltrán del Río <ben@nsovocal.com> | 2017-11-25 13:22:29 -0600 |
| commit | d1a147d40ae00fd1f9f48a0b5e2f8a798849fd3d (patch) | |
| tree | d03dc09446d71ab10b51671c2b1ee781d5373353 /Sources/source_manager.swift | |
| parent | 772c8a7d231044bbdc50392f3192ea34f0b23288 (diff) | |
Added Spotify source support (#2)
* Added Spotify source support. Fixes #1
* Handle empty track being returned from itunes
Diffstat (limited to 'Sources/source_manager.swift')
| -rw-r--r-- | Sources/source_manager.swift | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Sources/source_manager.swift b/Sources/source_manager.swift index aaac696..e6c42da 100644 --- a/Sources/source_manager.swift +++ b/Sources/source_manager.swift @@ -4,7 +4,8 @@ class SourceManager { // List of sources enabled for the crurent platform private var availableSources: [String: Source] = [ "arguments": ArgumentsSource(), - "itunes": ItunesSource() + "itunes": ItunesSource(), + "spotify": SpotifySource() ] // Iterate over the sources until we find a track or run out of sources |