Hello everyone,
I’m trying to find a way to play soundcloud playlists in one of my media_player.
media_extractor provides the option PLAYLIST MUSIC as a media_content_type but I guess it can’t play soundcloud playlists directly. That options probably only works for .m3u and alike.
My current solution is to manualy store all track-urls from the soundcloud playlist in a list and pick one randomly when triggered in a script.
- service: media_extractor.play_media
data_template:
entity_id: media_player.buro_sym2
media_content_type: music
media_content_id: >-
{{['https://soundcloud.com/ejmiswarehouse/ejmi-buk-corner-garbicz-festial-2019','https://soundcloud.com/evilhouse1/overdosing-sessions-024-alex-schaufel-diynamic-podcast','all the other urls']|random }}
Unfortunatly some songs wont be played with media_extractor and I can’t figure out why.
Does someone has a better idea how to play soundcloud playlists? Or has someone an idea why some soundcloud-songs are not working when called via media_extractor?
For example:
From the playlist: https://soundcloud.com/jedentageinset/sets/garbicz-festival-2019
this track wont work: https://soundcloud.com/peter-schumann/garbicz-2019
while this track works: https://soundcloud.com/paboona/garbicz-2019-paboona-roswitha
Both tracks have the same attributes on soundcloud:
license: all-rights-reserved
public: True
purchase_title: None
purchase_url: None
secret_token: None
sharing: public
Would be great if s.o. has any tips.