johnwarne / reddit-top-rss

Generate RSS feeds for specified subreddits with score thresholds
MIT License
164 stars 13 forks source link

Link element may contain relative URL #3

Open tdryer opened 4 years ago

tdryer commented 4 years ago

I came across an item where the link element contains a relative URL instead of an absolute URL:

<item>
  <title>Stadia has officially gone 40 days without a new game announcement/release, feature update, or real community update. It has been out for 69 days. (self.Stadia)</title>
  <link>/r/Stadia/comments/eusxgc/stadia_has_officially_gone_40_days_without_a_new/</link>
  <guid isPermaLink="false">https://www.reddit.com/r/Games/comments/euum86/stadia_has_officially_gone_40_days_without_a_new/</guid>
  <description><![CDATA[<p><a href='https://www.reddit.com/r/Games/comments/euum86/stadia_has_officially_gone_40_days_without_a_new/'>Post permalink</a> </p>]]></description>
  <pubDate>Mon, 27 Jan 2020 21:19:27 +0000</pubDate>
</item>

Feedly seems to be able to deal with this, but I don't think it's valid. Or it could just be a bug in my own reader.

Thanks for the great project!

johnwarne commented 4 years ago

Hey there, I know I'm responding to this super late, but could you tell me the URL scheme you used (omitting your top-level domain) to get that output? Thanks!

tdryer commented 4 years ago

Here's what I'm using:

/?subreddit=games&averagePostsPerDay=10&view=rss