diff options
author | Antonio Terceiro <terceiro@softwarelivre.org> | 2013-08-27 22:28:58 -0300 |
---|---|---|
committer | Antonio Terceiro <terceiro@softwarelivre.org> | 2013-08-27 22:28:58 -0300 |
commit | a1b2e9080f53a3db984f4297d8f19892d6582d37 (patch) | |
tree | 6ddb8734a76af313c39bb606077ff628a94fc5b4 /lib/feed2imap | |
parent | 64455d1615ee34e03166b106f1ac33b3179fef75 (diff) | |
download | feed2imap-a1b2e9080f53a3db984f4297d8f19892d6582d37.tar.gz feed2imap-a1b2e9080f53a3db984f4297d8f19892d6582d37.tar.bz2 feed2imap-a1b2e9080f53a3db984f4297d8f19892d6582d37.zip |
Pass feed URL to ruby-feedparser
This will make ruby-feedparser automatically calculate the full URL of
feed items whose link is present in the feed with only a path and not
hostname. ruby-feedparser will add the hostname where the feed came
from.
Diffstat (limited to '')
-rw-r--r-- | lib/feed2imap/feed2imap.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb index f1bc9cd..7ec355c 100644 --- a/lib/feed2imap/feed2imap.rb +++ b/lib/feed2imap/feed2imap.rb @@ -223,7 +223,7 @@ class Feed2Imap next end begin - feed = FeedParser::Feed::new(f.body.force_encoding('UTF-8')) + feed = FeedParser::Feed::new(f.body.force_encoding('UTF-8'), f.url) rescue Exception n = @cache.parse_failed(f.name) m = "Error while parsing #{f.name}: #{$!} (failed #{n} times)" |