Closed karlo2105 closed 7 years ago
I think this is general limitation of the Windows terminal, nothing specific to tvr.by
or the proxy. I assume your computer is set to French?
Lemme try and recreate it in Windows 10...
Yes computer is in French. I don't have Windows 10. ;) You think it's Windows 7 limitation ? I wonder on other plugins, I don't remember even with dead proxies such messages as here above.
Aucune connexion n\u2019a pu être établie car l\u2019ordi nateur cible l\u2019a expressément refusée'
No connection was established because target computer refused it.
OK, can you see if doing
chcp 65001
before running streamlink
fixes it?
Now I have shorter message :
streamlink -p "%homedrive%\Users\Ddr\Downloads\VLCPortable\App\vlc\vlc"
--http-proxy "86.57.146.126:3128" "http://www.tvr.by/televidenie/belarus-2"
[cli][info] Found matching plugin tvrby for URL http://www.tvr.by/televidenie/be
larus-2
error: Unable to open URL: http://www.tvr.by/televidenie/belarus-2/ (HTTPConnect
ionPool(host='86.57.146.126', port=3128): Max retries exceeded with url: http://
www.tvr.by/televidenie/belarus-2/ (Caused by ProxyError('Cannot connect to proxy
.', NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection obj
ect at 0x02C8BDF0>: Failed to establish a new connection: [WinError 10061] Aucun
e connexion n’a pu être établie car l’ordinateur cible l’a expressément
refusée',))))
OK... better, still not exactly what you want. What if you do
chcp 65001
set PYTHONIOENCODING=utf-8
streamlink ...
?
I did it step by step and I got same message as above on every attempt but proxy is fast active. First I thought it was related to proxy, but it loads pages quickly.
It seems to be a limitations of Windows, so I think setting the codepage is closest we can get... I have updated the streamlink.bat
to set the codepage to 65001
.
Appreciate it. ;)
As you can see below with fast proxy I got 50 % of time long error messages on streamlink. Is it normal ? To reproduce it you need to make several attempts.