- if item['enclosure'] is not None:
- handler.addQuickElement(u"link", '',
- {u"rel": u"http://opds-spec.org/acquisition",
- u"href": item['enclosure'].url,
- u"length": item['enclosure'].length,
- u"type": item['enclosure'].mime_type})
+ for enc in item.get('enclosures', []):
+ handler.addQuickElement(
+ u"link", '',
+ {
+ u"rel": u"http://opds-spec.org/acquisition",
+ u"href": enc.url,
+ u"length": enc.length,
+ u"type": enc.mime_type,
+ })