Closed Thoxxx closed 3 years ago
reading the output it seems like its Failed to establish a new connection: [Errno 64] Host is down'
, are you sure its not on your side? it works here 🤔
It works for you? What can I do wrong? I can see the films at svtplay.se
yes
xprmnt svtplay-dl-dev/lib ‹master*› » python3 -m svtplay_dl https://www.svtplay.se/video/29852578/hjarter-dam\?start\=auto
INFO: Selected to download dash, bitrate: 3824 format: h264
INFO: Outfile: hjarter-dam-fefe04e-svtplay.m4a
[0024/1908][==..................................................................................................................................................] ETA: 0:01:13^C
xprmnt svtplay-dl-dev/lib ‹master*› »
i dont know what you have done. did you block the website? it works in the browser? what does curl https://www.svtplay.se/video/29852578/hjarter-dam?start=auto
say? do you get a bunch of html?
I get this in Terminal Last login: Thu Feb 18 21:45:07 on ttys000 Thomas-15:~ thomashuhn$ curl https://www.svtplay.se/video/29852578/hjarter-dam?start=auto <!DOCTYPE html>
it looks correct. it works here too. i tested the thing via brew too. works with that thing too..
I don't know much about programming and such. Any ideas?
I found the problem! Something had changed in Little Snitch that blocked svtplay.se in Terminal. Thanks for the support
woho, glad you found the problem! 🎉
svtplay-dl version 3.0 python version 2.7.16 python3 version 3.8.3
Terminalen säger detta:
svtplay-dl --verbose https://www.svtplay.se/video/29852578/hjarter-dam?start=auto DEBUG [1613679876.521395] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/svtplay_dl/utils/getmedia.py/get_media: version: 3.0 DEBUG [1613679876.522474] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/svtplay_dl/service/init.py/init: service: svtplay DEBUG [1613679876.522531] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/svtplay_dl/utils/http.py/request: HTTP getting 'https://www.svtplay.se/video/29852578/hjarter-dam?start=auto' DEBUG [1613679876.529301] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py/_new_conn: Starting new HTTPS connection (1): www.svtplay.se:443 DEBUG [1613679876.538025] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/util/retry.py/increment: Incremented Retry for (url='/video/29852578/hjarter-dam?start=auto'): Retry(total=4, connect=4, read=5, redirect=None, status=None) WARNING [1613679876.538219] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py/urlopen: Retrying (Retry(total=4, connect=4, read=5, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10da20220>: Failed to establish a new connection: [Errno 64] Host is down')': /video/29852578/hjarter-dam?start=auto DEBUG [1613679876.53853] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py/_new_conn: Starting new HTTPS connection (2): www.svtplay.se:443 DEBUG [1613679876.540145] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/util/retry.py/increment: Incremented Retry for (url='/video/29852578/hjarter-dam?start=auto'): Retry(total=3, connect=3, read=5, redirect=None, status=None) WARNING [1613679877.140511] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py/urlopen: Retrying (Retry(total=3, connect=3, read=5, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10da20460>: Failed to establish a new connection: [Errno 64] Host is down')': /video/29852578/hjarter-dam?start=auto DEBUG [1613679877.140921] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py/_new_conn: Starting new HTTPS connection (3): www.svtplay.se:443 DEBUG [1613679877.142845] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/util/retry.py/increment: Incremented Retry for (url='/video/29852578/hjarter-dam?start=auto'): Retry(total=2, connect=2, read=5, redirect=None, status=None) WARNING [1613679878.346951] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py/urlopen: Retrying (Retry(total=2, connect=2, read=5, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10da20610>: Failed to establish a new connection: [Errno 64] Host is down')': /video/29852578/hjarter-dam?start=auto DEBUG [1613679878.3474638] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py/_new_conn: Starting new HTTPS connection (4): www.svtplay.se:443 DEBUG [1613679878.349281] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/util/retry.py/increment: Incremented Retry for (url='/video/29852578/hjarter-dam?start=auto'): Retry(total=1, connect=1, read=5, redirect=None, status=None) WARNING [1613679880.7500758] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py/urlopen: Retrying (Retry(total=1, connect=1, read=5, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10da207c0>: Failed to establish a new connection: [Errno 64] Host is down')': /video/29852578/hjarter-dam?start=auto DEBUG [1613679880.750496] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py/_new_conn: Starting new HTTPS connection (5): www.svtplay.se:443 DEBUG [1613679880.7519271] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/util/retry.py/increment: Incremented Retry for (url='/video/29852578/hjarter-dam?start=auto'): Retry(total=0, connect=0, read=5, redirect=None, status=None) WARNING [1613679885.5524192] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py/urlopen: Retrying (Retry(total=0, connect=0, read=5, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10da20970>: Failed to establish a new connection: [Errno 64] Host is down')': /video/29852578/hjarter-dam?start=auto DEBUG [1613679885.552934] /usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py/_new_conn: Starting new HTTPS connection (6): www.svtplay.se:443 Traceback (most recent call last): File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connection.py", line 169, in _new_conn conn = connection.create_connection( File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/util/connection.py", line 96, in create_connection raise err File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/util/connection.py", line 86, in create_connection sock.connect(sa) OSError: [Errno 64] Host is down
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py", line 382, in _make_request self._validate_conn(conn) File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn conn.connect() File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connection.py", line 353, in connect conn = self._new_conn() File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connection.py", line 181, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x10da20b20>: Failed to establish a new connection: [Errno 64] Host is down
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py", line 783, in urlopen return self.urlopen( File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py", line 783, in urlopen return self.urlopen( File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py", line 783, in urlopen return self.urlopen( [Previous line repeated 2 more times] File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen retries = retries.increment( File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/urllib3/util/retry.py", line 573, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.svtplay.se', port=443): Max retries exceeded with url: /video/29852578/hjarter-dam?start=auto (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10da20b20>: Failed to establish a new connection: [Errno 64] Host is down'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/bin/svtplay-dl", line 7, in
svtplay_dl.main()
File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/svtplay_dl/init.py", line 69, in main
get_media(urls[0], config, version)
File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/svtplay_dl/utils/getmedia.py", line 61, in get_media
get_one_media(stream)
File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/svtplay_dl/utils/getmedia.py", line 96, in get_one_media
if not filename(stream):
File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/svtplay_dl/utils/output.py", line 119, in filename
data = ensure_unicode(stream.get_urldata())
File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/svtplay_dl/service/init.py", line 64, in get_urldata
self._urldata = self.http.request("get", self.url).text
File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/svtplay_dl/utils/http.py", line 41, in request
res = Session.request(self, method, url, verify=self.verify, proxies=self.proxy, *args, kwargs)
File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, send_kwargs)
File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/Cellar/svtplay-dl/3.0/libexec/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.svtplay.se', port=443): Max retries exceeded with url: /video/29852578/hjarter-dam?start=auto (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10da20b20>: Failed to establish a new connection: [Errno 64] Host is down'))