Skip to main content
Topic: Spotify for foobar (foo_input_spotify) New! (Read 18442 times) previous topic - next topic
0 Members and 2 Guests 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)

 
SimplePortal 1.0.0 RC1 © 2008-2018