Sorrow446 / MOOV-DL

Tool written in Python to download streamable tracks from moov.hk.
29 stars 10 forks source link

Can't download anything with my vpn #5

Closed hintlou closed 3 years ago

hintlou commented 3 years ago

C:\Users\Administrator>C:\Users\Administrator\MOOV-DL\moov-dl_x86.exe -u https:/ /moov.hk/#/album/VAEP00521645A


| | | | | || | | | | | | | | | | | || | | | |||_|___|__|\/ |__/|___|

Traceback (most recent call last): File "urllib3\connectionpool.py", line 696, in urlopen File "urllib3\connectionpool.py", line 964, in _prepare_proxy File "urllib3\connection.py", line 359, in connect File "urllib3\connection.py", line 502, in _connect_tlsproxy File "urllib3\util\ssl.py", line 432, in ssl_wrapsocket File "urllib3\util\ssl.py", line 474, in _ssl_wrap_socket_impl File "ssl.py", line 407, in wrap_socket File "ssl.py", line 817, in init File "ssl.py", line 1077, in do_handshake File "ssl.py", line 689, in do_handshake ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:847)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "requests\adapters.py", line 449, in send File "urllib3\connectionpool.py", line 756, in urlopen File "urllib3\util\retry.py", line 573, in increment urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='mtg.now.com', port=4 43): Max retries exceeded with url: /moov/api/user/loginstatuscheck (Caused by S SLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:847)'),))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "moov-dl.py", line 297, in auth() File "moov-dl.py", line 107, in auth if not client.auth(cfg['email'], cfg['password']): File "api\client.py", line 41, in auth 'POST', 'user/loginstatuscheck', headers, data=data File "api\client.py", line 11, in make_call r = self.s.request(method, self.base + epoint, headers=headers, params=param s, data=data) File "requests\sessions.py", line 542, in request File "requests\sessions.py", line 655, in send File "requests\adapters.py", line 514, in send requests.exceptions.SSLError: HTTPSConnectionPool(host='mtg.now.com', port=443): Max retries exceeded with url: /moov/api/user/loginstatuscheck (Caused by SSLEr ror(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:847)'),)) [9120] Failed to execute script moov-dl

Sorrow446 commented 3 years ago

Not recommended, but you can change this line in api/client.py. From:

r = self.s.request(method, self.base + epoint, headers=headers, params=params, data=data)

To:

r = self.s.request(method, self.base + epoint, headers=headers, params=params, data=data, verify=False)
hintlou commented 3 years ago

Thanks.But it can't work.moov is unavailable in my country,China.Is it the reason I can't connect to moov even with VPN?

Sorrow446 commented 3 years ago

It might be a requests / urllib bug. Disabling verify like above should fix your issue.

hintlou commented 3 years ago

Solved.Done.Thank you very much~

Sorrow446 commented 3 years ago

You're welcome.