D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-03-10 Thread James Smith
smithjd added a comment. This test fails: FAIL! : TagLibExtractorTest::testMp4(mp4) Compared values are not the same Actual (resultMp4.properties().value(Property::Rating).toInt()): 0 Expected (8) : 8 Loc: [/home/enderw

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-03-10 Thread Alexander Stippich
This revision was automatically updated to reflect the committed changes. Closed by commit R286:649555ee3182: Rewrite the taglib extractor to use the generic PropertyMap interface (authored by astippich). CHANGED PRIOR TO COMMIT https://phabricator.kde.org/D18826?vs=53587&id=53599#toc REPOSITO

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-03-10 Thread Stefan Brüns
bruns accepted this revision. bruns added a comment. This revision is now accepted and ready to land. Thanks, looks good to me now. REPOSITORY R286 KFileMetaData BRANCH arcpatch-D18826 REVISION DETAIL https://phabricator.kde.org/D18826 To: astippich, ngraham, bruns, mgallien Cc: smith

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-03-10 Thread Alexander Stippich
astippich updated this revision to Diff 53587. astippich marked an inline comment as done. astippich added a comment. - spelling fixes REPOSITORY R286 KFileMetaData CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D18826?vs=53585&id=53587 BRANCH arcpatch-D18826 REVISION DETAIL

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-03-10 Thread Alexander Stippich
astippich marked 3 inline comments as done. astippich added inline comments. INLINE COMMENTS > bruns wrote in taglibextractor.cpp:364 > This intermediate list is not required, you can directly call result->add() > for each attribute in lstASF. After further investigation there is no need to loo

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-03-10 Thread Alexander Stippich
astippich updated this revision to Diff 53585. astippich added a comment. - update REPOSITORY R286 KFileMetaData CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D18826?vs=52890&id=53585 BRANCH arcpatch-D18826 REVISION DETAIL https://phabricator.kde.org/D18826 AFFECTED FILES

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-03-08 Thread Stefan Brüns
bruns requested changes to this revision. bruns added inline comments. This revision now requires changes to proceed. INLINE COMMENTS > taglibextractor.cpp:364 > +lstASF = asfTags->attribute("Author"); > +QStringList authors; > for (const auto& attribute : qAsConst(lstASF)) { This i

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-03-08 Thread Alexander Stippich
astippich added a comment. ping REPOSITORY R286 KFileMetaData REVISION DETAIL https://phabricator.kde.org/D18826 To: astippich, ngraham, bruns, mgallien Cc: smithjd, kde-frameworks-devel, #baloo, gennad, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-03-01 Thread Alexander Stippich
astippich added inline comments. INLINE COMMENTS > bruns wrote in taglibextractor.cpp:208 > Can you also use the same style as above, i.e. `const auto` and `for( : )`? Oh, damn copy&paste > smithjd wrote in taglibextractor.cpp:195 > lstASF = asfTags->attribute("WM/Writer"); > ... > > The exist

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-03-01 Thread Alexander Stippich
astippich updated this revision to Diff 52890. astippich marked 8 inline comments as done. astippich added a comment. - rebase on master - implement review comments - cleanup includes REPOSITORY R286 KFileMetaData CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D18826?vs=52679&i

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-02-27 Thread Stefan Brüns
bruns added inline comments. INLINE COMMENTS > taglibextractor.cpp:184 > +if (savedProperties.contains("COMPOSER")) { > +const auto composersString = > TStringToQString(savedProperties["COMPOSER"].toString(";")).trimmed(); > +const auto composers = contactsFromString(compose

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-02-26 Thread James Smith
smithjd added inline comments. INLINE COMMENTS > astippich wrote in taglibextractor.cpp:195 > I wanted to do so first, but that will require to also put the PropertyMap > into the extractAsfTags method, which I think is not worth it. lstASF = asfTags->attribute("WM/Writer"); ... The existing c

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-02-26 Thread Alexander Stippich
astippich updated this revision to Diff 52679. astippich added a comment. - remove now unnecessary include REPOSITORY R286 KFileMetaData CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D18826?vs=52675&id=52679 BRANCH rewrite_taglib_extractor REVISION DETAIL https://phabricator

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-02-26 Thread Alexander Stippich
astippich marked an inline comment as done. astippich added inline comments. INLINE COMMENTS > smithjd wrote in taglibextractor.cpp:195 > Can this be moved into the asf-specific extractions? I wanted to do so first, but that will require to also put the PropertyMap into the extractAsfTags metho

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-02-26 Thread Alexander Stippich
astippich updated this revision to Diff 52675. astippich added a comment. - return early if map is empty REPOSITORY R286 KFileMetaData CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D18826?vs=51128&id=52675 BRANCH rewrite_taglib_extractor REVISION DETAIL https://phabricator.k

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-02-24 Thread James Smith
smithjd added inline comments. INLINE COMMENTS > taglibextractor.cpp:109 > +{ > +if (savedProperties.contains("TITLE")) { > +result->add(Property::Title, > TStringToQString(savedProperties["TITLE"].toString()).trimmed()); This could return early if the property map is empty. > tagl

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-02-17 Thread Alexander Stippich
astippich added a comment. ping. I know this is quite a large diff, but it fixes a potential crash REPOSITORY R286 KFileMetaData REVISION DETAIL https://phabricator.kde.org/D18826 To: astippich, ngraham, bruns, mgallien Cc: kde-frameworks-devel, #baloo, ashaposhnikov, michaelh, astippich

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-02-07 Thread Alexander Stippich
astippich edited the test plan for this revision. REPOSITORY R286 KFileMetaData REVISION DETAIL https://phabricator.kde.org/D18826 To: astippich, ngraham, bruns, mgallien Cc: kde-frameworks-devel, #baloo, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams

D18826: Rewrite the taglib extractor to use the generic PropertyMap interface

2019-02-07 Thread Alexander Stippich
astippich created this revision. astippich added reviewers: ngraham, bruns, mgallien. Herald added projects: Frameworks, Baloo. Herald added subscribers: Baloo, kde-frameworks-devel. astippich requested review of this revision. REVISION SUMMARY Rewrite the taglib extractor to use taglib's Prop