sagens42 / googlemusicapi.nodejs Goto Github PK
View Code? Open in Web Editor NEWUnofficial Node.js API for Google Play Music
Unofficial Node.js API for Google Play Music
Is there a way to get the album art through this API or another one in NodeJS?
Hi,
I tried to test this promising looking module. So I installed it through NPM.
When I ran the example I got the following error:
..\node_modules\GoogleMusicApi\index.js:1
ts, require, module, __filename, __dirname) { exports.GoogleMusicApi.GoogleMus
TypeError: Cannot read property 'GoogleMusicApi' of undefined
at Object. (...\node_modules\GoogleMusicApi\index.js:1:85)
Before tampering with your code I just wanted to let you know what my initial experience was with the module.
Also a suggestion: I would use https://github.com/berryboy/google-oauth for the Google authentication instead of passing the password as a string. But that's just a suggestion.
Im running on raspberry pi (raspbian)
on node v0.11.9
Im getting this error:
"/home/pi/kethcar/node_modules/googlemusicapi/index.js:83
response.headers['set-cookie'] && response.headers['set-cookie'].forEach(fu
^
TypeError: Cannot read property 'headers' of null
at /home/pi/kethcar/node_modules/googlemusicapi/index.js:83:12
at Request. (/home/pi/kethcar/node_modules/googlemusicapi/index.js:133:5)
at Request.EventEmitter.emit (events.js:101:17)
at Request.mixin._fireError (/home/pi/kethcar/node_modules/googlemusicapi/node_modules/restler/lib/restler.js:204:10)
at ClientRequest. (/home/pi/kethcar/node_modules/googlemusicapi/node_modules/restler/lib/restler.js:243:14)
at ClientRequest.EventEmitter.emit (events.js:98:17)
at TLSSocket.socketErrorListener (_http_client.js:234:9)
at TLSSocket.EventEmitter.emit (events.js:120:20)
at TLSSocket._tlsError (_tls_wrap.js:309:10)
at TLSWrap.ssl.onerror (_tls_wrap.js:233:12)"
Before purchasing Google Play Music, I'd like to know more about the song URL provided by this API. Is it a URL to the actual file source? What format is it in (hopefully MP3)? Can it be passed through an HTML5 Audio Player? If not, what's the best way to present it in our web application?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.