Bogus link not in feeds

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
evilbunny
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 15 Nov 2013, 15:56

Bogus link not in feeds

Postby evilbunny » 25 Nov 2013, 15:45

I have no idea why, but the links generated on this feed:

http://www.afr.com/rss/technology

always comes up in TT-RSS as:

http://172.16.133.43/tablet/rss/

User avatar
pahles
Bear Rating Disaster
Bear Rating Disaster
Posts: 50
Joined: 20 Mar 2013, 17:02

Re: Bogus link not in feeds

Postby pahles » 25 Nov 2013, 16:02

And why so you think this is a problem with TT-RSS? If I click the link, my browser shows this very same link, no TT-RSS involved...

evilbunny
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 15 Nov 2013, 15:56

Re: Bogus link not in feeds

Postby evilbunny » 25 Nov 2013, 16:16

because if I look at the raw rss it has links for each article.

feader
Bear Rating Master
Bear Rating Master
Posts: 160
Joined: 26 Dec 2012, 20:03

Re: Bogus link not in feeds

Postby feader » 25 Nov 2013, 17:45

evilbunny wrote:I have no idea why, but the links generated on this feed:
always comes up in TT-RSS as:

I'm not sure I understand your problem. Is it that the article links for this feed in ttRSS are always the IP URL, but they should be something like http://www.afr.com/p/technology/…?

User avatar
pahles
Bear Rating Disaster
Bear Rating Disaster
Posts: 50
Joined: 20 Mar 2013, 17:02

Re: Bogus link not in feeds

Postby pahles » 25 Nov 2013, 17:47


feader
Bear Rating Master
Bear Rating Master
Posts: 160
Joined: 26 Dec 2012, 20:03

Re: Bogus link not in feeds

Postby feader » 25 Nov 2013, 18:29

pahles wrote:This feed does not validate.

That shouldn't be too bad since the feed is valid XML, and ttRSS just ignores tags'n'stuff that aren't specified for RSS. It's a strange feed, but I've seen worse.

krux
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 25 Nov 2013, 18:57

Re: Bogus link not in feeds

Postby krux » 25 Nov 2013, 18:59

evilbunny wrote:because if I look at the raw rss it has links for each article.


[email protected] ~ $ curl http://www.afr.com/rss/technology | grep http
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0<?xml version="1.0" encoding="UTF-8"?><rss xmlns:admin="http://webns.net/mvcb/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" version="2.0">
<atom:link href="http://www.afr.com/rss/technology" rel="self" type="application/rss+xml"/>
<link>http://172.16.133.43:51161/tablet/rss/win8</link>

Funny, doesn't look that way to me.

lotrfan
Bear Rating Disaster
Bear Rating Disaster
Posts: 73
Joined: 18 Mar 2013, 04:42

Re: Bogus link not in feeds

Postby lotrfan » 26 Nov 2013, 03:02

Not sure, but it might be because the feed only has a feed-level <link> element (i.e., there aren't any <link>s in the items), so TT-RSS uses the feed link for each article's link.

You can contact the creators of the feed and ask them to add <link>s to the items. (That shouldn't be too hard for them, since it looks like they're using links as guids.) If they don't cooperate, then it's probably possible to write a plugin to add the <link> elements based on the guid.

evilbunny
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 15 Nov 2013, 15:56

Re: Bogus link not in feeds

Postby evilbunny » 26 Nov 2013, 06:00



TT-RSS deals with it just fine, except for the links.

feader
Bear Rating Master
Bear Rating Master
Posts: 160
Joined: 26 Dec 2012, 20:03

Re: Bogus link not in feeds

Postby feader » 26 Nov 2013, 16:38

I'm still not sure if I understood you, but I'm going ahead anyway. According to this, ttRSS uses the guid value for article links only if the attribute isPermaLink exists and is set to true, which it isn't in this feed. You can use ff_FeedCleaner to change this, and BTW fix the byline tag with a configuration like

Code: Select all

[
   {
      "URL": "afr.com/rss/technology",
      "type": "regex",
      "pattern": "/(<guid)>/",
      "replacement": "$1 isPermaLink=\"true\">"
   },
   {
      "URL": "afr.com/rss/technology",
      "type": "regex",
      "pattern": "#(</?)byline>#",
      "replacement": "$1author>"
   }
]

Disclaimer: I didn't test it.

evilbunny
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 15 Nov 2013, 15:56

Re: Bogus link not in feeds

Postby evilbunny » 27 Nov 2013, 11:59

feader wrote:I'm still not sure if I understood you, but I'm going ahead anyway. According to this, ttRSS uses the guid value for article links only if the attribute isPermaLink exists and is set to true, which it isn't in this feed. You can use ff_FeedCleaner to change this, and BTW fix the byline tag with a configuration like

Disclaimer: I didn't test it.


I've installed ff_feedcleaner and it logged that it ran, but I'm still getting the bad links.

evilbunny
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 15 Nov 2013, 15:56

Re: Bogus link not in feeds

Postby evilbunny » 28 Nov 2013, 12:34

it's now working, not sure why or how, but thanks for your help feader.

UPDATE:

At a guess it didn't work because ff_feedcleaner doesn't work during initial imports, only on updates.

feader
Bear Rating Master
Bear Rating Master
Posts: 160
Joined: 26 Dec 2012, 20:03

Re: Bogus link not in feeds

Postby feader » 28 Nov 2013, 17:52

evilbunny wrote:At a guess it didn't work because ff_feedcleaner doesn't work during initial imports, only on updates.

I thought it might work after a time. FEED_FETCHED hooks definitely work during the initial import, it may have been the other way around that existing articles weren't (and still aren't?) updated. That might have been a caching issue, but one must know ttRSS better then I do to give a definitive answer.

evilbunny
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 15 Nov 2013, 15:56

Re: Bogus link not in feeds

Postby evilbunny » 29 Nov 2013, 06:33

feader wrote:
evilbunny wrote:At a guess it didn't work because ff_feedcleaner doesn't work during initial imports, only on updates.

I thought it might work after a time. FEED_FETCHED hooks definitely work during the initial import, it may have been the other way around that existing articles weren't (and still aren't?) updated. That might have been a caching issue, but one must know ttRSS better then I do to give a definitive answer.


I went into the database and deleted all entries with the bad url and the next update pulled them in with the right urls.


Return to “Support”

Who is online

Users browsing this forum: No registered users and 7 guests