diff options
author | trizen <trizen@protonmail.com> | 2020-03-06 03:34:55 +0200 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-03-07 13:57:09 -0500 |
commit | 82dacf03883cacbb27aad0fadee541e82684f299 (patch) | |
tree | 0af68180b1b7467cccbc066a254b8e052a0b93b7 /bin/fair-viewer | |
parent | bcc2d0bedcd582de39da89aaf6762ffe0aac5fa0 (diff) | |
download | fair-viewer-82dacf03883cacbb27aad0fadee541e82684f299.tar.lz fair-viewer-82dacf03883cacbb27aad0fadee541e82684f299.tar.xz fair-viewer-82dacf03883cacbb27aad0fadee541e82684f299.zip |
- Implemented support for playlists from username.
Diffstat (limited to 'bin/fair-viewer')
-rwxr-xr-x | bin/fair-viewer | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/fair-viewer b/bin/fair-viewer index e20192b..83d35e2 100755 --- a/bin/fair-viewer +++ b/bin/fair-viewer @@ -2829,6 +2829,16 @@ sub print_playlists { my $url = $results->{url}; my $playlists = $results->{results} // []; + if (ref($playlists) eq 'HASH') { + if (exists $playlists->{playlists}) { + $playlists = $playlists->{playlists}; + } + else { + warn "\n[!] No playlists...\n"; + $playlists = []; + } + } + state $info_format = <<"FORMAT"; TITLE: %s |