gmusicbrowser Forum

Main board => Questions => Topic started by: watchman on March 15, 2013, 00:50:30

Title: Print album names
Post by: watchman on March 15, 2013, 00:50:30
Hey hello everybody,

Is there a way that i can print the album names i have in Gmusicbrowser?
I dont know if there is a plugin or another way to do that.

Thanks a lot,

Mario
Title: Re: Print album names
Post by: Quentin Sculo on March 15, 2013, 15:33:31
Not currently, it will be easy once I finish the new command system. In the meantime you can cheat using this :

echo 'RunPerlCode my $f=q/album/; my $l=Songs::Get_all_gids($f); @$l= map Songs::Gid_to_Display($f,$_), @$l; open my($fh),q(>/tmp/albumlist); print $fh qq/$_\n/ for sort @$l;' >~/.config/gmusicbrowser/gmusicbrowser.fifo

It will print the list of album in the file /tmp/albumlist, you can replace album by artist to get the list of artists.
It wouldn't be hard to turn it into a plugin.
Title: Re: Print album names
Post by: watchman on March 17, 2013, 01:48:31
Great it works for me....Top.
I think in a few seconds i got it.

Im already happy with this but do you think it is also possible to have the name from the artist and then the name of the albums from that artist?
Or im asking too much now?

Mario here.  ;)