Skip to content

plugins.tvrplus: remove plugin #6203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

bastimeyer
Copy link
Member

See #6158

This website has broken/invalid TLS certificates. My system's cert store doesn't accept them.

$ pacman -Qo /etc/ssl/certs/
/etc/ssl/certs/ is owned by ca-certificates-utils 20240618-1
/etc/ssl/certs/ is owned by openssl 3.3.2-1

$ curl -v https://www.tvrplus.ro/live/tvr-1
* Host www.tvrplus.ro:443 was resolved.
* IPv6: (none)
* IPv4: 193.186.33.61
*   Trying 193.186.33.61:443...
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: none
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (OUT), TLS alert, unknown CA (560):
* SSL certificate problem: unable to get local issuer certificate
* closing connection #0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the webpage mentioned above.

Not even certifi's cert store works:

$ SSL_CERT_FILE=$(python -c 'import certifi;print(certifi.where())') curl -v https://www.tvrplus.ro/live/tvr-1
* Host www.tvrplus.ro:443 was resolved.
* IPv6: (none)
* IPv4: 193.186.33.61
*   Trying 193.186.33.61:443...
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /home/basti/venv/streamlink-312/lib/python3.12/site-packages/certifi/cacert.pem
*  CApath: none
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (OUT), TLS alert, unknown CA (560):
* SSL certificate problem: unable to get local issuer certificate
* closing connection #0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the webpage mentioned above.

Disabling TLS verification results in a 403 response from the HLS playlist, which btw is a static URL anyway:

$ streamlink --http-no-ssl-verify https://www.tvrplus.ro/live/tvr-1
[cli][info] Found matching plugin tvrplus for URL https://www.tvrplus.ro/live/tvr-1
[warnings][insecurerequestwarning] Unverified HTTPS request is being made to host 'www.tvrplus.ro'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  /home/basti/venv/streamlink-312/lib/python3.12/site-packages/urllib3/connectionpool.py:1099
[warnings][insecurerequestwarning] Unverified HTTPS request is being made to host 'tvr-tvr1.cdn.zitec.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  /home/basti/venv/streamlink-312/lib/python3.12/site-packages/urllib3/connectionpool.py:1099
error: Unable to open URL: https://tvr-tvr1.cdn.zitec.com/live/tvr1/main.m3u8 (403 Client Error: Forbidden for url: https://tvr-tvr1.cdn.zitec.com/live/tvr1/main.m3u8)

@bastimeyer bastimeyer merged commit ffa7db5 into streamlink:master Sep 27, 2024
25 checks passed
@bastimeyer bastimeyer deleted the plugins/tvrplus/remove branch September 27, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant