<table><tr><td style="">broulik created this revision.<br />broulik added a reviewer: vkrause.<br />Herald added a project: KDE PIM.<br />Herald added a subscriber: kde-pim.<br />broulik requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D27600">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Itinerary expects <tt style="background: #ebebeb; font-size: 13px;">image</tt> as a <tt style="background: #ebebeb; font-size: 13px;">QUrl</tt>, so when a websites uses an Array with multiple images (not sure how compliant that is but very common), at least take the first one so we have something to show.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Suddenly got images on many more restaurant websites :)<br />
<tt style="background: #ebebeb; font-size: 13px;">QJsonArray::first()</tt> doesn't assert like <tt style="background: #ebebeb; font-size: 13px;">QList::first()</tt> when empty since it returns a <tt style="background: #ebebeb; font-size: 13px;">QJsonValue</tt> and no reference.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R1003 KItinerary: Travel Reservation handling library</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27600">https://phabricator.kde.org/D27600</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/jsonldimportfilter.cpp</div></div></div><br /><div><strong>To: </strong>broulik, vkrause<br /><strong>Cc: </strong>kde-pim, fbampaloukas, dcaliste, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>