From d1a147d40ae00fd1f9f48a0b5e2f8a798849fd3d Mon Sep 17 00:00:00 2001 From: Essau Ramirez Date: Sat, 25 Nov 2017 13:22:29 -0600 Subject: Added Spotify source support (#2) * Added Spotify source support. Fixes #1 * Handle empty track being returned from itunes --- Sources/source_manager.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Sources/source_manager.swift') 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 -- cgit