user-109
21-12-2013, 04:09 PM
This is a fairly trivial change request but I'd certainly find it useful. I run on Ubunutu using a bash script to make repeated calls to get_iplayer. This results in an unnecessarily verbose output due to the copyright notice, for example:
I edit each new version of get_iplayer so I get the following instead:
This copyright notice isn't really required each time - could it not be put in the help? Surely get_iplayer should just display the version?
The quick fix I apply is to replace:
by:
but I'm sure there's a better way of doing it.
Quote:-------------------------------------------------------------------------------
get_iplayer 2.85-ppa16, Copyright (C) 2008-2010 Phil Lewis
This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
This is free software, and you are welcome to redistribute it under certain
conditions; use --conditions for details.
INFO: 0 Matching Programmes
--------------------------------------------------------------------------------
End of daily programmes for week commencing 2013-12-16
I edit each new version of get_iplayer so I get the following instead:
Quote:--------------------------------------------------------------------------------
get_iplayer 2.85-ppa16
INFO: 0 Matching Programmes
--------------------------------------------------------------------------------
End of daily programmes for week commencing 2013-12-16
This copyright notice isn't really required each time - could it not be put in the help? Surely get_iplayer should just display the version?
The quick fix I apply is to replace:
Code:
sub copyright_notice {
shift;
my $text = "get_iplayer $version_text, ";
$text .= <<'EOF';
Copyright (C) 2008-2010 Phil Lewis
This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
This is free software, and you are welcome to redistribute it under certain
conditions; use --conditions for details.
EOF
return $text;
}
by:
Code:
sub copyright_notice {
shift;
my $text = "get_iplayer $version_text";
$text .= <<'EOF';
EOF
return $text;
}
but I'm sure there's a better way of doing it.