You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So trying to dig further into this I've found that youtube-dl returns multiple json strings for each video in a playlist, separated by a new line, this of course breaks the JSON parsing.
Thanks for the help, that really narrowed down the problem. Right now I'm thinking about either forcing #information to return an Array or figuring out if the URL is a playlist and then returning an Array. It also isn't really cool that the JSON from youtube-dl isn't valid JSON, so I'll probably make an issue upstream for that.
I've made a branch and a WIP PR to track development on this.
EDIT: This is definitely going to bring breaking API changes so I'm going to add this to the 0.4.0 milestone.
An error when trying to get information for a playlist:
I'm using the latest version of the gem, here are the contents of my Gemfile:
Ruby version
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
The text was updated successfully, but these errors were encountered: