markusfisch / BinaryEye

Yet another barcode scanner for Android
https://play.google.com/store/apps/details?id=de.markusfisch.android.binaryeye
MIT License
1.42k stars 117 forks source link

Idea: Add Spotify Codes #368

Closed Dtrieb closed 4 months ago

Dtrieb commented 1 year ago

What do you think about the idea to add Spotify Codes?

https://www.spotifycodes.com/index.html

markusfisch commented 1 year ago

Hm, I just see "Not Found" when I visit this URL 🤔

What are Spotify Codes?

Dtrieb commented 1 year ago

Hm, I just see "Not Found" when I visit this URL 🤔

Damn you have to remove the index.html https://www.spotifycodes.com

What are Spotify Codes?

Codes from Spotify to open songs, playlists, etc. See the website.

markusfisch commented 1 year ago

Ah, thanks for the clarification! 👍 Didn't know this.

Unfortunately this looks like proprietary bar code format. I didn't find a technical specification or description, and while it's probably possible to reverse engineer how it works, the question is why bother? 😉 What could it be good for to read this bar code? 🤔

spacesynth commented 4 months ago

I am not saying we need this, or don't need this. I just found the format interesting and searched if someone reversed it:
https://github.com/ozgecinko/SpotifyCodeGenerator

Medium post explaining the barcode format, archived for convenience:
https://github.com/boonepeter/boonepeter.github.io/blob/master/content/posts/spotify-codes-part-2.md
https://archive.ph/pQHa1
https://archive.ph/XBlVt
https://stackoverflow.com/questions/62121301/encoding-spotify-uri-to-spotify-codes/63479041#63479041

What could it be good for to read this bar code?

Allow me to joke, the purpose of these codes is, of course to force people use the proprietary app to get the URI instead of free ones ;)

markusfisch commented 4 months ago

Thanks for the links! Really interesting! 🤔

However, this is probably more for ZXingCpp, the barcode library this app is using 😉

@axxel would you be interested in this?

axxel commented 4 months ago

Thanks for pinging me. Before I saw the link list, I was hunting for some information myself and also ended up at

But understanding that even if you ended up detecting and decoding the barcode, you'd still only get the "meadia reference" number which you can only translate into a spotify URI with an active account and an online lookup in their database. So decoding this in zxing-cpp does not sound very useful at all to me. Bottom line: I'll not invest any time in this. ;)

markusfisch commented 4 months ago

@axxel Thanks for taking a look anyway! I can't see how that media reference number would be useful, too.