LinkThumbnailer v2.2.0 Release Notes

  • โž• Adds

    • โž• Add support for og:video
    • โž• Add support for multiple og:video as well

    ๐Ÿ”— LinkThumbnailer will return the following json for example:

    {
      id:         'x7lni3',
      src:        'http://www.dailymotion.com/video/x7lni3',
      size:       [640, 360],
      duration:   136,
      provider:   'Dailymotion',
      embed_code: '<iframe src="//www.dailymotion.com/embed/video/x7lni3" frameborder="0" allowfullscreen="allowfullscreen"></iframe>'
    }
    

    โž• Add :videos into your config/initializers/link_thumbnailer.rb attributes config in order to start scraping videos.

    Ex:

    config.attributes = [:title, :images, :description, :videos]