I've seen mention elsewhere on drupal.org but don't see a feature request, so here goes.
The news aggregator is a great piece of Drupal as far as I'm concerned and I'd sure like to see it read all the sources out there, have the 'blog this' function, and also have a tool for browsers to generate a blog entry from a web page (like MT had).

Is that a big enough request? LOL

Thanks for all that everyone does here. Great stuff!

gil

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drumm’s picture

Title: Parse 2.0 and atom feeds, please??? » Parse atom feeds

RSS 2.0 feeds should work in 4.5.0 and earlier.

georgehotelling’s picture

I've hacked Magpie support into the Drupal aggregator, so it can support Atom. If you have a Drupal site and want the code, you can get it from http://george.hotelling.net/projects/magpie-aggregator-4.5.2.tgz

I'm not sure if I'm supposed to create a patch or what, but I needed this for ArborBlogs.com and figured some other people would benefit from it.

Prometheus6’s picture

FileSize
5.46 KB

Very nice.

I hacked aggregator.module for 4.6 using your module as a guide...well, frankly by ripping out great chunks of code for my use.

Boris Mann’s picture

Version: » x.y.z

Can someone roll a patch for this? Would be a good addition for 4.7 now that Atom is at 1.0.

Prometheus6’s picture

Status: Active » Needs review
FileSize
7.87 KB

A patch would require the Magpie include files and wholly restructures the way the feeds are parsed...the Magpie code would handle all the feeds, not just Atom.

That said, the attached zip file has the necessary includes and a patch to CVS.

Steven’s picture

Status: Needs review » Active

Magpie RSS duplicates a lot of functionality that is already in Drupal. We decided a long time ago that we would not use it. Porting Atom parsing into the current aggregator can't be that hard.

Prometheus6’s picture

Assigned: Unassigned » Prometheus6
Status: Active » Needs review
FileSize
1.93 KB

Since I'm messing around with the aggregator module anyway...

I developed this around Atom 0.3 feeds this weekend, but I don't see anything in Atom 1.0 that should break it.

eaton’s picture

+1 on that patch. Running it now on my test site and everything looks great.

Bèr Kessels’s picture

Status: Needs review » Needs work

a small issue, whe do not use
if ($data) $items[$item][$tag] .= $data;
please just use

if ($data) {
  $items[$item][$tag] .= $data;
}
Prometheus6’s picture

Status: Needs work » Needs review
FileSize
1.99 KB

Not a problem. Here's the corrections.

Dries’s picture

If this is all it takes to parse Atom feeds (to some extend), I'm all for it. Code looks OK. Set to 'ready to be committed' after some testing.

kika’s picture

anybody up for a testing suite tests? http://intertwingly.net/wiki/pie/FormatTests

Prometheus6’s picture

That would be for the Atom module.

Prometheus6’s picture

FileSize
2.35 KB

Because the aggregator would always gather enough information todownload an Atom feed, the previous patch focused on parsing items/entries correctly.

This patch adds more complete parsing of the feed's channel data (site link, subtitle/description, logo). Now all the feed and item fields will be properly updated.

Prometheus6’s picture

The content of the Atom feed's id and info tags were being displayed as part of the feed's description on the aggregator pages. With this patch those tags are recognized and discarded.

The "blog it" link is also added to the aggregator page items in addition to the block.

Prometheus6’s picture

FileSize
3.69 KB

Let's try that with the patch this time...

Dries’s picture

Committed a partial patch. Left out the 'blog it' stuff for now but committed the parsing part. The 'blog it' stuff needs more review and testing.

Prometheus6’s picture

Okay. Just to let you know, I added the blog it link because of this conversation.

http://drupal.org/node/10752

I'll make a patch tonight just for the blog it feature, so this item can be closed if you like.

Prometheus6’s picture

FileSize
1.13 KB

Atom feeds have a CONTENT and/or SUMMARY tag instead of a DESCRIPTION tag. Currently, if both tags are present the aggregator appends the content of both fields to replace the content of the DESCRIPTION tag. This patch uses the CONTENT tag OR the SUMMARY tag.

Dries’s picture

Status: Needs review » Fixed
robertDouglass’s picture

I'm confused; is this applied to HEAD, or not? My latest installation of HEAD does not handle Atom feeds, so if it is in there, it is broken.

Prometheus6’s picture

The title isn't being picked up so the items aren't being saved....I'll look at it today.

Prometheus6’s picture

Status: Fixed » Needs review
FileSize
926 bytes

Here's a correction. I'll explain it if I have to...I'm a little sleepy at the moment.

Dries’s picture

Status: Needs review » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Prometheus6’s picture

Version: x.y.z » 4.6.3
Status: Fixed » Closed (fixed)
benwei’s picture

FileSize
4.14 KB

Hey,

I know this issue is closed, but just as a convenience for people still on 4.6 who want to get at the feature, I've applied all three of these patches to a default 4.6.5 install and made a single, combined patch that works against 4.6.5 out of it.

Cheers,
Ben Weintraub