Blog2004 ≫ RSS Enclosure malarkey

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](/wiki/#rss) 2.0? It's driving me mad...

💬 RSS

⬅️ :: ➡️

Paulʼs weblog - I live in Hythe in Kent. Married + father to 2, I am a full-stack web engineer, and I do js / node, some ruby, python, php etc. I like pubs, running, restaurants, home automation + other diy jiggery-pokery, history, tree stuff, television, squirrels, pirates ☠️, lego, and time travel.