<table><tr><td style="">michaelh requested changes to this revision.<br />michaelh added a comment.
</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/D11365">View Revision</a></tr></table><br /><div><div><p>This patch should be split.</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">Test more properties</li>
<li class="remarkup-list-item">Change return types of ...</li>
</ol>

<p>Also 'fix errors' in the title is misleading because currently kfilemetadata works well.</p></div></div><br /><div><strong>INLINE COMMENTS</strong><div><div style="margin: 6px 0 12px 0;"><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D11365#inline-58637">View Inline</a><span style="color: #4b4d51; font-weight: bold;">astippich</span> wrote in <span style="color: #4b4d51; font-weight: bold;">taglibextractor.cpp:363</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">That was actually the point for this. In propertyinfo, it says that this property is a stringlist, but it was actually never one, just a simple string. <br />
For multiple values, there will be multiple entries in the property map with a single string.  This is not considered within Elisa at least. We could also go the other way and adjust the properties to match the behavior. <br />
<a href="https://phabricator.kde.org/p/michaelh/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@michaelh</a> agreed that stringlists are easier to handle</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">You have to ensure baloo searching still works, when string lists contains more than 1 items. I think it will break.</p>

<p style="padding: 0; margin: 8px;">Generally IMO returning a string list is the natural thing to do here. <br />
On the other hand: Why is <tt style="background: #ebebeb; font-size: 13px;">PropertyInfo</tt> announcing the value type when calling <tt style="background: #ebebeb; font-size: 13px;">.type()</tt> on a QVariant would be sufficient. There must be a reason for using <tt style="background: #ebebeb; font-size: 13px;">PropertyMap</tt> and giving a type hint in <tt style="background: #ebebeb; font-size: 13px;">PropertyInfo</tt>. Unless somebody knows the reason this will need some investigation and a concerted action if we choose to change it.<br />
I've put <a href="https://phabricator.kde.org/D10694" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D10694</a> on hold because of that.</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D11365#inline-58636">View Inline</a><span style="color: #4b4d51; font-weight: bold;">astippich</span> wrote in <span style="color: #4b4d51; font-weight: bold;">taglibextractor.cpp:393</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">This one is a litte bit more tricky, as the year property could theoretically also be negative (B.C.). Not really relevant for music, but maybe for written documents, and still only very rarily :)</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">It depends on how you define 'releaseYear' if you think of it as year published negative dates can be ruled out. ;-)</p></div></div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R286 KFileMetaData</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11365">https://phabricator.kde.org/D11365</a></div></div><br /><div><strong>To: </strong>astippich, Frameworks, Baloo, mgallien, michaelh<br /><strong>Cc: </strong>michaelh, Frameworks, ashaposhnikov, astippich, spoorun, nicolasfella, ngraham, alexeymin<br /></div>