Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Spotify for foobar (foo_input_spotify) New! (Read 57016 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Spotify for foobar (foo_input_spotify) New!

Reply #25
Have you looked at the foobar2000 console window (View > Console)?
Code: [Select]
Components loaded in: 0:00.465544
Configuration read in: 0:00.011697
User Interface initialized in: 0:00.218112
Graphic Equalizer: initialized (SSE support: 3)
Startup time : 0:00.850884
Seekbar: taking GDI path.
Seekbar: Frontend initialized.
Opening track for playback: "spotify:user:typhoon859:playlist:3E7ldN455B6scANl4LpCUW" / index: 3
spotify log: 07:26:46.565 E [c:/Users/spotify-buildagent/BuildAgent/work/1e0ce8a77adfb2dc/client/core/network/proxy_resolver_win32.cpp:215] WinHttpGetProxyForUrl failed
spotify log: 07:26:46.582 I [ap:1752] Connecting to AP ap.gslb.spotify.com:4070
spotify log: 07:26:46.620 I [ap:1226] Connected to AP: 193.235.203.36:4070
spotify log: 07:26:46.625 I [offline-mgr:2084] Storage has been cleaned
Wave cache: generic IO exception (Access denied) for "spotify:user:typhoon859:playlist:3E7ldN455B6scANl4LpCUW" / index: 3
spotify log: 07:26:47.037 E [ap:4172] ChannelError(0, 1, link-tracks)
spotify log: 07:26:47.056 E [ap:4172] ChannelError(5, 0, playlist)
spotify log: 07:26:47.336 E [ap:4172] ChannelError(0, 1, link-tracks)
spotify log: 07:26:47.593 E [ap:4172] ChannelError(0, 1, link-tracks)
spotify log: 07:26:47.847 E [ap:4172] ChannelError(0, 1, link-tracks)
spotify log: 07:26:51.083 E [ap:4172] ChannelError(38, 1, playlist)
spotify log: 07:26:51.083 E [ap:4172] ChannelError(39, 1, playlist)
spotify log: 07:26:58.628 I [c:/Users/spotify-buildagent/BuildAgent/work/1e0ce8a77adfb2dc/client/core/protocol/file_streamer_simple.cpp:769] Request for file 38551ae9469347089f35fa61b835dbdded9a3c74 complete (code: 0)
spotify log: 07:27:29.973 E [ap:4172] ChannelError(2, 1, playlist)
spotify log: 07:27:29.973 E [ap:4172] ChannelError(3, 1, playlist)
spotify log: 07:27:30.109 E [ap:4172] ChannelError(1, 0, playlist)

 

Re: Spotify for foobar (foo_input_spotify) New!

Reply #26
Just to be sure, but do you have an album art viewer or a playlist view with album art support in your layout?

Re: Spotify for foobar (foo_input_spotify) New!

Reply #27
Just to be sure, but do you have an album art viewer or a playlist view with album art support in your layout?
I mean, I recognize the specificity of your question, but I can only imagine the answer is yes since I can see album art displayed from local files XD

Here's a post of where I posted screenshots of my UI, in case you missed it: https://hydrogenaud.io/index.php/topic,113538.msg934687.html#msg934687

Re: Spotify for foobar (foo_input_spotify) New!

Reply #28
Well, there is obviously an album art viewer in that screenshot. The reason I was asking is because there was no indication in your console output that anything  tried to load album art for a Spotify URI. Something like this:
Code: [Select]
Opening track for loading album art from Spotify: spotify:album:3gN3L3XdCnZv4F784sq2C5
Creating album art extractor for Spotify album link
Initializing album art extractor for Spotify link
Loading cover image from Spotify
The two most likely reasons for this would be (a) not having an album art viewer and (b) using a version of the plugin which has no logging. Since I just grabbed the current build from my GitHub repo and it produced the above output, I guess you might be the victim of your browser or a proxy caching an old version. Adding a visible build number to the plugin is still on my to-do list.

Re: Spotify for foobar (foo_input_spotify) New!

Reply #29
Well, there is obviously an album art viewer in that screenshot. The reason I was asking is because there was no indication in your console output that anything  tried to load album art for a Spotify URI. Something like this:
Code: [Select]
Opening track for loading album art from Spotify: spotify:album:3gN3L3XdCnZv4F784sq2C5
Creating album art extractor for Spotify album link
Initializing album art extractor for Spotify link
Loading cover image from Spotify
The two most likely reasons for this would be (a) not having an album art viewer and (b) using a version of the plugin which has no logging. Since I just grabbed the current build from my GitHub repo and it produced the above output, I guess you might be the victim of your browser or a proxy caching an old version. Adding a visible build number to the plugin is still on my to-do list.
Perhaps I'm missing something here again, but couldn't I just update whatever components if they're out of date, or this isn't the problem? XD

Re: Spotify for foobar (foo_input_spotify) New!

Reply #30
I had assumed you had already downloaded foo_input_spotify from here (the .fb2k-component file).


Re: Spotify for foobar (foo_input_spotify) New!

Reply #32
The local appdata folder is not created correctly when username has accented characters. For example it creates:

     C:\Users\Utilis�\AppData\Local\foo_input_spotify

while it should be:

          C:\Users\Utilisé\AppData\Local\foo_input_spotify

Re: Spotify for foobar (foo_input_spotify) New!

Reply #33
I think I'm missing something, but how do I actually use this? I installed it and can't find anything related to spotify in foobar (not in settings, not anywhere)

Re: Spotify for foobar (foo_input_spotify) New!

Reply #34
Go to Preferences/File/Add Location/

and write something like:      spotify:album:401DhjeJg1yVIfBN2A55JY

where 401DhjeJg1yVIfBN2A55JY is the album code. To get the album codes I open Spotify Web Player. You need a premium account.

It works fine.

Ys
Rozzo

Re: Spotify for foobar (foo_input_spotify) New!

Reply #35
Go to Preferences/File/Add Location/

and write something like:      spotify:album:401DhjeJg1yVIfBN2A55JY

where 401DhjeJg1yVIfBN2A55JY is the album code. To get the album codes I open Spotify Web Player. You need a premium account.

It works fine.

Ys
Rozzo
so there's no way for it to just load all of the artists/albums I've saved to spotify?

Re: Spotify for foobar (foo_input_spotify) New!

Reply #36
@Dexter_prog

afaik, Spotify's playlist size is limited to 10,000 songs.  You can get the URI's Rozzo mentions from any Spotify single song, single artist, or single playlist atm at:

"..." button | "share" | "copy Spotify URI".

FYI:

You can't get Spotify URI's or URLS for that matter (because they don't generate them unfortunately) for any COLLECTION of artists or playlist FOLDERS.  Hate it, hate it, hate it, HATE IT!  So if your artists / albums have less than 10,000 total songs you actually want to listen to or discover, then you're fine because you can throw it all on one playlist and grab the URI for that and throw it in foobar2k.  Otherwise you'll have to create individual playlists with <10k songs each (which I also hate and haven't completed because it's so tedious to do in the Spotify app). 

If you want to get a list of all your artists or albums, the only way I've figured out how is to use the web player and scroll all the way to the bottom until they are all loaded and use the dev tools to copy out the html, and then manually delete all the unneeded infos with regexes.  Hate it, hate it, HATE IT, HATE IT!  I've personally started but not finished splitting all my artist's music up into various playlists by genre, desktop vs mobile, and alphabetically just to accommodate Spotify's bad 10k limit decision.  Creating large playlists in Spotify is annoyingly slow and I've yet to find a 3rd party app that can do anything I find useful with playlists besides the one that removes duplicates.  If you can handle adding each new artist you like as you are listening, great, but I feel when listening at work or even at home, you can't practically distract yourself each time a new artist you like appears and add all their music to "<genre> - A to Ag" playlist, for example, without a lot of multitasking discipline and patience.  I'd pay twice as much each month for Spotify just to remove the 10k cap.  Or, if they automated the process of grabbing all artist's songs and put them in 3k-ish or less playlist folder sets by genre, alphabet, and/or other filters and allowed playlist folder URI's, life would be a golden dream.  Or further, if the foo_input_spotify author could figure out a way to do that and alleviate corporate controlled devs the task of doing something rebellious though sensible, life would be a unicorn's subconscious, even better!

It would be nice to know if any Spotify api that is still working allows access to playlist folders.  Then the author could add support to feed foo_input_spotify the Spotify web player URL for the artist's page and/or a playlist folder and get a full Foobar2k playlist of them all, though with playlist folders, you'd still be limited to 10k songs for each playlist.  Of course, one wouldn't want to update their plugin with such a heavy feature unless they knew api support for it would continue for the long term.

Also, if you are ok with discovering new artists and can stand listening through the Spotify app itself, you can create fairly small playlists that stick to a genre or stuff you like and then make a "playlist radio".  That's probably the most practical way I've discovered to date to fine tune listening variety and/or get the most musical-variety bang for your playlist-creation-effort buck, but, again, requires using the Spotify app because I'd guess there's no way to update a foobar2k playlist in real time every time a song changes and again update if the song is a thumbs down.  That said, even playlist radio tends to repeat songs too frequently for my tastes.

Btw, ultra-props to the plugin author as foo_input_spotify (and foo_youtube) have fully resurrected my interest in Foobar2k.  If  Milkdrop worked on wine/osx (please do not suggest projectM as shader stuff isn't fully working)....

ben

Re: Spotify for foobar (foo_input_spotify) New!

Reply #37
I had assumed you had already downloaded foo_input_spotify from here (the .fb2k-component file).
Hi! The link on the main page does not work anymore, can you upload it somewhere else?
I can't get playlist working unfortunately and i'm suspecting this might be the issue (i found the 0.6 version). I can add single songs but nothing else.
foo_input_spotify-v006.zip
this is the one i've downloaded, from 2016

here's the console output

Components loaded in: 0:05.357681
Configuration read in: 0:00.001960
User Interface initialized in: 0:00.048038
Startup time : 0:05.511828
Opening track for playback: "spotify:user:oklart:playlist:4N0RAhA6yHvvZWnq5WXtDD"
spotify log: 11:56:40.837 E [c:/Users/spotify-buildagent/BuildAgent/work/1e0ce8a77adfb2dc/client/core/network/proxy_resolver_win32.cpp:215] WinHttpGetProxyForUrl failed
spotify log: 11:56:40.841 I [user_cache:135] UserCache::initiateGetUsers() will query for 1 users
spotify log: 11:56:40.841 I [offline-mgr:2084] Storage has been cleaned
spotify log: 11:56:41.120 I [ap:1752] Connecting to AP ap.gslb.spotify.com:4070
spotify log: 11:56:41.383 I [ap:1226] Connected to AP: 104.199.65.162:4070
spotify log: 11:56:41.832 I [offline-mgr:2032] 0 files are locked. 0 images are locked
spotify log: 11:56:41.832 I [offline-mgr:2058] 0 files unlocked. 0 images unlocked
Unable to open item for playback (empty (or failed to load?) playlist):
"spotify:user:oklart:playlist:4N0RAhA6yHvvZWnq5WXtDD"
Opening track for playback: "spotify:track:1MzFmVDSl7Vm00f3Hw4Xfx"
spotify log: 12:19:20.762 I [c:/Users/spotify-buildagent/BuildAgent/work/1e0ce8a77adfb2dc/client/core/protocol/file_streamer_simple.cpp:769] Request for file 9ccc516ec919e10c4bf3c640b40e3d15ee798188 complete (code: 0)
spotify log: 12:19:20.946 I [c:/Users/spotify-buildagent/BuildAgent/work/1e0ce8a77adfb2dc/client/core/protocol/file_streamer_simple.cpp:769] Request for file 9ccc516ec919e10c4bf3c640b40e3d15ee798188 complete (code: 0)

Re: Spotify for foobar (foo_input_spotify) New!

Reply #38
trying to load an spotify URI directly by "add location" is now giving an object not found error:

Unable to open item for playback (Object not found):

but if I try to load an m-tags file pointing to a spotify uri everything works as before.

maybe spotify has changed something?


nevermind, I had tinkered with the full file buffering...

Re: Spotify for foobar (foo_input_spotify) New!

Reply #39
I am not sure if anyone is watching this thread, but I have the same issue as accxx.
Albums and tracks work fine, I get that same error for playlists.

I downloaded the fork and compiled from source to make sure I had latest code, but same issue.

If it was in c# I could debug it, but reading c++ is like reading chinese to me, idk what the issue could be. This plugin would be super useful if playlists worked.

Re: Spotify for foobar (foo_input_spotify) New!

Reply #40
Hi, I would be interested in continued development of this component, too, or at least fixing this bug. I can't even compile anything for now :-(.

Re: Spotify for foobar (foo_input_spotify) New!

Reply #41
Hi, I would be interested in continued development of this component, too, or at least fixing this bug. I can't even compile anything for now :-(.

Make sure you are pulling the fork: https://github.com/stengerh/foo_input_spotify

I used VS2017 - when I opened it up it told me the needed components to install - and then it upgraded it to compile to windows 10, not 8, and it compiled fine for me.

I believe the issue is libspotify hasn't been supported since 2017, you can't even download it anymore. So the plugin needs to be updated to use the web api, there's probably a c++ wrapper for it.




Re: Spotify for foobar (foo_input_spotify) New!

Reply #42
Surely it would be easier to export your playlist as a list of track ids which the component can still play - assuming it's possible!! Same end result but you might need some external tool/help getting there?? Must be easier than updating the component.


Re: Spotify for foobar (foo_input_spotify) New!

Reply #43
Surely it would be easier to export your playlist as a list of track ids which the component can still play - assuming it's possible!! Same end result but you might need some external tool/help getting there?? Must be easier than updating the component.

You are right - finally got around to writing the app - just a small app that takes a spotify playlist and outputs a m3u file with the tracks so that the plugin can play them.

https://github.com/paulb39/SpotifyToFoobar/releases/

Re: Spotify for foobar (foo_input_spotify) New!

Reply #44
Hi guys. My wife has a Spotify premium subscription, and I'm very interested in playing Spotify tracks through foobar, because on foobar I can do DSP stuff on the audio before outputting it.
@paulb39 , your app looks great, but how to use it ? Is there a manual or an example somewhere ?
Besides, where can I find the latest version of the foobar component ? Is it still working ? Is there a more recent component now ?

Anybody feel free to chime in. Thanks in advance !


Re: Spotify for foobar (foo_input_spotify) New!

Reply #46
Great! Didn't see it. Thanks @korth .
And as for foo_input_spotify, is this still the last version? https://github.com/FauxFaux/foo_input_spotify/wiki
It hasn't been updated since 2016. Is it still working? Or is there another component?

Re: Spotify for foobar (foo_input_spotify) New!

Reply #47
Great! Didn't see it. Thanks @korth .
And as for foo_input_spotify, is this still the last version? https://github.com/FauxFaux/foo_input_spotify/wiki
It hasn't been updated since 2016. Is it still working? Or is there another component?

Hey @wcs13 that is the latest version, its old and doesn't work with playlists, which is why I made the small app. I been using the plugin daily, it works fine for songs

Re: Spotify for foobar (foo_input_spotify) New!

Reply #48
That's amazing. Thanks, both of you.
Just one thing : is there a way NOT to get this message (attached pic) on each foobar startup ? It may become a bit boring over time.
I hope somebody can pick up on this old project so it doesn't end up dying. Spotify is still a thing, lol, and playing it through foobar with DSPs and such is great !

@paulb39 , so far I have added one individual test song via Ctrl-U ( https://open.spotify.com/track/3IN6NrMAkbpzOB93b6gj8s ).
It's been added to my playlist view, but with no tag info (no artist, no title), and I can't even add such info manually ("One file couldn't be updated. Access denied.")
Plus trying to play it results in a playback error ("Unsupported file format").
I wish I could enter some Spotify login info somewhere, but foobar isn't asking for it...

Re: Spotify for foobar (foo_input_spotify) New!

Reply #49
Oh, I guess those builds are debug builds. I don't get that message because I built the plugin from source. I uploaded the release binaries under https://github.com/paulb39/SpotifyToFoobar/releases

Idk how the plugin gets your spotify login, but I have the spotify app installed and I am logged into that, I do know you will get an access denied message if you don't have spotify premium.

You don't need to add songs via Ctrl+U, use my app and it'll make you a .m3u file that you can just import into foobar.