ShareShortcuts

iMessage2Spotify

iannotian
Dupliquer « iMessage2Spotify »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que iannotian soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
36K
Enregistré
2
Actions
55
Catégorie
Music
Version
1.0
Langue
EN

Aperçu

Instantly add Spotify songs from iMessage links to your playlist–effortlessly and in the background.

Do your friends send you a lot of Spotify links through iMessage? Do you wish you could have those songs sent to a playlist automatically, so that you can listen to all of them later? If so, iMessage2Spotify is for you.

[⚠️ REQUIRED!] Installation Instructions

NOTE: This Shortcut requires a one-time initial setup to authorize adding songs to your Spotify account. It will not work if you do not set it up first.

  • Allow the shortcut to add Playlists to your Spotify account by tapping on iMessage2Spotify in your Shortcuts app after you install it.
  • Add two Personal Automations that "Run Immediately" on a received message: one for messages containing spotify.link and another for messages containing open.spotify.com/track
  • Your Personal Automation must be configured to use the incoming message as input to the Shortcut. It should look like this.

After setup, for every song link that you receive via iMessage, the shortcut will add a song to a iMessage2Spotify playlist in your Spotify.

Having problems?

Possible troubleshooting steps:

  • Try deleting the imessage2spotify.json file in your iCloud Drive/Shortcuts/ folder to reset everything, and then run iMessage2Spotify again.
  • Try logging out and back into Spotify Web via Safari if you have issues authorizing during setup.
  • If you're on iOS 16+, your Personal Automation must be configured to use the incoming message as input to the Shortcut. It should look like this.
  • If it used to trigger on messages, but doesn't anymore, it could be because Spotify changed their share links in March 2023. Add a Personal Automation for messages containing spotify.link. See this GitHub issue for more details.

Still having issues? Post an issue on GitHub and tag @iannotian.

Uninstall

If you wish to revoke iMessage2Spotify's playlist read/write access (which will disable this shortcut's functionality), go to https://www.spotify.com/us/account/apps/ and press Remove Access.

Also, delete the shortcut and the file at Files/iCloud Drive/Shortcuts/imessage2spotify.json.

Source code on GitHub

Nouveautés

Version 1.0

First release

Historique des versions
1.0 31 déc. 2022

First release

Ce qu’il fait

55 actions
  1. URL
  2. Get Component of URL
  3. Replace Text
  4. List
  5. Combine Text
  6. Set Variable
    TrackUri
  7. Text
  8. Set Variable
    baseUrl
  9. Get File
  10. If
  11. Show Alert
  12. Show Web Page
  13. Get Dictionary from Input
  14. If
  15. Get Contents of URL
    https://api.spotify.com/v1/me
  16. Set Dictionary Value
  17. Get Contents of URL
    https://api.spotify.com/v1/users/…/playlists
  18. Set Dictionary Value
  19. Save File
  20. Show Alert
  21. Text
  22. Copy to Clipboard
  23. If
  24. Show Alert
  25. Stop This Shortcut
  26. If
  27. If
  28. Show Alert
  29. Text
  30. Copy to Clipboard
  31. Stop This Shortcut
  32. Get Text from Input
  33. Get Dictionary from Input
  34. Set Variable
    ExistingTokens
  35. Get Details of Files
  36. If
  37. If
  38. Get Contents of URL
    …/api/spotify/save/…
  39. If
  40. Get Contents of URL
    https://api.spotify.com/v1/users/…/playlists
  41. Set Dictionary Value
  42. Save File
  43. Get Contents of URL
    https://api.spotify.com/v1/playlists/…/tracks
  44. If
  45. Show Alert
  46. If
  47. Get Dictionary from Input
  48. Get Contents of URL
    …/api/spotify/refresh?token=…
  49. Set Variable
    NewTokens
  50. Set Dictionary Value
  51. Set Dictionary Value
  52. If
  53. Set Dictionary Value
  54. Save File
  55. Get Contents of URL
    …/api/spotify/save/…

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Ça pourrait aussi te plaire

Tout afficher
Publicité