vlc-protocol
vlc-protocol copied to clipboard
VLC error - "Your input can't be opened"
I found a link that doesn't work if opened with vlc-protocol but does work if you put it into VLC manually.
vlc://https://www.tvplusonline.ru/getsignedurlcdnv3.php?q=1&p=a&s=itImaVEebXL&c=che
https://www.tvplusonline.ru/getsignedurlcdnv3.php?q=1&p=a&s=itImaVEebXL&c=che
In the first case vlc redirected to wrong link
https://live-hls-secure-tvplusonline.cdnvideo.ru//index.m3u8?md5=PzJ5DsNR9H8GgfB-wN5iYQ&e=1587131716
in the second case vlc redirected to working link
https://live-hls-secure-tvplusonline.cdnvideo.ru/che/index.m3u8?md5=VPLACBE1bTVua69O0yJIMQ&e=1587132310
VLC issue?
Hi.
No idea, vlc-protocol at least does not perform any network requests.
I don't see a difference in the response with these two:
curl -v 'https://www.tvplusonline.ru/getsignedurlcdnv3.php?q=1&p=a&s=itImaVEebXL&c=che'
curl -v -A 'VLC/3.0.8 LibVLC/3.0.8' 'https://www.tvplusonline.ru/getsignedurlcdnv3.php?q=1&p=a&s=itImaVEebXL&c=che'
I am not able to open it in VLC at all. Probably geo-restricted?
I put a pause command to vlc-protocol.bat to debug. Somehow the link splited by "&" and to VLC goes wrong link as a result.
http://dl3.joxi.net/drive/2020/04/18/0011/0967/779207/07/fcaf05232b.jpg
Changed
Setlocal EnableDelayedExpansion
set url=%~1
set url=!url: =%%20!
start "VLC" "%~dp0vlc.exe" --open "%url:~6%"
to
Setlocal EnableDelayedExpansion
set url="%~1"
start "VLC" "%~dp0vlc.exe" --open %url:vlc://=%
in vlc-protocol.bat to proper work.
Didn't understand what set url=!url: =%%20!
means so removed it :)
That line was added in this PR: https://github.com/stefansundin/vlc-protocol/pull/8. Hmm..