REQ: Plugin to get image when there is none

Post plugins and custom CSS snippets here
User avatar
Monfreid
Bear Rating Trainee
Bear Rating Trainee
Posts: 23
Joined: 04 Apr 2013, 18:16

REQ: Plugin to get image when there is none

Postby Monfreid » 18 Dec 2013, 18:17

Hi,
I would like to know if it's possible to have a plugin that would get an image from the website when it's not included in the RSS a bit like when you share a link in Facebook, you can choose the image to display or not.
That would make a big difference on my website so I'm willing to make a Paypal donation to whoever come up with a working plugin for this! :D
Thank you!

JustAMacUser
Bear Rating Overlord
Bear Rating Overlord
Posts: 373
Joined: 20 Aug 2013, 23:13

Re: REQ: Plugin to get image when there is none

Postby JustAMacUser » 18 Dec 2013, 21:22

What's the feed URL?


JustAMacUser
Bear Rating Overlord
Bear Rating Overlord
Posts: 373
Joined: 20 Aug 2013, 23:13

Re: REQ: Plugin to get image when there is none

Postby JustAMacUser » 20 Dec 2013, 10:53

I took a look at a couple of those. What you're asking is pretty easy from a programming perspective. The issue is that the images associated with each article are only available on the web site itself. This would mean the plugin would have to load article web page, parse the document for the image, then embed said image in the content... For each article. There would also be a certain percentage of failed parsings (where the code is unable to find the main article and/or image)--unless each feed was hard-coded, which would be difficult to maintain as site content can often change.

Overall, the concern I would have is that doing this for each article would be taxing on the (your) server (especially if there were a lot of feeds doing this), it could also appear like you're trying to scrape the site, which might get you blocked. If the plugin hooked the sanitize function, it could do this only for articles that you read, but then there would be a noticeable delay from the time you click the article until it actually loads.

Regardless, I have some existing code that could be re-purposed to do this, but would be interested in your feedback first.

User avatar
Monfreid
Bear Rating Trainee
Bear Rating Trainee
Posts: 23
Joined: 04 Apr 2013, 18:16

Re: REQ: Plugin to get image when there is none

Postby Monfreid » 20 Dec 2013, 18:49

Hi,

I don't need the image for all the articles in each feed that I have subscribed to. On my website I have an RSS reader that display my "starred" and "published" articles.
So in fact, I just need the image for the articles I "star" or "publish".
I don't know if that make it simpler or harder to programm.

Cheers

zeiram
Bear Rating Trainee
Bear Rating Trainee
Posts: 12
Joined: 29 Apr 2013, 17:04

Re: REQ: Plugin to get image when there is none

Postby zeiram » 20 Dec 2013, 21:39

If I understood you correctly, I think it's already doable with the plugin af_feedmod ( https://github.com/mbirth/ttrss_plugin-af_feedmod or viewtopic.php?f=1&t=2061 )

JustAMacUser
Bear Rating Overlord
Bear Rating Overlord
Posts: 373
Joined: 20 Aug 2013, 23:13

Re: REQ: Plugin to get image when there is none

Postby JustAMacUser » 22 Dec 2013, 00:27


User avatar
Monfreid
Bear Rating Trainee
Bear Rating Trainee
Posts: 23
Joined: 04 Apr 2013, 18:16

Re: REQ: Plugin to get image when there is none

Postby Monfreid » 24 Dec 2013, 17:00

Hi,
I will give a go to the af_feedmod module but I "star" and "publish" more than 30 articles a day so if I have to change the code for each article that will not be interesting for me.
Anyway, I will spend sometime on this during the holidays and will come back to you in the new year
Merry Christmas and all the best for 2014 :-)

User avatar
Monfreid
Bear Rating Trainee
Bear Rating Trainee
Posts: 23
Joined: 04 Apr 2013, 18:16

Re: REQ: Plugin to get image when there is none

Postby Monfreid » 02 Jan 2014, 20:58

Hi,
Unfortunately, the af_feedmod plugin does not seem to be what I'm looking for ... So if someone can come up with a solution to get the image for articles that I "shared" or "starred" that would be great :-)
Thank you!

JustAMacUser
Bear Rating Overlord
Bear Rating Overlord
Posts: 373
Joined: 20 Aug 2013, 23:13

Re: REQ: Plugin to get image when there is none

Postby JustAMacUser » 02 Jan 2014, 21:43

I'll try to take a look at this next week for you.

User avatar
Monfreid
Bear Rating Trainee
Bear Rating Trainee
Posts: 23
Joined: 04 Apr 2013, 18:16

Re: REQ: Plugin to get image when there is none

Postby Monfreid » 06 Jan 2014, 16:00



Return to “Themes and plugins”

Who is online

Users browsing this forum: No registered users and 4 guests