Jump to content

Discogs.com Explorer


Recommended Posts

Thanks.  Similar problem with Last.fm Look-up as well.  I think their API changed.  Please update these awesome workflows.

 

It looks like the updated 1.13 never got fully pushed through the intertubes. Can you try updating to the current version that's on Packal? Discogs updated their API again and removed all the complexity that version 1.11 addressed. This workflow is back to being very simple again.

 

Regarding Last.fm: They're still in the middle of a massive website/API update and their API is broken all over the place. I may try to rebuild this workflow to use only the currently working parts, but that might end up being more trouble than it's worth, if it all changes again. Sadly, right now all I can do is monitor the help forums until they get their trouble sorted out.  :wacko:

 

Thanks!!

Link to comment

It works great.  It didn't require me to put in signature key or secret.  In the old one "| dex" keyword initiated the setup.  It doesn't exist in the version.  so I just put my Discog API key and signature inside your script workflow.  It works so far. 

 

I'm currently using another Last FM workflow on Alfred that works fine so yours should be workable as well. 

 

Thanks

Link to comment

You can revert to the included apikey if you like; Discogs has gone back to the simpler API process that it originally used and you only need the apikey that I include to make it work. There was a lot of back-and-forth when they were upgrading their API system and apparently they went back to something much easier to implement so I basically just reverted to my original version of the workflow. You are correct that the whole OAuth initialization setup process is no longer part of this workflow, thank goodness.

 

I also fixed my Last.fm workflow to use a few different API calls that get around the broken ones (artist.search still doesn't work). Out of curiosity, which Last.fm workflow are you using? The only other one I found is here and it doesn't seem to work anymore.

Link to comment
  • 8 years later...
Posted (edited)

Hi there fellow "Alfredos".

 

For anyone trying to find a solution in 2024 to this workflow no longer working (even after entering your own Discogs API key and secret in settings) - I might have one for you.

For some reason it wasn't pulling any results for me, so I had to debug the Apple script provided and essentially just change couple of lines in it, and then it started working for me.

 

Find the following 2 lines in the DiscogsExplorer.applescript (you can open it from within the workflow step "dex" in Alfred):

 

set queryString to wf's q_encode_url(query as string)
set queryString to "&q=" & queryString

 

Comment those two lines like this (in case you'll need to return script to original:

 

--set queryString to wf's q_encode_url(query as string)
--set queryString to "&q=" & queryString

 

Then add the following lines just below:

 

set queryString to "&q=" & query
set newString to {}
repeat with i in queryString
  if (i as string) is " " then
    set end of newString to "%20"
  else
    set end of newString to (i as string)
  end if
end repeat
newString as string
set queryString to newString

 

Voila! The part in the middle handles the ability so search with the spaces in artist names. I tried fixing the "&" but it wouldn't work, but I've noticed if you use the word "and" in your search query instead of "&" - Discogs deals with it properly and still provides you with "Dom & Roland" kind of results.

 

Hope it helps you. It did for me after hours of banging my head with this workflow.

 

Kudos to original dev!
 

Cheers

 

 

 

Edited by viberations
Link to comment
2 hours ago, viberations said:

Hi there fellow "Alfredos".

. . . 

Hope it helps you. It did for me after hours of banging my head with this workflow.

 

Hi! I'm sorry to hear that the workflow stopped working for you! I'll take a look at your updated script and see about incorporating it into the official release. If you don't mind, can you give me one or two examples of searches that were giving you empty results but now are working after your update? Is it only artist names that have a variation of "&" or "and" in the name? I'd also really appreciate knowing what version of Alfred and this workflow you have running.

 

I don't use this workflow extremely often but it seems to be working for me. I think I was working on an update that I never published, possibly the new version already fixed the problem and I just need to push that out finally. 🫥

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...