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 - aboettger

Pages: [1] 2 3 4
1
Customization / Re: Custom Text – originalyear
« on: April 06, 2016, 00:52:58 »
no ideas?

2
Customization / Custom Text – originalyear
« on: August 30, 2015, 01:20:17 »
I have some tracks with

Code: [Select]
Custom Text "originalyear"
How can I use this information in a filter?


3
Customization / Re: "gmusicbrowser" and "picard"
« on: June 20, 2014, 12:25:43 »
I'll try to explain it:

The script can be started:
Code: [Select]
/home/aboettger/bin/gmb-on-track-change "%f" "/home/aboettger/gmb_listen_history" 960
"/home/aboettger/gmb_listen_history" is the history file
960 : The number of hours. During this time, the entry remains in the history file and picard is not started.

Picard is started when the currently playing album is not available in the history file.


4
Customization / "gmusicbrowser" and "picard"
« on: May 23, 2014, 18:47:46 »
Maybe this is interesting for someone:
https://github.com/aboettger/ShellScripts/blob/master/gmb_call_picard
https://github.com/aboettger/ShellScripts/blob/master/gmb-call-picard

I use this script together with the programs "gmusicbrowser" and "picard".  With each song change this script is called and decided whether the program "picard" should be started or not.

5
Questions / Re: App indicator icon in Ubuntu 14.04
« on: May 23, 2014, 16:07:50 »
same problem here with Gnome 3.12.2

6
I can't build the latest version:

Code: [Select]
msgmerge -s -U -N po/cs.po po/gmusicbrowser.pot
po/gmusicbrowser.pot:2560:56: invalid control sequence
msgmerge: found 1 fatal error
make: *** [po/cs.po] Error 1

7
quick and dirty patch

plugins/export.pm
Code: [Select]
sub RunCommand
{ my $IDs=$_[0]{IDs} || $_[0]{filter}->filter;
my @cmd=split / /,$::Options{OPT.'tocmd_cmd'};
return unless @cmd;
for my $arg (@cmd) { ::_utf8_off($arg) if $arg=~m/^[\x00-\x7f]*$/; } # remove utf8 flag from arguments that don't need it to prevent autoupgrade to utf8  of potentially non-utf8 filenames when replacing %f with a filename
if (grep $_ eq '$files', @cmd)
{ my @files=map ::ReplaceFields($_,'%f'), @$IDs;
@cmd=map { $_ ne '$files' ?  $_ :  @files } @cmd;
::forksystem(@cmd);
}
else
{ my @todo;
for my $ID (@$IDs)
{ push @todo, [ map ::ReplaceFields($ID,$_), @cmd ];
}
my $ChildPID=fork;
if (!defined $ChildPID) { warn ::ErrorMessage("export plugin : fork failed : $!"); }
elsif ($ChildPID==0) #child
{ system @$_ for @todo;
POSIX::_exit(0);
}
}
}

8
The problem exists even in the plugin "Export".

9
Thank you, it works since the release 1.1.12+1209.  ;D

10
Questions / Re: keyboard shortcuts
« on: April 28, 2014, 02:04:33 »
The call by "bash-c "shell_command"" also works only when I start gmusicbrowser from the terminal.

11
I have a shortcut defined that calls a shell script and passes the parameter %f. But there are problems with special characters.

Here is the call for the shortcut:
Code: [Select]
gmb_call_picard "%f"
Here is the code for gmb_call_picard
Code: [Select]
#!/bin/bash -
zenity --info --text "$1"
picard "$(dirname "$1")"

And the zenity ouput:
Code: [Select]
/home/aboettger/Musik/-=C=-/Phil Collins/Serious Hitsâ?¦ Live! (2236b7ec-6e3e-4467-8aaf-377ff4699138)/1-02 - Phil Collins - Against All Odds (Take a Look at Me Now).flac
And this is the correct file name:
Code: [Select]
/home/aboettger/Musik/-=C=-/Phil Collins/Serious Hits… Live! (2236b7ec-6e3e-4467-8aaf-377ff4699138)/1-02 - Phil Collins - Against All Odds (Take a Look at Me Now).flac

12
Questions / Re: keyboard shortcuts
« on: April 26, 2014, 14:57:08 »
And an other example:

Call system command with arguments
Code: [Select]
gmb_call_easytag "%f"
gmb_call_easytag
Code: [Select]
#!/bin/bash -
easytag "$(dirname "$1")"

13
Questions / Re: keyboard shortcuts
« on: April 26, 2014, 14:51:23 »
This works for me:

Call system command with arguments
Code: [Select]
gmb_call_picard "%f"
gmb_call_picard
Code: [Select]
#!/bin/bash -
picard "$(dirname "$1")"

14
Questions / keyboard shortcuts
« on: April 22, 2014, 16:18:06 »
How can I pass the name of the folder to a program with a keyboard shortcut?

This version also does not work.
Code: [Select]
picard "$(dirname %f)"

15
Customization / size of rating pic
« on: April 22, 2014, 00:06:40 »
The image have a height of 16 pixels and a width of 80 pixels. Shown are the images too big, so they look blurry. What am I doing wrong?

{Column gmb-art_ratingpic}
title = _"Rat3"
menutitle = _"gmb-art Rat3"
sort = rating
width=100
pic : picture(file=ratingpic($rating),h=$_h,w=$_w,resize='ratio',init_file=ratingpic(0))

Pages: [1] 2 3 4