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

Customization / Re: Queue buttons placement
August 31, 2015, 04: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...
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:
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
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!!!
Customization / Re: Queue buttons placement
August 29, 2015, 20: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)...
Customization / Re: Queue buttons placement
August 27, 2015, 22:00:55
Oh great ! Thank you so much !! But about Queue number, maybe it could be displayed between QueueActions and -EmptyList ?
Customization / Queue buttons placement
August 26, 2015, 23:35:22

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:
### 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")
French / Re: Patch Shimmer ?
August 26, 2015, 18: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 !!!  :)
French / Re: Patch Shimmer ?
March 10, 2015, 20: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 ?
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 :-/
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...
French / Patch Shimmer ?
March 10, 2015, 15:31:22

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 :==> Lancement de build()...
patching file gmbrc.default
patching file
Hunk #1 succeeded at 613 (offset 44 lines).
patching file
Hunk #7 succeeded at 1675 (offset 14 lines).
patching file
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
patching file layouts/songtree.layout
patching file plugins/
==> ERREUR : Une erreur s'est produite dans build().
==> 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 ?

And what is you version of gstreamermm ? Or even version of your gstreamer stack ?

Same problem here :-/
Would you look at what is you version of gstreamermm ? I feel that it comes from the last update... [2015-02-28 01:52] [ALPM] upgraded gstreamermm (1.0.10-1 -> 1.4.3-1)
Questions / Re: Problem with Perl 5.2
June 14, 2014, 10:23:45
Quote from: Quentin Sculo on June 13, 2014, 23:29:38
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?  :-/
Questions / Re: Problem with Perl 5.2
June 13, 2014, 23:24:43

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 Invalid version format (non-numeric data) at /usr/lib/perl5/site_perl/ line 12.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/ 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 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

French / Re: Version Shimmer ?
March 17, 2014, 15: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?