Sports
Bore and Stoke Ep 28: Tales from Pikes Peak and the TT

Invocation of method ‘findOptionalDateQuiet’ in class com.simplefeed.common.data.DataTree threw exception java.lang.IllegalStateException: Unexpected exception. at org.apache.velocity[line 36, column 24]
INPUT:
#if (!$itemExisted or ($itemExisted and $itemExisted.getData().containsKeyWithPrefix('sf_video')==false) )
#set($ilink = $item.getLink())
#set($ititle = $item.getTitle())
#set($iitems = $producer.findContentItemsByDataKey(['yahoov_motorcycle'],'title',$ititle,1) )
#foreach ($ii in $iitems)
#set($iilink = $ii.getLink())
#set($iititle = $ii.getTitle())
#set($iiuid = $ii.getData().findOptionalStringQuiet("uid"))
#set($enclosures = $ii.getData().findOptionalDTreesQuiet("enclosure"))
#foreach ($enclosure in $enclosures)
#set($encltype = $enclosure.findOptionalStringQuiet("type", "") )
#set($enclurl = $enclosure.findOptionalStringQuiet("url", "") )
#if ($encltype.contains('video') and $enclurl.contains('.mp4'))
#set($x = $item.getData().addValue('sf_video_link', $iilink))
#set($x = $item.getData().addValue('sf_video_title', $iititle))
#set($x = $item.getData().addValue('sf_video_url', $enclurl))
#set($x = $item.getData().addValue('sf_video_uid', $iiuid))
#set($x = $item.getData().setOptionalBooleanQuiet('updateForce', true))
#set($dctermsMod = $item.getData().findOptionalDateQuiet("dcterms:modified", null))
#if ($dctermsMod)
#set($newMod = $date.addMinutes($dctermsMod, 1))
#else
#set($newMod = $date.now())
#end
#set($x = $item.getData().putValue("dcterms:modified", $newMod))
#break
#end
#end
#end
#else
#set($x = $item.getData().addValue('sf_video_link', $itemExisted.getData().findOptionalStringQuiet('sf_video_link','')))
#set($x = $item.getData().addValue('sf_video_title', $itemExisted.getData().findOptionalStringQuiet('sf_video_title','')))
#set($x = $item.getData().addValue('sf_video_url', $itemExisted.getData().findOptionalStringQuiet('sf_video_url','')))
#set($x = $item.getData().addValue('sf_video_uid', $itemExisted.getData().findOptionalStringQuiet('sf_video_uid','')))
#set($x = $item.getData().addValue('dcterms:modified',
$itemExisted.getData().findOptionalDateQuiet('dcterms:modified',null)))
#end



