$OpenBSD: patch-get_iplayer,v 1.10 2009/06/24 00:02:20 sthen Exp $
--- get_iplayer.orig	Sat Jun 20 16:42:34 2009
+++ get_iplayer	Wed Jun 24 00:48:07 2009
@@ -283,7 +283,7 @@ mkpath $profile_dir if ! -d $profile_dir;
 
 
 # get list of additional user plugins and load plugin
-my $plugin_dir_system = '/usr/share/get_iplayer/plugins';
+my $plugin_dir_system = '${TRUEPREFIX}/share/get_iplayer/plugins';
 my $plugin_dir_user = "$profile_dir/plugins";
 for my $plugin_dir ( ( $plugin_dir_user, $plugin_dir_system ) ) {
 	if ( opendir( DIR, $plugin_dir ) ) {
@@ -406,6 +406,7 @@ if ( ! keys %plugin_files ) {
 	$opt->{pluginsupdate} = 1;
 }
 # Update this script if required
+$opt->{packagemanager}='pkg_add';
 update_script() if $opt->{update} || $opt->{pluginsupdate};
 
 
@@ -576,9 +577,9 @@ sub find_matches {
 	$binopts->{lame}	.= ' --quiet ' if $opt->{quiet};
 	$bin->{vlc}		= $opt->{vlc} || 'cvlc';
 	$binopts->{vlc}		= '-vv' if $opt->{verbose} || $opt->{debug};
-	$bin->{id3v2}		= $opt->{id3v2} || 'id3v2';
+	$bin->{id3v2}		= $opt->{id3v2} || 'id3tag';
 	$bin->{tee}		= 'tee';
-	$bin->{rtmpdump}	= $opt->{rtmpdump} || 'rtmpdump';
+	$bin->{rtmpdump}	= $opt->{rtmpdump} || 'flvstreamer';
 	$binopts->{rtmpdump}	= ' --quiet' if $opt->{quiet};
 	$binopts->{rtmpdump}	= ' --verbose' if $opt->{verbose};
 	$binopts->{rtmpdump}	= ' --debug' if $opt->{debug};
@@ -1408,7 +1409,7 @@ sub create_ua {
 	my $agent = $user_agent{ "$_[0]" } || random_ua();
 	my $nocookiejar = $_[1] || 0;
 	my $ua = LWP::UserAgent->new;
-	$ua->timeout([$lwp_request_timeout]);
+	$ua->timeout($lwp_request_timeout);
 	$ua->proxy( ['http'] => $opt->{proxy} ) if $opt->{proxy} && $opt->{proxy} !~ /^prepend:/;
 	$ua->agent( $agent );
 	main::logger "DEBUG: Using user-agent '$agent'\n" if $opt->{debug};
