diff options
Diffstat (limited to 'bin/fair-viewer')
-rwxr-xr-x | bin/fair-viewer | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/fair-viewer b/bin/fair-viewer index 526297d..b06dcda 100755 --- a/bin/fair-viewer +++ b/bin/fair-viewer @@ -2954,10 +2954,14 @@ FORMAT ## ok } elsif (valid_num($key, $playlists) and not $contains_keywords) { + + my $id = $yv_utils->get_playlist_id($playlists->[$key - 1]); + if ($args{return_playlist_id}) { - return $yv_utils->get_playlist_id($playlists->[$key - 1]); + return $id; } - get_and_print_videos_from_playlist($yv_utils->get_playlist_id($playlists->[$key - 1])); + + get_and_print_videos_from_playlist($id); } else { push @for_search, $key; |