hcjohn463 / JableTVDownload

下載 jable好幫手
Apache License 2.0
676 stars 149 forks source link

Error parsing cert retrieved from AIA (as DER) #131

Open frankShih opened 10 months ago

frankShih commented 10 months ago

My environment is win10, python3.9 Below is the error message

╰─>>> python .\main.py
輸入jable網址:https://jable.tv/videos/XXX/
要轉檔嗎?(y/n)y
要用GPU(Nvidia)加速轉檔嗎?(y/n)y
正在下載影片: https://jable.tv/videos/XXX/

DevTools listening on ws://127.0.0.1:3488/devtools/browser/9a8559e7-de95-490a-a332-4248320aeec5
[0106/091708.307:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[0106/091711.531:ERROR:cert_issuer_source_aia.cc(34)] Error parsing cert retrieved from AIA (as DER):
ERROR: Couldn't read tbsCertificate as SEQUENCE
ERROR: Failed parsing Certificate

[0106/091712.012:INFO:CONSOLE(504)] "An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.", source: https://imasdk.googleapis.com/js/sdkloader/ima3.js (504)
[0106/091712.115:ERROR:cert_issuer_source_aia.cc(34)] Error parsing cert retrieved from AIA (as DER):
ERROR: Couldn't read tbsCertificate as SEQUENCE
ERROR: Failed parsing Certificate

[0106/091712.170:ERROR:cert_issuer_source_aia.cc(34)] Error parsing cert retrieved from AIA (as DER):
ERROR: Couldn't read tbsCertificate as SEQUENCE
ERROR: Failed parsing Certificate

[0106/091712.361:ERROR:cert_issuer_source_aia.cc(34)] Error parsing cert retrieved from AIA (as DER):
ERROR: Couldn't read tbsCertificate as SEQUENCE
ERROR: Failed parsing Certificate

[0106/091712.391:ERROR:cert_issuer_source_aia.cc(34)] Error parsing cert retrieved from AIA (as DER):
ERROR: Couldn't read tbsCertificate as SEQUENCE
ERROR: Failed parsing Certificate

[0106/091712.400:ERROR:cert_issuer_source_aia.cc(34)] Error parsing cert retrieved from AIA (as DER):
ERROR: Couldn't read tbsCertificate as SEQUENCE
ERROR: Failed parsing Certificate

[0106/091712.676:ERROR:cert_issuer_source_aia.cc(34)] Error parsing cert retrieved from AIA (as DER):
ERROR: Couldn't read tbsCertificate as SEQUENCE
ERROR: Failed parsing Certificate

[0106/091712.734:INFO:CONSOLE(1)] "CMP not found.", source: https://a.magsrv.com/ad-provider.js (1)
[0106/091712.734:INFO:CONSOLE(1)] "2024-01-06T01:17:12.734Z: Request #0 Placement #0 was pushed with zone {"custom_targeting":{},"keywords":"","id":3737557}", source: https://a.magsrv.com/ad-provider.js (1)
[0106/091712.735:INFO:CONSOLE(1)] "2024-01-06T01:17:12.735Z: Request #0 Placement #0 was pushed with properties {"custom_targeting":{},"keywords":"","id":3737557}", source: https://a.magsrv.com/ad-provider.js (1)
[0106/091712.736:INFO:CONSOLE(1)] "2024-01-06T01:17:12.735Z: Request #0 is being served.", source: https://a.magsrv.com/ad-provider.js (1)
[0106/091712.737:INFO:CONSOLE(1)] "CMP not found.", source: https://a.magsrv.com/ad-provider.js (1)
[0106/091712.739:INFO:CONSOLE(1)] "2024-01-06T01:17:12.737Z: Request #0 Placement #0 was pushed with zone {"custom_targeting":{},"keywords":"","id":3404167}", source: https://a.magsrv.com/ad-provider.js (1)
[0106/091712.739:INFO:CONSOLE(1)] "2024-01-06T01:17:12.737Z: Request #0 Placement #0 was pushed with properties {"custom_targeting":{},"keywords":"","id":3404167}", source: https://a.magsrv.com/ad-provider.js (1)
[0106/091712.741:INFO:CONSOLE(1)] "2024-01-06T01:17:12.737Z: Request #0 is being served.", source: https://a.magsrv.com/ad-provider.js (1)
[0106/091712.826:INFO:CONSOLE(1)] "2024-01-06T01:17:12.825Z: Request #0 handling the response", source: https://a.magsrv.com/ad-provider.js (1)
[0106/091712.830:INFO:CONSOLE(1)] "2024-01-06T01:17:12.829Z: Request #0 handling the response", source: https://a.magsrv.com/ad-provider.js (1)
[0106/091713.490:ERROR:cert_issuer_source_aia.cc(34)] Error parsing cert retrieved from AIA (as DER):
ERROR: Couldn't read tbsCertificate as SEQUENCE
ERROR: Failed parsing Certificate

[0106/091713.925:ERROR:cert_issuer_source_aia.cc(34)] Error parsing cert retrieved from AIA (as DER):
ERROR: Couldn't read tbsCertificate as SEQUENCE
ERROR: Failed parsing Certificate

result: <re.Match object; span=(52444, 52541), match='https://galav-oxwy.mushroomtrack.com/hls/7mmTrcDf>
m3u8url: https://galav-oxwy.mushroomtrack.com/hls/7mmTrcDfyTwAbidEBsKU0g/1704514592/29000/29202/29202.m3u8
Traceback (most recent call last):
  File "C:\XXX\JableTVDownload\main.py", line 26, in <module>
    download(url)
  File "C:\XXX\JableTVDownload\download.py", line 65, in download
    m3u8obj = m3u8.load(m3u8file)
  File "C:\Python39\lib\site-packages\m3u8\__init__.py", line 94, in load
    content, base_uri = http_client.download(uri, timeout, headers, verify_ssl)
  File "C:\Python39\lib\site-packages\m3u8\httpclient.py", line 16, in download
    resource = opener.open(uri, timeout=timeout)
  File "C:\Python39\lib\urllib\request.py", line 517, in open
    response = self._open(req, data)
  File "C:\Python39\lib\urllib\request.py", line 539, in _open
    return self._call_chain(self.handle_open, 'unknown',
  File "C:\Python39\lib\urllib\request.py", line 494, in _call_chain
    result = func(*args)
  File "C:\Python39\lib\urllib\request.py", line 1417, in unknown_open
    raise URLError('unknown url type: %s' % type)
urllib.error.URLError: <urlopen error unknown url type: c>

I try to add these lines to the code, but still no luck.

+  options.add_argument('--ignore-certificate-errors')
+  options.add_experimental_option('excludeSwitches', ['enable-logging'])

Please give me some suggestions. Thanks !