aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrizen <trizen@protonmail.com>2020-05-30 11:27:23 +0300
committerJesús <heckyel@hyperbola.info>2020-06-06 21:42:55 -0500
commitfe6c913eca05b5ecb9b6265ece01ef6d7546f799 (patch)
tree4813ff46400c926a2eb229baefaa110050e0ae3d
parent619a1b5206d76d7f4d7722567b6d958c327b6824 (diff)
downloadfair-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-xbin/fair-viewer13
-rwxr-xr-xbin/gtk-fair-viewer8
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;