SoundCloud in Linux (With MPD)?

If it doesn't relate to Debian, but you still want to share it, please do it here

SoundCloud in Linux (With MPD)?

Postby bester69 » 2018-11-12 17:06

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:You wont change my mind when I know Im right, Im not an ...
User avatar
bester69
 
Posts: 1413
Joined: 2015-04-02 13:15

Re: SoundCloud in Linux?

Postby sunrat » 2018-11-12 22:40

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
sunrat
 
Posts: 2750
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: SoundCloud in Linux?

Postby stevepusser » 2018-11-12 23:22

You already have the code from Cantata, just adapt it for the music player of your choice! :D :D :D
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Foliate 1.5.3, Minitube 3.1, wine-staging 4.12, Virtual Box 5.2.32 & 6.0.10, Pale Moon 28.6.1, Waterfox 56.2.12
User avatar
stevepusser
 
Posts: 11007
Joined: 2009-10-06 05:53

Re: SoundCloud in Linux?

Postby debiman » 2018-11-14 00:53

mpv + youtube-dl.

mpd can also play their links directly.
User avatar
debiman
 
Posts: 3064
Joined: 2013-03-12 07:18

Re: SoundCloud in Linux?

Postby bester69 » 2018-11-14 17:19

debiman wrote:mpv + youtube-dl.

mpd can also play their links directly.

Cool :)

Thanks Debi,
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
User avatar
bester69
 
Posts: 1413
Joined: 2015-04-02 13:15

Re: SoundCloud in Linux?

Postby bester69 » 2019-03-26 12:05

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:You wont change my mind when I know Im right, Im not an ...
User avatar
bester69
 
Posts: 1413
Joined: 2015-04-02 13:15

Re: SoundCloud in Linux?

Postby bester69 » 2019-04-03 21:22

Another great way..:

My Cloud Player (Android dlna render)
https://play.google.com/store/apps/details?id=com.mycloudplayers.mycloudplayer

send to

Kodi (linux)

Perhaps, this is the best solution to listen soundcloud in linux with low CPU demand
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
User avatar
bester69
 
Posts: 1413
Joined: 2015-04-02 13:15

Re: SoundCloud in Linux?

Postby bester69 » 2019-04-03 23:46

SoundCLoud with MPD throught KODI (dlna).:

bester69 wrote:Another great way..:

My Cloud Player (Android dlna render)
https://play.google.com/store/apps/details?id=com.mycloudplayers.mycloudplayer

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/details?id=com.mycloudplayers.mycloudplayer

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:You wont change my mind when I know Im right, Im not an ...
User avatar
bester69
 
Posts: 1413
Joined: 2015-04-02 13:15

Re: SoundCloud in Linux (With MPD)?

Postby pylkko » 2019-04-04 17:40

Mopidy also has a soundcloud plugin
User avatar
pylkko
 
Posts: 1520
Joined: 2014-11-06 19:02

Re: SoundCloud in Linux (With MPD)?

Postby bester69 » 2019-04-04 22:25

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:You wont change my mind when I know Im right, Im not an ...
User avatar
bester69
 
Posts: 1413
Joined: 2015-04-02 13:15

Re: SoundCloud in Linux (With MPD)?

Postby pylkko » 2019-04-05 18:45

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/
User avatar
pylkko
 
Posts: 1520
Joined: 2014-11-06 19:02


Return to Offtopic

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable