From 45ba0e18f4c453ee4c0a329b3aa2ee5fa9f89530 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 15 May 2015 21:39:11 +0200 Subject: Honor limit on number of items to fetch. --- lib/rss2html/feed.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/rss2html') diff --git a/lib/rss2html/feed.rb b/lib/rss2html/feed.rb index f0840d7..45a88c2 100644 --- a/lib/rss2html/feed.rb +++ b/lib/rss2html/feed.rb @@ -26,6 +26,10 @@ module Rss2Html def initialize(args) @title = args.delete('title') @url = args.delete('url') + limit = args.delete('limit') + if limit + @url += "&limit=#{limit}" + end @feed_header = load_template('feed_header.html.erb') @feed_footer = load_template('feed_footer.html.erb') -- cgit v1.2.3