diff options
author | trizen <trizen@protonmail.com> | 2020-05-30 11:27:23 +0300 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-06-06 21:42:55 -0500 |
commit | fe6c913eca05b5ecb9b6265ece01ef6d7546f799 (patch) | |
tree | 4813ff46400c926a2eb229baefaa110050e0ae3d | |
parent | 619a1b5206d76d7f4d7722567b6d958c327b6824 (diff) | |
download | fair-viewer-fe6c913eca05b5ecb9b6265ece01ef6d7546f799.tar.lz fair-viewer-fe6c913eca05b5ecb9b6265ece01ef6d7546f799.tar.xz fair-viewer-fe6c913eca05b5ecb9b6265ece01ef6d7546f799.zip |
Removed the arguments-fix for `mpv 0.32`.
Hopefully, everyone now has the fix. (closes https://github.com/trizen/straw-viewer/issues/14)
Signed-off-by: Jesús <heckyel@hyperbola.info>
-rwxr-xr-x | bin/fair-viewer | 13 | ||||
-rwxr-xr-x | bin/gtk-fair-viewer | 8 |
2 files changed, 0 insertions, 21 deletions
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; |