You are not logged in.

#26 2008-01-29 18:29:57

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Im not sure, but doesn't calling sh, run the script in sh compatible mode, instead of in normal bash.

I may have read this somewhere, or, I may have dreamed it knowing me, so please don't take it as fact wink

Offline

#27 2008-01-29 18:38:45

mauriicio
Member
From: São Paulo, Brasil
Registered: 2008-01-28
Posts: 6

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Hi !

I made this modification, plus:

83:    # play album via moc
84:    mocp -c; mocp -a `w3m -no-cookie -dump \`w3m -no-cookie -dump http://www.jamendo.com/get/album/name/t … in/${tag// /+}/?n=$n | sed -n "$number"p\``; mocp -p; mocp;

It works.
I not programmer, but is possible join finderflu script with moc console ?

Maurício

Offline

#28 2008-01-29 22:19:33

tami
Member
From: Norway, Oslo
Registered: 2007-11-10
Posts: 58
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Just would like to say thank you, finferflu, for the script and - introducing me to jamendo smile

Best wishes from very grateful,

tami


"Possession means worries and luggage bags one has to drag along." Little My wink

Offline

#29 2008-02-07 11:54:11

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Ah sorry, I didn't get notified about those new posts... odd...

@ Mauriicio
I'm sorry, but I don't know moc enough to answer your question. So, from what I understand, you would like to make my script part of moc?

@ tami
Thanks for your feedback, I appreciate that smile
And enjoy the music! wink


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#30 2008-02-07 15:00:10

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Hi finferflu

Not sure if you are going to carry on devloping this app anymore if it's a one off, but I have a little feature request for future scipts if you do.  To be able to bookmark favorite albums and store them in ~/.jam for easy retrieval in the future.  What are your thoughts?

Thanks smile

Offline

#31 2008-02-07 15:38:17

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Yeah sure!
I'm planning to write a ncurses player, but I might add some features in the bash script if I find time. Currently I'm quite busy with university, so I think I'll be more active in a few months. But I'm very open for suggestions and feature requests smile

Actually Jamendo allows you to save albums, if you create an account. The Jamendo team is in the process of releasing a new API, so I'll see if I can do it that way. Otherwise I'll ask it as a feature tongue
I also plan to have the option of downloading the albums straight away, but that's when I think a ncurses interface is more appropriate.

I'm learning C at the moment, in the spare time, and I will do my best to make a nice and nifty player. And while I'm at it, I might turn it into an MPD client (we only have ncmpc in the CLI).


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#32 2008-02-07 22:49:46

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Sounds great.  Looking really forward to seeing it.  Was going to suggest a download feature but didn't want to push my luck big_smile

I have never looked for another cli mpd client, probably because ncmpc works so great.  Allthough I would obviously use a client within your Jamendo interface to kill 2 birds with one stone smile

Keep up the good work smile

Last edited by gazj (2008-02-07 22:51:40)

Offline

#33 2008-02-08 13:31:12

koch
Member
From: Germany
Registered: 2008-01-26
Posts: 369

Re: [UPDATED] The Jamendo Tag Browser CLI interface

works great, thank you.

Offline

#34 2008-02-08 14:07:26

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

@ gazj
It's just too bad I can't start working on it right now. I have to desist, literally. The world of programming is really fascinating.
I also think ncmpc is great. I love the simplicity. I will try to do something similar for the Jamendo player (even though I'm secretly planning to add the possibility to display the album covers, using the w3m image viewer, you know I pick albums also by looking at the cover, so I find it almost essential).

@ koch
Thanks smile


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#35 2008-05-05 10:25:50

Leiaz
Member
Registered: 2007-09-06
Posts: 7

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Great script smile

Just two little things :
- The last line (to remove the file) is never executed : you should replace the "exit" in the infinite loop by "break".
- When choosing tag rocknroll, then the 7th album (The Neo Tabou Project : Decyphered days / Apocalypse in a room, http://www.jamendo.com/fr/album/780 ), my whole mpd music library is added to the playlist. I don't know what the problem is because it works fine for all others albums i tried.

Thank you very much for this script. It makes it really easier to listen to different albums quickly smile

Offline

#36 2008-05-05 10:40:07

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Thanks for your tips, that's the kind of help I'm always looking for smile
I'll be honest, and admit that someone has already pointed out to me that the last line is never executed, but I didn't have time to get around that and fix it.
As for the the album that gives you problems, I guess there's something wrong with the API. However the Jamendo team is developing a new one, and I'm planning to use that in the future.
I'll be finally free in June, and I'm planning to start working on a new version of the CLI browser straight away smile

Thanks for your feedback smile


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#37 2008-05-08 14:53:25

MONODA
Member
Registered: 2008-02-09
Posts: 256

Re: [UPDATED] The Jamendo Tag Browser CLI interface

why not learning python first and writing the player using that and pygtk, you can create a final product much quicker than in C.

Offline

#38 2008-05-08 15:04:14

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Because I'm not planning to use Gtk. I want to write a ncurses player, and ncurses code is very similar to C. Does is sound reasonable? I'm a complete beginner here.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#39 2008-11-03 05:41:52

atomkarinca
Member
From: Somewhere but Not Here
Registered: 2008-07-03
Posts: 95
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

@finferflu, the link in the first post is dead, can you give a working link?

Offline

#40 2008-11-03 21:19:57

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Yeah sorry, the previous domain was moved, so I have updated the link on my first post smile


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#41 2008-11-04 22:29:23

rostoQ
Member
Registered: 2008-06-25
Posts: 40

Re: [UPDATED] The Jamendo Tag Browser CLI interface

@finerflu: thank you, im really enjoying your script!
You are thinking about writing this with ncurses? I just thought about how crazy i would go if such a thing would be implemented in ncmpcpp, what about that?!

Offline

#42 2008-11-04 22:34:24

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Well, I'm not a real coder yet, I'm still finding my way through learning C, so I'm not sure how able I could be. I have surely considered creating a sort of MPD client integrated into my Jamendo player. We'll see what I will be able to come up with...


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#43 2008-11-20 18:33:45

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: [UPDATED] The Jamendo Tag Browser CLI interface

I would use case instead of ifs:

# exit with q and enter
if [ "$tag" = "" ]; then
    exit
else
    if [ "$tag" = "q" ]; then
        exit
    fi
fi


# if the user types "t", then display the list of the 100 most popular tags
if [ "$tag" = "t" ]; then
case $tag in
        ""|q) exit ;;
        t) do_top_tags ;;
        *) Default_case ;;
esac

Last edited by Daenyth (2008-11-20 18:34:02)

Offline

#44 2008-11-20 19:07:48

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Thanks Daenyth, I will update the script as soon as I can... as you can surely notice, this is one of the first scripts I have written.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#45 2008-11-21 12:40:35

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Also you should put your color escape codes into variables so you can do echo -e "${RED}redtext${NO_COLOR}". This also makes it very simple to disable color for those who don't want it.

Offline

#46 2008-11-21 13:56:10

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

That's a good idea, but I don't seem to be able to use those variables, for example:

NO_COLOR="\033[m"
BLUE="\E[1;34;m"

echo -e "${BLUE}  Welcome to the Jamendo CLI Tag Browser${NO_COLOR}"

returns a plain uncolored text. Am I missing something?

EDIT: Nevermind, stupid typo tongue


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#47 2008-11-21 15:09:03

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Alright, I have updated the script, now it should look tidier and much clearer than before smile


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#48 2009-04-22 10:31:24

samsoul75
Member
Registered: 2009-04-22
Posts: 1

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Hi, looks  like your link does not work anymore... Could you fix it please, I am very interested in your project!

Offline

#49 2009-04-22 11:10:51

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [UPDATED] The Jamendo Tag Browser CLI interface

Hi, sorry for the inconvenience. I have recently switched server, and I forgot to update the link: here you go and hope you enjoy it smile


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

Board footer

Powered by FluxBB