Skip to content

Commit a465ade

Browse files
committed
get the config tumble page
1 parent 92061b4 commit a465ade

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugins/subscription/tumblr.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ def create_rss(url)
4444
Automatic::Log.puts("info", "Parsing: #{url}")
4545
html = open(url).read
4646
unless html.nil?
47+
uri = URI.parse(url)
4748
rss = Automatic::FeedParser.parse(html)
49+
rss.items.each {|item|
50+
unless item.link =~ Regexp.new(uri.host)
51+
item.link = nil
52+
end
53+
}
4854
sleep @config['interval'].to_i unless @config['interval'].nil?
4955
@return_feeds << rss
5056
end

0 commit comments

Comments
 (0)