Comment 13 for bug 1449790

Revision history for this message
Jim Hodapp (jhodapp) wrote : Re: [Bug 1449790] Re: Fails to play a file with a # (hash symbol) in the path

Did you give QUrl::toEncoded a try? I think this function will accomplish
exactly what you want without needing to do specific manual encoding of the
string: http://doc.qt.io/qt-5/qurl.html#toEncoded

On Sun, Aug 16, 2015 at 3:07 PM, Neil McPhail <email address hidden> wrote:

> My final experiment was as per the attached patch (from bzr rev 68), so
> I _think_ this takes care of the latest point qtmedia-ubuntu touches
> those uri's.
>
> ** Patch added: "fromr68.diff"
>
> https://bugs.launchpad.net/media-hub/+bug/1449790/+attachment/4445549/+files/fromr68.diff
>
> --
> You received this bug notification because you are a member of Canonical
> Phone Foundations, which is a bug assignee.
> https://bugs.launchpad.net/bugs/1449790
>
> Title:
> Fails to play a file with a # (hash symbol) in the path
>
> Status in Canonical System Image:
> Confirmed
> Status in Media Hub:
> Triaged
>
> Bug description:
> Playing a song from the music app will fail if the path contains a #
> symbol. The failure appears to be at the media-hub level.
>
> Example: Try to play track under "Music/Lots of #1
> hits/annoying_hit.mp3"
>
> What should happen: Song should play
>
> What actually happens: Song info loads in music player screen but
> track does not play and duration is set to zero.
>
>
> This bug has been confirmed by ahayzen on #ubuntu-touch who submitted
> this example log: http://pastebin.ubuntu.com/10931522/
>
> The file plays normally if the # is removed from the path.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/canonical-devices-system-image/+bug/1449790/+subscriptions
>