hypertunes-spotify

1.1.0 • Public • Published

hypertunes-spotify

A Spotify plugin for HyperTunes

Requirements

Libspotify must be installed:

Mac

Make sure you have Homebrew installed, and...

brew install homebrew/binary/libspotify
sudo ln -s /usr/local/opt/libspotify/lib/libspotify.12.1.51.dylib /usr/local/opt/libspotify/lib/libspotify

You must also get an app key, here, and put it in this plugin's folder. Sorry, I can't give you mine (per the Spotify Developer Terms of Service).

Installation

I'll add an easy way to install plugins in HyperTunes soon, but for now:

Open a terminal (or command prompt) and go to your HyperTunes plugins folder (/Users/USERNAME/Library/Application Support/HyperTunes/plugins on macOS, C:\Users\USERNAME\AppData\Roaming\HyperTunes\plugins on Windows, /home/USERNAME/.config/HyperTunes/plugins or /home/USERNAME/.HyperTunes/plugins on Ubuntu/Linux). Run the following:

npm install hypertunes-spotify
 
# more info here: https://github.com/electron/electron/blob/master/docs/tutorial/using-native-node-modules.md#using-npm 
# for Windows, replace `export` with `set` 
 
# Electron's version. 
export npm_config_target=1.2.3
# The architecture of Electron, can be ia32 or x64. 
export npm_config_arch=x64
# Download headers for Electron. 
export npm_config_disturl=https://atom.io/download/atom-shell
# Tell node-pre-gyp that we are building for Electron. 
export npm_config_runtime=electron
# Tell node-pre-gyp to build module from source code. 
export npm_config_build_from_source=true
# Install all dependencies, and store cache to ~/.electron-gyp. 
# I don't know what the Windows equivalent for this is, sorry. 
HOME=~/.electron-gyp npm install

Note

Currently, using this plugin (selecting it in the sidebar), causes HyperTunes' memory usage to double from 200mb to 400mb. I believe it has to do with the Web Audio API, possibly the buffers aren't being released or something like that. Anyways, this is just a warning, but if you have plenty of memory on your PC/Mac, it shouldn't be a problem.

Package Sidebar

Install

npm i hypertunes-spotify

Weekly Downloads

0

Version

1.1.0

License

MIT

Last publish

Collaborators

  • facekapow