Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

SoundCloud in Linux (With MPD)?

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

SoundCloud in Linux (With MPD)?

#1 Post by bester69 »

Hi,

Ive seen only cantata seems to have well implemented this plugin, but it seems to come embedded with the player..

Why gmpc or amarok doesnt come with it?.. I think things are not being doing properly.. :?
Last edited by bester69 on 2019-04-03 23:54, edited 1 time in total.
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: SoundCloud in Linux?

#2 Post by sunrat »

bester69 wrote:Hi,

Ive seen only cantata seems to have well implemented this plugin, but it seems to come embedded with the player..

Why gmpc or amarok doesnt come with it?.. I think things are not being doing properly.. :?
You are welcome to code a plugin yourself if you need it. :wink:
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: SoundCloud in Linux?

#3 Post by stevepusser »

You already have the code from Cantata, just adapt it for the music player of your choice! :D :D :D
MX Linux packager and developer

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: SoundCloud in Linux?

#4 Post by debiman »

mpv + youtube-dl.

mpd can also play their links directly.

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: SoundCloud in Linux?

#5 Post by bester69 »

debiman wrote:mpv + youtube-dl.

mpd can also play their links directly.
Cool :)

Thanks Debi,
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: SoundCloud in Linux?

#6 Post by bester69 »

Another great way to play Soundcloud,

I's to use MPD + MOPIDY-SOUDCLOUD (Extension)
https://docs.mopidy.com/en/latest/installation/debian/

Code: Select all

wget -q -O - https://apt.mopidy.com/mopidy.gpg | sudo apt-key add -
sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/stretch.list
sudo apt-get update
sudo apt-get install mopidy
sudo apt-get install mopidy-soundcloud
Then, we need to autogenerate auth. cretification for soundcloud.:
https://www.mopidy.com/authenticate/
Image

Then we can create soundlcoud playlists in our soundcloud account, and go to Cantata (MPD client), and have them available for playing, or we might just use mopidy webextensions and play them from there.:

MPD Clients for Mopidy.:
https://docs.mopidy.com/en/latest/clients/mpd/

Code: Select all

sudo apt-get install cantata
MPD Extensions for http Mopidy.:
https://docs.mopidy.com/en/latest/ext/web/

Code: Select all

pip install Mopidy-MusicBox-Webclient
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: SoundCloud in Linux?

#7 Post by bester69 »

Another great way..:

My Cloud Player (Android dlna render)
https://play.google.com/store/apps/deta ... loudplayer

send to

Kodi (linux)

Perhaps, this is the best solution to listen soundcloud in linux with low CPU demand
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: SoundCloud in Linux?

#8 Post by bester69 »

SoundCLoud with MPD throught KODI (dlna).:
bester69 wrote:Another great way..:

My Cloud Player (Android dlna render)
https://play.google.com/store/apps/deta ... loudplayer

send to

Kodi (linux)

Perhaps, this is the best solution to listen soundcloud in linux with low CPU demand

We just need to use mpc in a script as a external player with kodi.:

/home/myuser/.kodi/userdata/playercorefactory.xml

Code: Select all

<playercorefactory>
        <players>
               <player name="VLC" type="ExternalPlayer" audio="true" video="true">
                        <filename>"/home/myuser/scripts/mpckodi.sh"</filename>
                        <hidexbmc>false</hidexbmc>
                        <playcountminimumtime>120</playcountminimumtime>
                </player>
                          
        </players>
        <rules action="prepend">
<!---
**********                   **********
****<filename>"/usr/bin/smplayer -fullscreen"</filename>
********** EDIT THIS SECTION **********
**********                   **********
-->
                <rule protocols="smb" player="VLC" />
                <rule dvdimage="true" player="VLC"/>
                <rule protocols="rtmp" player="VLC"/>
                <rule protocols="rtsp" player="VLC" />
                <rule protocols="sop" player="VLC" />
                <rule internetstream="true" player="VLC" />
                <rule video="true" player="VLC"/>
                <rule audio="true" player="VLC"/>
                  <!-- Default for anything else not listed -->
        </rules>
</playercorefactory>
And The script to use mpc as an Kodi's external player.:
mpckodi.sh

Code: Select all

#!/bin/bash
#
MPDM="/home/myuser/Música"
PATH="/bin:/usr/bin:/usr/local/bin:/home/myuser/.local/bin"
export MPD_HOST="192.168.1.128"

mpduri="$1#"
TAG=$(youtube-dl -i --get-filename $1) 
cadena="{\"title\":\"$TAG\"}"
echo "$cadena"
mpduri="$mpduri$cadena"
mpc random off
mpc insert "$mpduri"
mpc next
mpc play

My Cloud Player (Android dlna render)
https://play.google.com/store/apps/deta ... loudplayer

Image

Cantata Player (MPD client)
Image
Last edited by dilberts_left_nut on 2019-04-04 06:35, edited 1 time in total.
Reason: removed spam link
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: SoundCloud in Linux (With MPD)?

#9 Post by pylkko »

Mopidy also has a soundcloud plugin

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: SoundCloud in Linux (With MPD)?

#10 Post by bester69 »

pylkko wrote:Mopidy also has a soundcloud plugin
Hi pylkko,

Its already commented it above that solution.. I tried mopidy for a while, but it didnt convinced me very much.. Its more design oriented for web interface clients.. and I saw mopidy intefaces (web extensions) are still kind of beta.
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: SoundCloud in Linux (With MPD)?

#11 Post by pylkko »

bester69 wrote:
pylkko wrote:Mopidy also has a soundcloud plugin
Hi pylkko,

Its already commented it above that solution.. I tried mopidy for a while, but it didnt convinced me very much.. Its more design oriented for web interface clients.. and I saw mopidy intefaces (web extensions) are still kind of beta.
No, I don't think that is true, because it is compatible with mpd, that is all existing mpd clients should be able to run it (although it is true that most people run it using a web client nowadays, I guess).

IIRC this was one of the better web clients
https://pypi.org/project/Mopidy-Mobile/

Post Reply