iOS Shortcuts not working from Share

Apologies if this has been brought up, I didn’t do a very deep search.

I use iOS Shortcuts with Trakt to automatically log TV episodes and movies I watch to Notes. I execute the Shortcut from the Share Sheet for the movie or show. Around a month or so, this suddenly stopped working with movies and now has stopped working with TV episodes as well. The “Get Contents of URL” action (with “Get Name”) is now always returning “Trakt Web: Track Your Shows & Movies” for everything instead of the movie/show title. This is happening with both the Trakt app and the website, and even with third party apps like Rippple. Does anyone know a way to get this to work the way it used to?

I assume this has something to do with the redesign. The URL is doing a JavaScript redirect or something, instead of serving up the actual webpage. If this is not fixed, then Trakt is pretty much useless to me. I quit TV Time some time ago because their Share stopped working, and now the same thing is happening here. I am not happy.

Are you able to share the shortcut or some specifics of which url you’re getting contents of? Else you may be able to leverage the actual public API rather than a website url.

Thanks for the response! Here’s the iCloud link for one of the Shortcuts, hope it works.

And here’s an example URL:

Acknowledged on the public API - that was ChatGPT’s suggestion as well. Was hoping not to have to get that complicated, but it may come down to that.

Yeah I think the redirects may cause this to stop working.
I’d try create an app and get a key from https://trakt.tv/oauth/applications. You can use something like test://trakt-auth for the redirect

This shortcut has the call set up to get a hardcoded episode based on the one you sent, just replace the API key and other properties based on your shortcuts input, might just work with a little more logic and technically be better than trying to essentially scrape the website.

Thanks! I will give this a try.

1 Like

Got this working with the API, thanks. Here is my revised TV episode shortcut:

And here is the one I did for movie titles:

1 Like

For some reason, the movie one stopped working last week though the TV one is okay. I keep getting back “400 bad request, cloudflare”. Any ideas? This is happening both from WiFi and cellular. TV one still works okay.

https://api.trakt.tv/movies/[slug]?extended=full

Never mind, I figured it out. I was sending the slug without the year. Should be:
https://api.trakt.tv/movies/[slug_with_year]?extended=full