You are not logged in.

#26 2011-08-17 06:40:29

rejoin
Member
Registered: 2011-06-06
Posts: 43

Re: soundCLI --- a console client for soundcloud.com

Oh, ok. I think my setup broke big_smile so I will reinstall and write back!

Offline

#27 2011-08-17 07:05:59

rekado
Member
From: Shanghai, China
Registered: 2009-01-13
Posts: 98
Website

Re: soundCLI --- a console client for soundcloud.com

rejoin wrote:

Oh, ok. I think my setup broke big_smile so I will reinstall and write back!

New to Arch...? :-p

If you do reinstall your system (which I hope was not triggered by the bad experience of installing my little program) stay away from RubyGems and stick to what is offered in the repos. If it's not there, build your own package. It makes things a lot easier when you can rely on pacman do deal with everything.

Offline

#28 2011-08-17 09:11:14

rejoin
Member
Registered: 2011-06-06
Posts: 43

Re: soundCLI --- a console client for soundcloud.com

Yep, fairly new to arch. Just installed it on a fresh setup. Now it asks for email and password and after i type my pass i get:

Could not post/save access token.
Could not authenticate.
/usr/lib/ruby/site_ruby/1.9.1/soundcli.rb:9:in `initialize': Authentication error (RuntimeError)
	from /usr/bin/soundcli:6:in `new'
	from /usr/bin/soundcli:6:in `<main>

Offline

#29 2011-08-17 10:59:06

rekado
Member
From: Shanghai, China
Registered: 2009-01-13
Posts: 98
Website

Re: soundCLI --- a console client for soundcloud.com

rejoin wrote:

Yep, fairly new to arch. Just installed it on a fresh setup. Now it asks for email and password and after i type my pass i get:

Could not post/save access token.
Could not authenticate.
/usr/lib/ruby/site_ruby/1.9.1/soundcli.rb:9:in `initialize': Authentication error (RuntimeError)
	from /usr/bin/soundcli:6:in `new'
	from /usr/bin/soundcli:6:in `<main>

Good, we had this earlier (see some posts above). During installation the configuration directory is not created automatically yet, nor does soundCLI create the dir when it discovers that it doesn't exist. You need to do this manually:

mkdir $XDG_CONFIG_HOME/soundcli

soundCLI stores the authentication token there.

I will provide a soundcli-git package later today, so you can easily follow development and the implementation of bugfixes before the next release. Note that soundcli 0.0.2 has some bugs which have since been fixed in the latest version on git.

Offline

#30 2011-08-17 11:17:29

rejoin
Member
Registered: 2011-06-06
Posts: 43

Re: soundCLI --- a console client for soundcloud.com

rekado: Thanks! I had a file soundcli instead of a folder. Now it works fine!

Offline

#31 2011-08-17 12:29:06

rekado
Member
From: Shanghai, China
Registered: 2009-01-13
Posts: 98
Website

Re: soundCLI --- a console client for soundcloud.com

The new soundcli-git package is ready, so you can easily track the development.

Changes:
- fixed the bug jomasti reported
- a config file is now respected
- verbosity can be set in the config file

Offline

#32 2011-09-20 00:17:37

rekado
Member
From: Shanghai, China
Registered: 2009-01-13
Posts: 98
Website

Re: soundCLI --- a console client for soundcloud.com

Added support for playlists...

soundcli set http://soundcloud.com/rekado/sets/staging/

...and multiple file playback:

soundcli stream http://soundcloud.com/rekado/{the-human-song,chroma,faded}

Grab it from the AUR: soundcli-git

Offline

#33 2011-09-23 17:02:33

rekado
Member
From: Shanghai, China
Registered: 2009-01-13
Posts: 98
Website

Re: soundCLI --- a console client for soundcloud.com

Only just noticed that soundCLI required authentication for streaming songs (and not only for user-related stuff). That's been fixed in soundcli-git. People without SoundCloud account can now stream songs from the 'Cloud, too.

Offline

#34 2012-03-04 14:06:04

onny
Member
From: Europe
Registered: 2010-08-07
Posts: 46
Website

Re: soundCLI --- a console client for soundcloud.com

thanks for this nice project, I already flattr'ed it wink
There are still a lot of functionality missing, e.g. playing a whole artist site an once, soundcli stream http://soundcloud.com/le-filou
or downloading several tracks at once.

Hope you still got some time for this project smile

Offline

#35 2012-03-06 15:16:58

rekado
Member
From: Shanghai, China
Registered: 2009-01-13
Posts: 98
Website

Re: soundCLI --- a console client for soundcloud.com

I'm currently not working on soundcli, but I might continue later this year. The code is not complicated, though, so you are welcome to submit patches.

Offline

#36 2012-03-08 00:29:01

rekado
Member
From: Shanghai, China
Registered: 2009-01-13
Posts: 98
Website

Re: soundCLI --- a console client for soundcloud.com

onny wrote:

thanks for this nice project, I already flattr'ed it wink
There are still a lot of functionality missing, e.g. playing a whole artist site an once, soundcli stream http://soundcloud.com/le-filou
or downloading several tracks at once.

Hope you still got some time for this project smile


I just added this feature. Just fetch the latest version from git and then enter `soundcli user mama` where "mama" is the user's username on soundcloud.

Offline

#37 2012-09-01 11:48:01

freaks
Member
Registered: 2010-11-10
Posts: 63

Re: soundCLI --- a console client for soundcloud.com

hello i have this error when i try to start soundcli
no such file to load -- soundcli
i compiled all the components with ruby 1.8

i had to fix some things like : ln -s /usr/bin/ruby-1.8 /usr/bin/ruby
mkdir -p /opt/ruby1.8/bin/
ln -s /usr/bin/ruby-1.8 /opt/ruby1.8/bin/ruby

Offline

#38 2012-09-02 01:36:39

rekado
Member
From: Shanghai, China
Registered: 2009-01-13
Posts: 98
Website

Re: soundCLI --- a console client for soundcloud.com

@freaks: ruby 1.9 is required.

Offline

#39 2013-07-28 08:12:26

legolas558
Member
Registered: 2009-09-08
Posts: 97

Re: soundCLI --- a console client for soundcloud.com

I use arch linux on my laptop, however I have a small NAS with debian and there I cannot get this working sad

Fetching: pkg-config-1.1.4.gem (100%)
Fetching: glib2-2.0.2.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing soundcli-0.0.5.gem:
	ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
	from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
	from /var/lib/gems/1.9.1/gems/glib2-2.0.2/lib/mkmf-gnome2.rb:13:in `<top (required)>'
	from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
	from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
	from extconf.rb:15:in `<main>'


Gem files will remain installed in /var/lib/gems/1.9.1/gems/glib2-2.0.2 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/glib2-2.0.2/ext/glib2/gem_make.out

.-.   ,---,---.--.
| |__  \ \ \ \`//.
`----'`--'`--'`--'

Offline

#40 2013-07-31 10:15:17

hughitt1
Member
Registered: 2010-02-18
Posts: 82
Website

Re: soundCLI --- a console client for soundcloud.com

Hmm. Does anyone know if ruby 2.x is supported?

I just tried the normal and -git versions in the AUR, and in both cases get an uninformative error message:

cannot load such file -- soundcli

Ruby version: ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]

Any ideas?

Offline

#41 2013-07-31 12:05:57

n1ck3
Member
Registered: 2013-07-31
Posts: 2

Re: soundCLI --- a console client for soundcloud.com

hughitt1 wrote:

Hmm. Does anyone know if ruby 2.x is supported?

I just tried the normal and -git versions in the AUR, and in both cases get an uninformative error message:

cannot load such file -- soundcli

Ruby version: ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]

Any ideas?

Getting exactly the same. What gives?

Offline

#42 2013-07-31 14:51:41

hughitt1
Member
Registered: 2010-02-18
Posts: 82
Website

Re: soundCLI --- a console client for soundcloud.com

Got it working after doing a manual install from Github.

@rekado, it looks like the web authentication may be broken though: the auth code appears in the URL and I can use it, but no message is displayed on the website.

Offline

#43 2013-08-01 09:34:44

n1ck3
Member
Registered: 2013-07-31
Posts: 2

Re: soundCLI --- a console client for soundcloud.com

hughitt1 wrote:

Got it working after doing a manual install from Github.

@rekado, it looks like the web authentication may be broken though: the auth code appears in the URL and I can use it, but no message is displayed on the website.

Hmm. I pulled the repo from github and get this:

undefined method `bus' for nil:NilClass

Did you build it or just run it as `ruby -Ilib ./bin/soundcli`?

Thanks,
Nick

EDIT:

Nevermind. I installed it as a gem and then installed a bunch of gstreamer plugins and now it works! \\o/

Let's try this out. smile

Last edited by n1ck3 (2013-08-01 10:09:09)

Offline

Board footer

Powered by FluxBB