diff options
-rwxr-xr-x | bin/gtk-fair-viewer | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/gtk-fair-viewer b/bin/gtk-fair-viewer index dcc787b..f8f40d5 100755 --- a/bin/gtk-fair-viewer +++ b/bin/gtk-fair-viewer @@ -2513,10 +2513,6 @@ sub get_pixbuf_thumbnail_from_entry { sub display_results { my ($results, $from_history) = @_; - if (not $yv_utils->has_entries($results)) { - die "No results...\n"; - } - my $url = $results->{url}; #my $info = $results->{results} // {}; my $items = $results->{results} // []; @@ -2533,7 +2529,7 @@ sub display_results { $items = $items->{playlists}; } else { - die "No results...\n"; + warn "No results...\n"; } } @@ -2549,6 +2545,10 @@ sub display_results { . qq{\nSee also: https://libregit.org/heckyel/fair-viewer#invidious-instances\n}; } + if (not $yv_utils->has_entries($results)) { + die "No results...\n"; + } + if (@$items) { add_results_to_history($results) if not $from_history; } |