We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$ video = VideoInfo.new("https://www.youtube.com/watch?v=WVsj2pS-zFY") => #<VideoInfo:0x00007ff674bbca20 @provider=#<VideoInfo::Providers::Youtube:0x00007ff674bafd98 @options={"User-Agent"=>"VideoInfo/2.7"}, @url="https://www.youtube.com/watch?v=WVsj2pS-zFY", @video_id="WVsj2pS-zFY">> $ video.description NoMethodError (undefined method `value' for nil:NilClass)
I expect video.description to return nil when no description is found, instead of raising NoMethodError.
video.description
nil
NoMethodError
I think this is the line where it should be fixed: https://github.com/thibaudgg/video_info/blob/master/lib/video_info/providers/youtube_scraper.rb#L67
The text was updated successfully, but these errors were encountered:
Hi @Spone, thanks for the opening this issue. Could you please open a pull request with a fix, I'll review it quickly.
Sorry, something went wrong.
Fix NoMethodError for Youtube Scraper
c41cd35
see thibaudgg#180
No branches or pull requests
I expect
video.description
to returnnil
when no description is found, instead of raisingNoMethodError
.I think this is the line where it should be fixed: https://github.com/thibaudgg/video_info/blob/master/lib/video_info/providers/youtube_scraper.rb#L67
The text was updated successfully, but these errors were encountered: