soulfx / gmusic-playlist.js

a javascript version of gmusic-playlist
MIT License
113 stars 16 forks source link

Errors with import #2

Open liquidvisual opened 8 years ago

liquidvisual commented 8 years ago

Any ideas? Thanks.

["preparing to read file"]
["returning header structures"]
["checking for header"]
["returning header structures"]
["parsed 1 playlists"]
["searching..."]
[TypeError: Cannot read property '0' of undefined
    at Songlist.fromGMusic (eval at <anonymous> (un…]
["eye of the tiger"]
[TypeError: Cannot read property '0' of undefined
    at Songlist.fromGMusic (eval at <anonymous> (un…]0: TypeError: Cannot read property '0' of undefined
    at Songlist.fromGMusic (eval at <anonymous> (unknown source), <anonymous>:602:19)
    at eval (eval at <anonymous> (unknown source), <anonymous>:721:76)length: 1__proto__: Array[0]
["beat it"]
[TypeError: Cannot read property '0' of undefined
    at Songlist.fromGMusic (eval at <anonymous> (un…]
["billie jean"]
[TypeError: Cannot read property '0' of undefined
    at Songlist.fromGMusic (eval at <anonymous> (un…]
["you ain't seen nothing yet"]
[TypeError: Cannot read property '0' of undefined
    at Songlist.fromGMusic (eval at <anonymous> (un…]
["mambo no 5"]
["song search complete for 1 playlists"]
["creating playlist"]
["split songlist"]
["creating empty Sun Jan 17 2016 playlist"]
["creating 1 playlists"]
Uncaught (in promise) TypeError: Cannot read property '0' of undefined(…)
soulfx commented 8 years ago

do you have a subscription?

what does the structure of the response from the search request look like? if you enable log level 3 it'll output the responses it obtained from the service to the log.

you could also check the network traffic for the search requests and see what's going on there.

does exporting work?

liquidvisual commented 8 years ago

Nevermind, I managed to get it working. I just signed out of my account(s) and back in - seemed to do the trick. Thanks for this great tool - saved me so much time! :)

soulfx commented 8 years ago

thanks for the feedback. good idea on the logging out and back in. that most likely allowed the session info to refresh and correctly get initialized.

there is something that could probably be done in the code to handle this case. i know that there is a potential that a session expires and the script doesn't pick up on it until the page is refreshed. maybe the two are related. i'll leave this open for further investigation.