Skip to content

JSON::ParserError unexpected token with playlist #41

@benphelps

Description

@benphelps

An error when trying to get information for a playlist:

dl = YoutubeDL::Video.new "https://www.youtube.com/watch?v=aqz-KE-bpKQ&list=PLiYYIXHYUrMI6mMJADvK2FeoSgK3HuZ49"
dl.information
# JSON::ParserError: 784: unexpected token at '{"upload_date": "20150810" ...

I'm using the latest version of the gem, here are the contents of my Gemfile:

source 'https://rubygems.org'

# Rails Stuff
gem 'rails', '4.2.6'
gem 'sqlite3'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'jbuilder', '~> 2.0'

gem 'sidekiq'
gem 'sidekiq-status'
gem 'youtube-dl.rb'
gem 'awesome_print'

group :development do
  gem 'web-console', '~> 2.0'
  gem 'spring'
  gem 'pry-rails'
end

Ruby version ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions