<![CDATA[Arch BSD Forums / Programming & Scripting]]> 2013-11-26T09:30:08Z FluxBB https://bbs.pacbsd.org/index.php <![CDATA[Listening to grooveshark.com from command line]]> HI,

If someone is interested, you can do this by installing python-grooveshark or python2-grooveshark package in ArchBsd

 sudo pacman -S python2-grooveshark 

You can find also some examples how to play the most popular songs or radio streams here: https://github.com/koehlma/pygrooveshar … r/examples
I have added the possibility to play playlists based on theyr id (the ending numbers from the url)

from __future__ import print_function
import subprocess
import sys
from grooveshark import Client
client = Client()
client.init()
for song in client.playlist(sys.argv[1]).songs:
    print(song)
    subprocess.call(['mplayer', song.stream.url])

Save the above code as playlist_grooveshark.py or whatever name you want and use it as\

python2.7 playlist_grooveshark.py 7508662

the last parameter is the id

I am using mplayer, but you could use also mpg123.

]]>
https://bbs.pacbsd.org/profile.php?id=107 2013-11-26T09:30:08Z https://bbs.pacbsd.org/viewtopic.php?id=110&action=new
<![CDATA[Assembly it is used in the development of Arch BSD?]]> gelo wrote:

Assembly it is used in the development of Arch BSD?

No, we only provide a (in my personal opinion) better package manager for FreeBSD
This distribution is pure FreeBSD in the core, but it uses pacman instead of ports

gelo wrote:

According to Herbert Schildt on book C Complete and Total, the general rule is: do not use assembly, creates many problems.

Not really relevant in this case, but it's also (mostly) completely and utterly incorrect smile

]]>
https://bbs.pacbsd.org/profile.php?id=110 2013-11-17T03:35:00Z https://bbs.pacbsd.org/viewtopic.php?id=108&action=new
<![CDATA[ReFreeBSD Script]]> Thanks a lot man!

]]>
https://bbs.pacbsd.org/profile.php?id=100 2013-05-10T07:21:44Z https://bbs.pacbsd.org/viewtopic.php?id=36&action=new