Page 1 of 1

Spaces in vlc-x-callback URL?

Posted: 01 Jan 2016 02:04
by Bond007
Anybody having trouble getting vlc-x-callback to work with URL's that contain spaces? I'm on 2.7.1.

I can get this to work:

Code: Select all

vlc-x-callback://x-callback-url/stream?url=http%3A%2F%2F192.168.0.2%2Fmovies%2Ftest.mkv (vlc-x-callback://x-callback-url/stream?url=http://192.168.0.2/movies/test.mkv)
but not this:

Code: Select all

vlc-x-callback://x-callback-url/stream?url=http%3A%2F%2F192.168.0.2%2Fmovies%2Ftest%202.mkv (vlc-x-callback://x-callback-url/stream?url=http://192.168.0.2/movies/test 2.mkv)
With the space, it does successfully launch the VLC app but it just shows the "Empty Media Library" screen (or whatever the last screen I was on).

Looking over the revision history, I see there was once an FTP issue about spaces in URL's that was fixed in 2.2.1. Not sure if it's a similar issue but with vlc-x-callback now.

Re: Spaces in vlc-x-callback URL?

Posted: 01 Jan 2016 18:34
by Bond007
OK, I was able to find a workaround for this. It's definitely an issue in 2.7.1, but you can work around it "double-encoding" a space character. Encode a percent sign (%25) followed by a space (%20) but without the %. In other words, use:

Code: Select all

%2520 => %25 becomes '%', so this becomes '%20', which then gets URL-decoded as a space
In my case, for my "test 2.mkv" file, my URL becomes:

vlc-x-callback://x-callback-url/stream?url=http%3A%2F%2F192.168.0.2%2Fmovies%2Ftest%25202.mkv

Re: Spaces in vlc-x-callback URL?

Posted: 02 Jan 2016 15:10
by fkuehne
Yep, that's a regression in 2.7.x - will fix for 2.7.2.