a-dekker / smpc

Official port of Qt/Qml based qmobilempd MPD Client. (From symbian)
Other
4 stars 7 forks source link

list albums (all and artist) #7

Closed fuchsmich closed 4 years ago

fuchsmich commented 4 years ago

I rewrote most of the c++ code listing albums. I tested with 0.19 from debian oldstable, 0.21 from debian stable and current mpd on arch (thanks to docker it's easy to run different versions of mpd).

Albumlist:

Albumlist for Artist:

a-dekker commented 4 years ago

I'll test your changes on short notice myself, thanks for your work so far.

a-dekker commented 4 years ago

I've walked though the diffs and did not notice any worrying changes. But keep in mind I am not a C++ programmer. Furthermore played a bit with a compiled version of your a-devel branch and I did not notice issues. So I guess we have to wait until you get this PR out of draft state when it's finalized?

fuchsmich commented 4 years ago

Yes, I just have to sort out, where the changes come from in other parts of the code and what theses changes are for. I'm afraid I overwrote some old changes.

fuchsmich commented 4 years ago

ok, could you please test the last commit? for me it works for songs, album and artists with quotes.

But there are a lot of other places in the code, where I think the arguments should be escaped as well...

a-dekker commented 4 years ago

Yes, I am able to play the album once again. I also did some related changes for the coverart: https://github.com/a-dekker/smpc/commit/9568ff8af2ba917f64216860f4e1a64fc314f9b9 (change in src/localdb/imagedatabase.cpp )

fuchsmich commented 4 years ago

Some clean up. The fix in imagedatabase.cpp is still present.

a-dekker commented 4 years ago

The fix in imagedatabase.cpp is still present.

I know, but I was using it as an example referring to you remark that in other places arguments should be escaped as well.