From fe6c913eca05b5ecb9b6265ece01ef6d7546f799 Mon Sep 17 00:00:00 2001 From: trizen Date: Sat, 30 May 2020 11:27:23 +0300 Subject: Removed the arguments-fix for `mpv 0.32`. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hopefully, everyone now has the fix. (closes https://github.com/trizen/straw-viewer/issues/14) Signed-off-by: Jesús --- bin/fair-viewer | 13 ------------- bin/gtk-fair-viewer | 8 -------- 2 files changed, 21 deletions(-) (limited to 'bin') diff --git a/bin/fair-viewer b/bin/fair-viewer index dd721bb..3d2659e 100755 --- a/bin/fair-viewer +++ b/bin/fair-viewer @@ -460,19 +460,6 @@ sub load_config { $CONFIG{video_player_selected} = 'mpv'; } } - elsif ($CONFIG{video_player_selected} =~ /mpv/i) { # update for mpv 0.32 (#290) -#<<< - my $mpv = $CONFIG{video_players}{$CONFIG{video_player_selected}}; - if ( - ($mpv->{arg} =~ s/(--title)\s+(\*TITLE\*)/$1=$2/g) - | ($mpv->{audio} =~ s/(--audio-file)\s+(\*AUDIO\*)/$1=$2/g) - | ($mpv->{srt} =~ s/(--sub-file)\s+(\*SUB\*)/$1=$2/g) - ) { - say ":: Updated configuration to support mpv 0.32"; - $update_config = 1; - } -#>>> - } # Download with wget if it is installed if (not defined $CONFIG{download_with_wget}) { diff --git a/bin/gtk-fair-viewer b/bin/gtk-fair-viewer index 7dfd4c7..e8ea8c4 100755 --- a/bin/gtk-fair-viewer +++ b/bin/gtk-fair-viewer @@ -750,14 +750,6 @@ if (not $CONFIG{video_player_selected}) { $CONFIG{video_player_selected} = 'mpv'; } } -elsif ($CONFIG{video_player_selected} =~ /mpv/i) { # update for mpv 0.32 (#290) -#<<< - my $mpv = $CONFIG{video_players}{$CONFIG{video_player_selected}}; - $mpv->{arg} =~ s/(--title)\s+(\*TITLE\*)/$1=$2/g; - $mpv->{audio} =~ s/(--audio-file)\s+(\*AUDIO\*)/$1=$2/g; - $mpv->{srt} =~ s/(--sub-file)\s+(\*SUB\*)/$1=$2/g; -#>>> -} { my $update_config = 0; -- cgit v1.2.3