TooTallNate / node-spotify-web

Node.js implementation of the Spotify Web protocol
MIT License
697 stars 127 forks source link

Protobuf issue... #106

Open psychosteve opened 9 years ago

psychosteve commented 9 years ago

Hi having trouble exporting tracks. Tried the metadata.proto fix by yodiz but with no luck! :(

Here's the error I'm having...

Error: Illegal value for Message.Field .spotify.metadata.proto.AudioFile.format: 8 (not a valid enum value)
    at ProtoBuf.Reflect.Field.verifyValue (/Users/Lloyd/Desktop/spotydl/node_modules.darwin.x64/spotify-web/node_modules/protobufjs/ProtoBuf.js:2318:27)
    at Message.set (/Users/Lloyd/Desktop/spotydl/node_modules.darwin.x64/spotify-web/node_modules/protobufjs/ProtoBuf.js:1710:50)
    at ProtoBuf.Reflect.Message.decode (/Users/Lloyd/Desktop/spotydl/node_modules.darwin.x64/spotify-web/node_modules/protobufjs/ProtoBuf.js:2136:29)
    at ProtoBuf.Reflect.Field.decode (/Users/Lloyd/Desktop/spotydl/node_modules.darwin.x64/spotify-web/node_modules/protobufjs/ProtoBuf.js:2591:46)
    at ProtoBuf.Reflect.Message.decode (/Users/Lloyd/Desktop/spotydl/node_modules.darwin.x64/spotify-web/node_modules/protobufjs/ProtoBuf.js:2134:51)
    at Message.decode (/Users/Lloyd/Desktop/spotydl/node_modules.darwin.x64/spotify-web/node_modules/protobufjs/ProtoBuf.js:1979:41)
    at Function.protobufjs_parse_wrapper (/Users/Lloyd/Desktop/spotydl/node_modules.darwin.x64/spotify-web/lib/schemas.js:98:39)
    at Spotify._parse (/Users/Lloyd/Desktop/spotydl/node_modules.darwin.x64/spotify-web/lib/spotify.js:1287:20)
    at parseData (/Users/Lloyd/Desktop/spotydl/node_modules.darwin.x64/spotify-web/lib/spotify.js:591:18)
    at Spotify. (/Users/Lloyd/Desktop/spotydl/node_modules.darwin.x64/spotify-web/lib/spotify.js:651:16)
felixhammerl commented 9 years ago

yes, apparently spotify introduced a new file format. @TooTallNate this could probably be solved by #77 ? The workaround from #75 where he added dummy values to the protobuf schema no longer works. if i add a dummy value to the protocol buffer schema, it tells me that the track is not playable in my locale. can someone confirm?

Kh4l3tH commented 9 years ago

i already confirmed and found a way to circumvent this

R4wizard commented 8 years ago

I am also experiancing this issue.

samsnyder commented 8 years ago

I've started to get AudioFile values of 10 and 11 aswell.