Cheers mater!
Home
Trying to put enclosures in my RSS using XML::RSS, but no matter what I try to add, the enclosure is ignored...
%item = (
'enclosure' => {
'type' => 'text/html',
'length' => '877',
'url' => 'http://www.lauraashley.com/'
},
'link' => 'http://www.clarkeology.com/stokey/22/12/',
'description' => 'Just trying to get a catalogue from lauraashley.com...',
'pubDate' => 'Tue, 2 Nov 2004 13:41:33 GMT',
'permaLink' => 'http://www.clarkeology.com/stokey/22/12/',
'title' => 'If you blog it, they will come'
)
$rss->add_item( %item );
The item's added every time, but the enclosure is ignored... are enclosures not supported in RSS 2.0? It's driving me mad...
pauly :: 2004 :: Comment / reply
Looks ok to me from the snippet - are you setting the
Also, I thought the XML::RSS support for 2.0 was in its very early stages at the moment so it may need more work before it supports everything you need it to do? Fairly sure it has full support for 0.9, 0.91, 0.92 and 1.0. I think enclosures were introduced back in 0.92 though so maybe the module's a bit buggy for 2.0 - what happens if you change the rss version header back e.g. "my $rss = new XML::RSS (version => '0.92');"?
Also, why are you puttin your attribute names in quotes? That might be causing it?
itchypaws :: 4 Nov :: 2004 :: Comment / reply
I suspect it's that XML::RSS isn't finished, but I will investigate further... You might have hit the nail on the head, I'm not specifically predeclaring the enclosures, maybe I need to do that, I thought XML::RSS would pick it up. There's no mention of it in any of the docs... I'm off to post a query on sourceforge.net...
I'm not putting the attributes in quotes in the real code, that bit I pasted onto the board was the output of Dumper( %item ), so I could see what was going in...
Got to run now, speak later, looking forward to next weekend...
pauly :: 4 Nov :: 2004 :: Comment / reply
Over to you, discussion about anything local, but please be considerate... Folkestone on TV, Kent gigs, Find a flatmate, rent a room, property queries, current news, what's new, local events, for sale, local services, what I like about Folkestone, ask questions, offer advice, plug yourself... the more it's used the more useful a resource it will become. If you want a gig listed click here to add it (fixed now!), or just click here to post a message...
Also from the same week
Some more posts from the same week as .
Lara's Loves and Lies [Tuesday 2 November 2004]
gay bars in folkestone kent [Wednesday 3 November 2004]
This BBC page has some [Wednesday 3 November 2004]
Folkestone Herald fake bombs the Channel Tunnel [Thursday 4 November 2004]
Organic veg deliveries in Folkestone [Wednesday 7 July 2004]
Groupware BAD [Thursday 17 February 2005]
Groupware Bad [Thursday 17 February 2005]
A Day In The Life of Miss McDonald [Sunday 20 February 2005]
lampbane: Katamari Doh-macy [Tuesday 22 February 2005]
RE: gay bars in folkestone kent [Tuesday 14 February 2006]
RE: This BBC page has some [Saturday 28 June 2008]
RE: gay bars in folkestone kent [Sunday 21 February 2010]

