Subject: | youtube-playlists doesnt handle playlists with one entry |
My system:
perl: v5.14.2
OS: Ubuntu 12.04.1 LTS \n \l
Linux server 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC
2012 x86_64 x86_64 x86_64 GNU/Linux
package: WWW-YouTube-Download-0.41
Error:
youtube-playlists
Parsing XML ... Not an ARRAY reference at /usr/bin/youtube-playlists
line 56.
Fix:
add line at 56:
$tree->{feed}{entry} = [$tree->{feed}{entry}] unless ref $tree->{feed}
{entry} eq 'ARRAY';