Rss Feeder with feedburner links

Hi!

When I import feeds from feedburner.com using Feed Importers - it shows the feedburner.com URLs in place of direct URLs. Is there a way I can display only the final URLs but not the feedbruner.com URLs.

Appreciate your help on this.

Thanks,
Vijay

Unfortunately not...

Hi,

I wish there were a way to "solve" this :-(

The problem is that you are basically at the mercy of the RSS feed, in terms of links. The RSS feed at feedburner.com points to *their* site... they are free to do that - and they do :-/

There is no way for Drigg to know where the "actual" link is -- the info isn't there.

Merc.

Found a fix

How I fixed this, a quick hack to the aggregator module:

On line 877 of drupal/modules/aggregator/aggregator.module I added the folowing code:

if ($item['FEEDBURNER:ORIGLINK']) {
$link = $item['FEEDBURNER:ORIGLINK'];
}

Addendum

This works now 80% of the time, but some feed formats don't work.

To get the other 80% to work I further hacked aggregator module:

line 601 add:

case 'FEEDBURNER:ORIGLINK':

Then on the new line 687 add:

case 'FEEDBURNER:ORIGLINK':
$items[$item]['FEEDBURNER:ORIGLINK'] .= $data;
break;

I'm not sure why this was necessary, but it now seems to work.

Feedburner original link and description

Feedburner includes this:
< feedburner:origLink >< /feedburner:origLink >

At the bottom of their feeds in addition to < link >< /link > at the top of the feeds.

I'm working on modifying my copy of drigg to grab origLink . I'm also trying to limit the input to just what is included in - I'm probably being paranoid, but I want to make sure I am 100% w/in the fair use terms of copyright law.

Merc! I have found the

Merc!

I have found the below code
" <?php print theme_format_url_home($url); ?> –"
in nod-drigg.tpl.php stripping the url.

In place of $URL above, can I use $link from the table aggregator_feed ?
I am seeing the actual urls (non-feedburner urls) in link column in the above table.

Sorry..I know it is a dumb question, I am a very beginner in PHP :(

Really appreciate your inputs.

Thanks,
Vijay

oh....no

Thanks, Merc for the response.

In that case, I would need to find non-feedburner rss feeds :-(
But, with the little scripting knowledge I have..I was dumbly thinking that there would be a solution to check if the url has a redirect and extrac the final url (like target save as :-)

Thank you so much merc for such a wonderful script.