Author Topic: Print album names  (Read 2782 times)

watchman

  • Guest
Print album names
« on: March 15, 2013, 05: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

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1095
    • View Profile
Re: Print album names
« Reply #1 on: March 15, 2013, 20:33:31 »
Not currently, it will be easy once I finish the new command system. In the meantime you can cheat using this :

Code: [Select]
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.

watchman

  • Guest
Re: Print album names
« Reply #2 on: March 17, 2013, 06: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.  ;)