sorae42 / ressdit

A fork of trashhalo/reddit-rss. Opinionated and improved RSS feed for Reddit.
https://github.com/trashhalo/reddit-rss
MIT License
1 stars 0 forks source link

Use OP first comment for description #2

Open sorae42 opened 3 months ago

sorae42 commented 3 months ago

Non-text post (e.g. image, video, etc) does not allow user to type content in them, so most of them usually put the text content in the comment section.

The only way to do this is to display the first comment (from OP only) and display them in the description and content field. This will require Reddit API, which might sucks for some people (including me).

sorae42 commented 3 months ago

Turns out I can just append .json at the end of the article as well, which doesn't require using Reddit API. Let's see what I can do with this...

And yes, I still think registering to reddit API is still helpful. I just happen to not encounter the limit just yet. I might going to hit them as soon I add more subreddit to my RSS feed.

sorae42 commented 3 months ago

Also add to this: I will also have to check if the post is also non-text. This is just to make sure I'm not just grabbing every single comment off this.

I might also have to limit time posted just to make sure I'm only getting the OP comment that is only meant to be the post description.

Hmmm... a lot of thing to take care here.