Quantcast
Channel: Active questions tagged feedjira - Stack Overflow
Viewing all articles
Browse latest Browse all 30

Parse youtube links with feedjira

$
0
0

I use rails 5.2, feedjira 2.1.0

If I parse youtube link

I have this error:

undefined method `image' for #Feedjira::Parser::AtomYoutubeEntry:0x00007fa14be348d0

other links work

my code:

def self.add_entries(entries, stream_id)      entries.each do |entry|          unless  FeedEntry.where(guid: entry.id).exists?            FeedEntry.create!(              :name          => entry.title,              :url           => entry.url,              :summary       => entry.summary,              :published_at  => entry.published,              :enclosure_url => entry.image,              :enclosure_type => entry.enclosure_type,              :guid          => entry.id,              :source_id => stream_id            )          end      endend

How to make to parse all links?


Viewing all articles
Browse latest Browse all 30

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>