From 0af1dbf618688c6bbc428f08bf21de8e5d6ab870 Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Fri, 7 Feb 2020 22:29:04 +0100 Subject: [PATCH 1/4] Add Spotify retrive URI instructions --- source/_integrations/spotify.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/source/_integrations/spotify.markdown b/source/_integrations/spotify.markdown index f36fb5ca08e7..fceec682be7c 100644 --- a/source/_integrations/spotify.markdown +++ b/source/_integrations/spotify.markdown @@ -72,6 +72,7 @@ After you have set up the above: You can send playlists to Spotify using the `"media_content_type": "playlist"`, which are part of the [media_player.play_media](/integrations/media_player/#service-media_playerplay_media) service. +The `media_content_id` can be obtained from the spotify desktop-app by clicking on the more options ("...") next to the album art picture, selecting "share" and then "Copy Spotify URI". This schould look like: "spotify:playlist:??????????????????????". The id indicated by the ??? can also be retrived from the last part of "share" --> "Copy Playlist Link" (also available in the spotify phone and web app) and schould be 22 characters long. ## Unsupported Devices From d862c693b4eee275ac00069ab9659370a7b5bc9c Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Mon, 10 Feb 2020 13:54:07 +0100 Subject: [PATCH 2/4] correction to retrieving media_content_id examle playlist: "Love Songs & Chill" "Copy Spotify URI" gives: spotify:playlist:4QuJ2DbcTe7R8lzqfNXz7v this works as `media_content_id` "Copy Playlist Link" gives: https://open.spotify.com/playlist/4QuJ2DbcTe7R8lzqfNXz7v?si=cUKngvAER3KK3BHgNayOEA this does not work as `media_content_id` and gives an error in HomeAssistant However if you remove everthing after the question mark ? is does work: https://open.spotify.com/playlist/4QuJ2DbcTe7R8lzqfNXz7v --- source/_integrations/spotify.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/spotify.markdown b/source/_integrations/spotify.markdown index fceec682be7c..0941c417a14f 100644 --- a/source/_integrations/spotify.markdown +++ b/source/_integrations/spotify.markdown @@ -72,7 +72,7 @@ After you have set up the above: You can send playlists to Spotify using the `"media_content_type": "playlist"`, which are part of the [media_player.play_media](/integrations/media_player/#service-media_playerplay_media) service. -The `media_content_id` can be obtained from the spotify desktop-app by clicking on the more options ("...") next to the album art picture, selecting "share" and then "Copy Spotify URI". This schould look like: "spotify:playlist:??????????????????????". The id indicated by the ??? can also be retrived from the last part of "share" --> "Copy Playlist Link" (also available in the spotify phone and web app) and schould be 22 characters long. +The `media_content_id` can be obtained from the spotify desktop-app by clicking on the more options ("...") next to the album art picture, selecting "share" and then "Copy Spotify URI" or "Copy Playlist Link" (also available in the spotify phone and web app). If you use "Copy Playlist Link" remove everything after and including the question mark '?' in the link. ## Unsupported Devices From 4dad722d2c5be712021f92c808397a479eacd0e3 Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Sat, 15 Feb 2020 16:28:17 +0100 Subject: [PATCH 3/4] Capital Spotify Co-Authored-By: Franck Nijhof --- source/_integrations/spotify.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/spotify.markdown b/source/_integrations/spotify.markdown index 0941c417a14f..62798fd88d8c 100644 --- a/source/_integrations/spotify.markdown +++ b/source/_integrations/spotify.markdown @@ -72,7 +72,7 @@ After you have set up the above: You can send playlists to Spotify using the `"media_content_type": "playlist"`, which are part of the [media_player.play_media](/integrations/media_player/#service-media_playerplay_media) service. -The `media_content_id` can be obtained from the spotify desktop-app by clicking on the more options ("...") next to the album art picture, selecting "share" and then "Copy Spotify URI" or "Copy Playlist Link" (also available in the spotify phone and web app). If you use "Copy Playlist Link" remove everything after and including the question mark '?' in the link. +The `media_content_id` can be obtained from the Spotify desktop-app by clicking on the more options ("...") next to the album art picture, selecting "share" and then "Copy Spotify URI" or "Copy Playlist Link" (also available in the Spotify phone and web app). If you use "Copy Playlist Link" remove everything after and including the question mark '?' in the link. ## Unsupported Devices From b461a5174735a0402255fd3508d174e9419d3091 Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Mon, 9 Mar 2020 10:26:10 +0100 Subject: [PATCH 4/4] Not needed anymore since this has been fixed --- source/_integrations/spotify.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/spotify.markdown b/source/_integrations/spotify.markdown index 62798fd88d8c..b9de890097a1 100644 --- a/source/_integrations/spotify.markdown +++ b/source/_integrations/spotify.markdown @@ -72,7 +72,7 @@ After you have set up the above: You can send playlists to Spotify using the `"media_content_type": "playlist"`, which are part of the [media_player.play_media](/integrations/media_player/#service-media_playerplay_media) service. -The `media_content_id` can be obtained from the Spotify desktop-app by clicking on the more options ("...") next to the album art picture, selecting "share" and then "Copy Spotify URI" or "Copy Playlist Link" (also available in the Spotify phone and web app). If you use "Copy Playlist Link" remove everything after and including the question mark '?' in the link. +The `media_content_id` can be obtained from the Spotify desktop-app by clicking on the more options ("...") next to the album art picture, selecting "share" and then "Copy Spotify URI" or "Copy Playlist Link" (also available in the Spotify phone and web app). ## Unsupported Devices