Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux support #11

Closed
sudhackar opened this issue Sep 30, 2017 · 0 comments · Fixed by #12
Closed

Linux support #11

sudhackar opened this issue Sep 30, 2017 · 0 comments · Fixed by #12

Comments

@sudhackar
Copy link

yishn/spotify-lyrics#3

diff --git a/index.js b/index.js
index a08e7dd..255fee1 100644
--- a/index.js
+++ b/index.js
@@ -12,7 +12,7 @@ var wintools;
 var spotifyWebHelperWinProcRegex;
 
 // Default port that Spotify Web Helper binds to.
-var DEFAULT_PORT = 4370;
+var DEFAULT_PORT = 4381;
 var DEFAULT_RETURN_ON = ['login', 'logout', 'play', 'pause', 'error', 'ap']
 var DEFAULT_RETURN_AFTER = 1
 var ORIGIN_HEADER = { 'Origin': 'https://open.spotify.com' }
@@ -155,7 +155,7 @@ function SpotifyWebHelper(opts) {
     var localPort = opts.port || DEFAULT_PORT;
 
     function generateSpotifyUrl(url) {
-        return util.format("https://%s:%d%s", generateRandomLocalHostName(), localPort, url)
+        return util.format("http://%s:%d%s", generateRandomLocalHostName(), localPort, url)
     }
aidabeorn pushed a commit to aidabeorn/spotify-webhelper that referenced this issue Oct 12, 2017
aidabeorn pushed a commit to aidabeorn/spotify-webhelper that referenced this issue Oct 13, 2017
Defaults is http and 4381 for wider compatability.
Should fix nadavbar#11 and maybe nadavbar#10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant