diff options
Diffstat (limited to 'bin/gtk-fair-viewer')
-rwxr-xr-x | bin/gtk-fair-viewer | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/gtk-fair-viewer b/bin/gtk-fair-viewer index e8ea8c4..e68a8c4 100755 --- a/bin/gtk-fair-viewer +++ b/bin/gtk-fair-viewer @@ -16,7 +16,7 @@ #------------------------------------------------------- # GTK Fair Viewer # Fork: 14 February 2020 -# Edit: 14 February 2020 +# Edit: 05 June 2020 # https://framagit.org/heckyel/fair-viewer #------------------------------------------------------- @@ -2226,11 +2226,8 @@ sub check_keywords { if ($key =~ /$get_video_id_re/o) { my $info = $yv_obj->video_details($+{video_id}); - - if ($yv_utils->has_entries($info)) { - if (not play_video($info->{results})) { - return; - } + if (ref($info) eq 'HASH' and keys %$info) { + play_video($info) || return; } else { return; |