jeremyk
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2012
10:47 AM
Dealing with multiple enclosures in a feed
I am dealing with a feed that all of a sudden has multiple enclosures for some content and the code can't deal with it. Here is the current code. How can I grab just a single enclosure? I actually don't need all of them (they are the same), just one.
Thanks!
else if item.enclosure.Count() > 0
print item.enclosure@url
newStream = {
url: ValidStr(item.enclosure@url)
}
newItem.streams.Push(newStream)
result.Push(newItem)
end if
Thanks!
1 REPLY 1

RokuKevin
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2012
11:02 AM
Re: Dealing with multiple enclosures in a feed
Try: item.enclosure[0]@url
--Kevin
--Kevin