These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

Remove copyright notice display?

user-109

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:

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.

user-2

Use the man page, Luke:

Code:
--nocopyright
      Don't display copyright header

user-109

Thanks user-2, that's an option I didn't expect to find so I never looked for it.

I've put --nocopyright in my options file and that's done the trick.

These forums are archived

See this post for further info