Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - hansi

Pages: [1] 2
1
Customization / Re: Queue buttons placement
« on: August 31, 2015, 09:40:30 »
Great! I finally succeed by tinkering a new widget based on Pos!

Well, it's not nearly as good and convenient that if it was in the title of the tab (like the original Shimmer layout), but it's better than nothing...



gmusicbrowser_layout.pm:
Code: [Select]
PosMini =>
{ class => 'Layout::Label',
group => 'Play',
xalign => .5,
initsize=> ::__n("%d song","%d songs",99999),
update => sub  { my $t=(@$::ListPlay==0) ? '':
@$::Queue ? ::__n("%d song","%d songs", scalar @$::Queue):
!defined $::Position ? ::__n("%d song","%d songs",scalar @$::ListPlay):
($::Position+1).'/'[email protected]$::ListPlay;
  $_[0]->set_markup_with_format( '<i>%s</i>', $t );
},
click1 => 'MenuQueue',
click3 => sub { ::ChooseSongs([::GetNeighbourSongs(5)]) unless $::RandomMode || @$::Queue; },
event => 'Pos Queue Filter',
},

Corrected layout code:
Code: [Select]
NBList = (tabpos="bottom") VBQueueWithButtons HBparcourir HBLyrics VBAlbuminfo VBArtistinfo
HBQueueButtons = QueueActions(group=2) _PosMini -EmptyList(group=2) -ShuffleList(group=2)
VBQueueWithButtons= (tabtitle=_"Queue",tabicon=gmb-song) _QueueList(songtree=1,group=2,cols="queuenumber titleaa",colwidth="queuenumber 20 titleaa 248",showbb=1,hscrollbar=0) HBQueueButtons

2
Questions / Random pauses between songs using mpv backend
« on: August 30, 2015, 02:01:55 »
Just for the record, if you encounter pauses | jumps | skips between some songs when you are using mpv backend (despite his gapless feature), you'll probably have to enable cache. So add "--audio-buffer=3 --cache=yes --cache-secs=3" in Audio tab > mpv > advanced options > mpv options.
Of course the "3" has to be fine tuned according your setup (take a look at "man mpv" for more info)...

I guess, at least in my case, that could be due to the dedicated HDD for storing music who is going to sleep or suspend after loading a track because it's not in use by the main system.

Now the gapless feature works perfectly! Many thanks to Quentin for his wonderful work!!!

3
Customization / Re: Queue buttons placement
« on: August 30, 2015, 01:57:39 »
Woops, I forgot to mention that I had to add a "group=" parameter to QueueActions + EmptyList + ShuffleList + QueueList in order to make the buttons functional with the good Queue, the left one instead of the main one (on the right)...

4
Customization / Re: Queue buttons placement
« on: August 28, 2015, 03:00:55 »
Oh great ! Thank you so much !! But about Queue number, maybe it could be displayed between QueueActions and -EmptyList ?

5
Customization / Queue buttons placement
« on: August 27, 2015, 04:35:22 »
Hello,

I'm trying to reproduce the old Shimmer queue buttons placement (with QueueActions + ShuffleList + EmptyList widgets), but unfortunately without any success...  >:(

Here's an example of I would like to obtain:


And this is where I am for now:


Is this feasible with the new 1.1.15 ? If yes, are there anyone here who would be kind enough to show me how?

Thank you in advance..

Here is the relevant layout code:
Code: [Select]
### main left: artist pane and album-cover ###
VBLeft = _VBListCover HBStatus
VBListCover = _NBList HBQueueButtons 1Cover(default=elementary/no-cover.svg,showcover=0)
NBList = (tabpos="bottom") QueueList(songtree=1,tabtitle=_"Queue (%n)",tabicon="gmb-song",cols="queuenumber titleaa",colwidth="queuenumber 20 titleaa 248",showbb=1,hscrollbar=0) HBparcourir HBLyrics VBAlbuminfo VBArtistinfo
HBQueueButtons = QueueActions ShuffleList EmptyList
HBparcourir = (tabtitle=_"Parcourir",tabicon="gmb-browse") _FPane
HBLyrics = (tabtitle=_"Lyrics",tabicon="emblem-shared") _PluginLyrics
VBArtistinfo = (tabtitle=_"Artist",tabicon="gmb-artist") _PluginArtistinfo
VBAlbuminfo = (tabtitle=_"Album",tabicon="emblem-generic") _PluginAlbuminfo
HBStatus = 3Total(noheader=1,format=long,relief=none,button=1,mode=library) -2Sort(button=1,tip=_"Right-click to toggle shuffle/random") -2Filter(button=1,tip=_"Right-click to remove filters") -2ToggleButton3(icon=gmb-picture,relief=none,size=menu,widget=Cover,tip=_"Show/Hide Cover")

6
French / Re: Patch Shimmer ?
« on: August 26, 2015, 23:45:45 »
Bonjour Quentin,

Trop cool merci vraiment beaucoup, je vais tenter d'intégrer ça au layout Shimmer.
J'ai update à l'instant vers 1.1.15 et c'est vraiment terrible d'avoir ajouté mpv, sérieux le taff que tu réalises est impressionant ! Merci infiniment pour cet incroyable lecteur qui surpasse de loin tous les autres !!!  :)

7
French / Re: Patch Shimmer ?
« on: March 11, 2015, 01:33:50 »
Bon j'ai ajouté à la main le passage qui m'intéressait, le widget qui permet d'avoir rapidement les actions de la Queue Mélanger/Vider + le mode.

Mais d'ailleurs pourquoi ne pas l'intégrer dans la version originale ?

8
Questions / Re: Playing error : Resource not found at ...
« on: March 10, 2015, 22:21:02 »
Mmh, I'm not sure of anything but since (today) I installed the very last version of Gmusicbrowser from the -git repository + the gstreamer-1.x stack (instead of gstreamer0.10) + perl-glib-object-introspection, and poof there is no error messages anymore...
That's great, but I assume that could be more tricky with a distro like Mint or any of Debian based that are not a rolling release :-/

9
Questions / Re: Playing error : Resource not found at ...
« on: March 10, 2015, 21:10:46 »
With you package manager. You're using Linux Mint, a Debian based so APT is your package manager.
Sorry but I forgot APT since a long time ago, maybe something like "$ apt-get search gstreamer" could do the job...

10
French / Patch Shimmer ?
« on: March 10, 2015, 20:31:22 »
Bonjour,

Serait-il possible d'obtenir un patch à jour pour transformer GMB en version Shimmer ?
Celui disponible dans le package Arch ne s'applique plus correctement et renvoie :
Code: [Select]
==> Lancement de build()...
patching file gmbrc.default
patching file gmusicbrowser.pl
Hunk #1 succeeded at 613 (offset 44 lines).
patching file gmusicbrowser_layout.pm
Hunk #7 succeeded at 1675 (offset 14 lines).
patching file gmusicbrowser_list.pm
Hunk #3 FAILED at 242.
Hunk #6 succeeded at 3352 (offset 4 lines).
Hunk #7 succeeded at 4634 (offset 4 lines).
Hunk #8 succeeded at 5567 (offset 4 lines).
Hunk #9 succeeded at 5630 (offset 4 lines).
1 out of 9 hunks FAILED -- saving rejects to file gmusicbrowser_list.pm.rej
patching file layouts/songtree.layout
patching file plugins/fetch_cover.pm
==> ERREUR : Une erreur s’est produite dans build().
    Abandon...
==> ERREUR: Makepkg n'a pas pu construire gmusicbrowser-git.

Ou peut-être y a-t-il un autre moyen pour obtenir GMB-Shimmer avec les améliorations de la branche principale ?

Merci

11
Questions / Re: Playing error : Resource not found at ...
« on: March 10, 2015, 20:21:11 »
And what is you version of gstreamermm ? Or even version of your gstreamer stack ?

12
Questions / Re: Playing error : Resource not found at ...
« on: March 10, 2015, 19:48:32 »
Hi,

Same problem here :-/
Would you look at what is you version of gstreamermm ? I feel that it comes from the last update...
Code: [Select]
[2015-02-28 01:52] [ALPM] upgraded gstreamermm (1.0.10-1 -> 1.4.3-1)

13
Questions / Re: Problem with Perl 5.2
« on: June 14, 2014, 15:23:45 »
You can try putting it before "use Gtk2 '-init';"
Let me know if it works
Unfortunately no, it does not work. What can we try now?  :-/

14
Questions / Re: Problem with Perl 5.2
« on: June 14, 2014, 04:24:43 »
Hi,

Same problem here for Perl 5.20 since update.
But on this link they said to simply "use locale" inside the script.
So, as error appear on line 26 in /usr/bin/gmusicbrowser
Code: [Select]
Invalid version format (non-numeric data) at /usr/lib/perl5/site_perl/Encode.pm line 12.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/Encode.pm line 12.
Compilation failed in require at /usr/bin/gmusicbrowser line 26.
BEGIN failed--compilation aborted at /usr/bin/gmusicbrowser line 26.

Where should I paste "use locale" in
Code: [Select]
use strict;
use warnings;
use utf8;

package main;
use Gtk2 '-init';
use Glib qw/filename_from_unicode filename_to_unicode/;
use POSIX qw/setlocale LC_NUMERIC LC_MESSAGES LC_TIME strftime mktime _exit/;
use Encode qw/_utf8_on _utf8_off/; #<---- LINE 26
??

Thanks,

15
French / Re: Version Shimmer ?
« on: March 17, 2014, 20:25:39 »
Yes, already tried the Gapless feature, but that's not the same thing and it's still experimental  :-\ I remember some crash happened before.
I just installed 1.1.12 and the queue buttons issue still persists, my bad! :-( Are you using Shimmer version but in 1.1.12?

Pages: [1] 2