jo1gi / audiobook-dl

Audiobook CLI downloader
GNU General Public License v3.0
248 stars 43 forks source link

Win11 New Installl Doesn't Complete Download - Win10 works perfectly fine #83

Open jmhuff1542 opened 10 months ago

jmhuff1542 commented 10 months ago

This works with no issues on my Win10 box. This issue is happening on my new install on Win11.

Just installed the following:

I have run it multiple times and it will fail out at different percentages. Again, this works perfectly fine on my Win10 box.

C:\Users\User\Desktop\audiobook-dl\new>audiobook-dl https://www.everand.com/listen/376567608 --debug
DEBUG audiobook-dl 0.7.2
DEBUG python 3.12.1 (tags/v3.12.1:2305ca5, Dec  7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)]
 INFO Finding compatible source
 INFO Authenticating with everand
DEBUG Loading cookies from './cookies.txt'
DEBUG Downloading result of https://www.everand.com/listen/376567608
DEBUG metadata={'id': 376567608, 'canonical_doc_id': None, 'title': 'Loving Your Spouse When You Feel Like Walking Away: Positive Steps for Improving a Difficult Marriage', 'cover_url':
'https://imgv2-1-f.scribdassets.com/img/audiobook_square_badge/376567608/original/368x368/4c539ba874/1697165958?v=1', 'cover_url_retina':
'https://imgv2-1-f.scribdassets.com/img/audiobook_square_badge/376567608/original/736x736/6f8dcb1b9d/1697165958?v=1', 'url':
'https://www.everand.com/audiobook/376567608/Loving-Your-Spouse-When-You-Feel-Like-Walking-Away-Positive-Steps-for-Improving-a-Difficult-Marriage', 'document_type': 'audiobook', 'is_snapshot': False, 'author': {'url':
'https://www.everand.com/author/660157144/Gary-Chapman', 'name': 'Gary Chapman'}, 'narrators': [{'name': 'Chris Fabry', 'url': 'https://www.everand.com/author/708522370/Chris-Fabry'}]}
DEBUG csrf={'csrf_token': '1n_8TsIbXL7JbWXH2TmZ9zSzAqWwa6ttIL1BVK93WtpQSs9eR77WaY4-Iu6Qk5ZNAaY7HJhoAGlejcT3DkZtGQ'}
DEBUG external_id='216579'
DEBUG account_id='scribd-39397011'
DEBUG session_key='9704abf7-0ce1-4c8a-a169-cc0dafe892cd'
 INFO
 INFO Downloading Loving Your Spouse When You Feel Like Walking Away: Positive Steps for Improving a Difficult Marriage from everand
 INFO Creating output dir
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/ADjpy30TlWx1qxJLcr)SZYQjxrSqbucnjdUMeeYj(8ZQOh(yzYvwZLo55unOTcoL2bzq9bn1)gZkX(TOfh35(Ikbgen0PBD8saAgK8W4p(lp3fYHk(CNrykZFDiir1fUk7pxC0oanl8=.mp3
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/ADjpy30TlWx1qxJLcr)SZawCavCjh8JFMfYj9g(UPWBVyX)vajARi0RcHz(4SeOWN9mplGLCHqaz3ZUIGktJONiJ)UVkPbEEw1eqkwtBeO3LaXvljTQf4tX83LH(EusaXKZF1OpGDeM=.mp3
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/ADjpy30TlWx1qxJLcr)SZbNcufAs38TOiQEH(LKXHP3GuIZsa4rqX2Ep3UQNmIbqq(k(yHQIcwJTBZ3fMRURIzbbwl7AqAQWTFXdlDsoZWPM)jNS09TDFe3t29QGIifmEMxsTS6es(U=.mp3
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/ADjpy30TlWx1qxJLcr)SZeppxihu0Sq6Ywtr26R0QSk)Y3q7awxT)pY8hn5vQK4aXoMv8RnuJg(5C0KKPCJyxaw4U4(yT9JEPsnxEI2a)JamZpyrxFYLwaRG)4okApj1mTLcxo6slug=.mp3
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/ADjpy30TlWx1qxJLcr)SZQXpvDLAIXPu)4SLwweEwQWpgW3UIpN40v3x4tti9NL79m7i0YDn1z819uWEaxUUUdM1YNq1E6pyIFqD)ecTkbyFIMsCqUAa794lCfxtD(utW0rYVuv6j0k=.mp3
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/ADjpy30TlWx1qxJLcr)SZeXRp30Ug9QWW2Ehapyq(INqGBO5UhTdITuvjhVA7fE2Zi6pKZdmHjmsauixhugeX4hfVGs2s))A7JlSQLi9NyefF84kD3LiiDc5gDaFmuUHHcU3tjJAFHU=.mp3
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/ADjpy30TlWx1qxJLcr)SZXYj5BZpb2x1fEZu4HWbw(JrTryUugUEEBA(wooHuoQAkmmtSOhCScmzTx5IASuVC7uefbb1cJ0Jz7I9PTE1nbOFCZdKa1MhiJGhuHfMupVLL5bcq(0Bhjo=.mp3
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/ADjpy30TlWx1qxJLcr)SZQ6r5l3GxMI(1U3J(xv)6ZXtfkd6T(illOb89OeV9TVGYFR0grqQ4(WoT7R0ETtcYlrL7IzMBV0eOKbq0smqr19kAvgfpCqzM1Vd)M49lvoVy0Kzoqzwxd8=.mp3
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/ADjpy30TlWx1qxJLcr)SZdWyC6sB3R1e(bLxlR9h1mApzitxs)ugkzJwvU0P8II(rC)AU3bj(Qd0c5y8BGPSOs6bJDLH0BjMQyuTBj6(QOBPQPMWz4V)MOPwSOt4e(wE5Wd6knhU3NA=.mp3
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/ADjpy30TlWx1qxJLcr)SZbGstjlmwa7v)hTey)l5CLs(kTnNkovlv0R2Kkh1yH1H2sIuyDwr9td)(puPOYu(e(yk4FAEbXgUMTm3gVjfGna9nAbbtl7gqSMfRTcG6NhhKy6A8drhBvk=.mp3
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/ADjpy30TlWx1qxJLcr)SZZ9YZDvrO)nl4kmNb8ziBAadwkfHZTaMcsR7tIHSjk2i0DPPnFbYDCllngQymSdr7oBIJ9diab(ZpRAJQezfb9BMmE4XHsBKe(mxUYP0UfjgGq4qSKhdAz4=.mp3
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/rKQx0mOrK9cDZIv29BOd8v8ZkCGuOZJfKox5RJtD8(oExyVfurehE5u)c4ckItrGu4yIdkFds5KjMxHSjMTm7f4kNSlUjgUPFsPVv)mXITmZ6hM127O5AewiIKZhaO)VhwNf1cMz2Ug=.mp3
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/rKQx0mOrK9cDZIv29BOd8ig6H6MNs3SrXSfV7E9NZR7MAk)4LkNRo7DhmtvSnpT1qvrNWqsv983KG11ULFcQdlcsnqlpzFGFPcl(Oa6ybkk08X9bzmIKL)dkHdoVIM7myi8bnWDInnk=.mp3
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/rKQx0mOrK9cDZIv29BOd8ig6H6MNs3SrsZbQ9rjOo4ih6hYPlMJmS3LQWY1v5CtHI0H0kogmh2ku11JULIKjw0m1d2tlj9cAAttv1rUmu53lMo4RolWueqYbgU2ZbN8x9ManQwp(dk8=.mp3
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/rKQx0mOrK9cDZIv29BOd8gQu1N9YmIU4yLQF2b)jOL(E6pUus1g2j)dDTs1hp7MC2oBkGgpO0wBKPNPqz71pjpR7MZme6RbqcaaE5RxOoowIrX)FUzH7cYTvns6C9G)14cePC2xTUCQ=.mp3
DEBUG Starting downloading file: https://api.findawayworld.com/v4/audio/rKQx0mOrK9cDZIv29BOd8ig6H6MNs3SriVAjfHcVbc2DMFXe(eBB389EL7nBblJMtZC8E(PXQb0gBJUEuT29XkCeBIciQ5d7JGMmrkrRQ)Ymibsj7HRdP6UGWof0)CI3ycJK3H9kgWI=.mp3
⠼ Downloading Loving Your Spouse When You Feel Like Walking Away Positive Steps for Improving a Difficult Marriage ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━  97%
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 712, in _error_catcher
    yield
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 812, in _raw_read
    data = self._fp_read(amt) if not fp_closed else b""
           ^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 797, in _fp_read
    return self._fp.read(amt) if amt is not None else self._fp.read()
           ^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\http\client.py", line 479, in read
    s = self.fp.read(amt)
        ^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\socket.py", line 707, in readinto
    return self._sock.recv_into(b)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 1253, in recv_into
    return self.read(nbytes, buffer)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 1105, in read
    return self._sslobj.read(len, buffer)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ssl.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2559)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\models.py", line 816, in generate
    yield from self.raw.stream(chunk_size, decode_content=True)
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 934, in stream
    data = self.read(amt=amt, decode_content=decode_content)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 877, in read
    data = self._raw_read(amt)
           ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 811, in _raw_read
    with self._error_catcher():
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\contextlib.py", line 158, in __exit__
    self.gen.throw(value)
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 723, in _error_catcher
    raise SSLError(e) from e
urllib3.exceptions.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2559)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Scripts\audiobook-dl.exe\__main__.py", line 7, in <module>
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\audiobookdl\__main__.py", line 31, in main
    process_url(url, options, config)
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\audiobookdl\__main__.py", line 58, in process_url
    process_audiobook(result, options)
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\audiobookdl\__main__.py", line 163, in process_audiobook
    download(audiobook, options)
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\audiobookdl\output\download.py", line 37, in download
    download_audiobook(audiobook, output_dir, options)
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\audiobookdl\output\download.py", line 47, in download_audiobook
    filepaths = download_files_with_cli_output(audiobook, output_dir)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\audiobookdl\output\download.py", line 133, in download_files_with_cli_output
    filepaths = download_files(audiobook, output_dir, update_progress)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\audiobookdl\output\download.py", line 188, in download_files
    for filepath in pool.imap(download_file, arguments):
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\multiprocessing\pool.py", line 873, in next
    raise value
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
                    ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\audiobookdl\output\download.py", line 170, in download_file
    for chunk in request.iter_content(chunk_size=1024):
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\models.py", line 824, in generate
    raise RequestsSSLError(e)
requests.exceptions.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2559)

C:\Users\User\Desktop\audiobook-dl\new>

`