repo
stringclasses 856
values | pull_number
int64 3
127k
| instance_id
stringlengths 12
58
| issue_numbers
sequencelengths 1
5
| base_commit
stringlengths 40
40
| patch
stringlengths 67
1.54M
| test_patch
stringlengths 0
107M
| problem_statement
stringlengths 3
307k
| hints_text
stringlengths 0
908k
| created_at
timestamp[s] |
---|---|---|---|---|---|---|---|---|---|
streamlink/streamlink | 5,946 | streamlink__streamlink-5946 | [
"5945"
] | abf230fe69c373c262fff69797e946fb03a21e15 | diff --git a/src/streamlink/plugins/turkuvaz.py b/src/streamlink/plugins/turkuvaz.py
--- a/src/streamlink/plugins/turkuvaz.py
+++ b/src/streamlink/plugins/turkuvaz.py
@@ -36,8 +36,19 @@
)
""", re.VERBOSE))
class Turkuvaz(Plugin):
+ _VIDEOID_LIVE = "00000000-0000-0000-0000-000000000000"
+
+ # hardcoded in https://i.tmgrup.com.tr/videojs/js/tmdplayersetup.js?v=651
+ # (via https://www.minikacocuk.com.tr/webtv/canli-yayin)
+ _MAPPING_WEBSITEID_HLSURL = {
+ "9BBE055A-4CF6-4BC3-A675-D40E89B55B91": "https://trkvz.daioncdn.net/aspor/aspor.m3u8?ce=3&app=45f847c4-04e8-419a-a561-2ebf87084765",
+ "0C1BC8FF-C3B1-45BE-A95B-F7BB9C8B03ED": "https://trkvz.daioncdn.net/a2tv/a2tv.m3u8?ce=3&app=59363a60-be96-4f73-9eff-355d0ff2c758",
+ "AAE2E325-4EAE-45B7-B017-26FD7DDB6CE4": "https://trkvz.daioncdn.net/minikago/minikago.m3u8?app=web&ce=3",
+ "01ED59F2-4067-4945-8204-45F6C6DB4045": "https://trkvz.daioncdn.net/minikago_cocuk/minikago_cocuk.m3u8?app=web&ce=3",
+ }
+
def _get_streams(self):
- _find_and_get_attrs = validate.Schema(
+ _find_and_get_attrs = validate.all(
validate.xml_find(".//div[@data-videoid][@data-websiteid]"),
validate.union_get("data-videoid", "data-websiteid"),
)
@@ -68,8 +79,8 @@ def _get_streams(self):
return
video_id, website_id = id_data
- log.debug(f"video_id={video_id}")
- log.debug(f"website_id={website_id}")
+ log.debug(f"{video_id=}")
+ log.debug(f"{website_id=}")
self.id, self.title, hls_url = self.session.http.get(
f"https://videojs.tmgrup.com.tr/getvideo/{website_id}/{video_id}",
@@ -87,11 +98,14 @@ def _get_streams(self):
validate.union_get("VideoId", "Title", "VideoSmilUrl"),
),
)
- log.debug(f"hls_url={hls_url}")
+
+ if video_id == self._VIDEOID_LIVE:
+ hls_url = self._MAPPING_WEBSITEID_HLSURL.get(website_id.upper(), hls_url)
+ log.debug(f"{hls_url=}")
secure_hls_url = self.session.http.get(
"https://securevideotoken.tmgrup.com.tr/webtv/secure",
- params=f"url={hls_url}",
+ params={"url": hls_url},
headers={"Referer": self.url},
schema=validate.Schema(
validate.parse_json(),
@@ -102,7 +116,7 @@ def _get_streams(self):
validate.get("Url"),
),
)
- log.debug(f"secure_hls_url={secure_hls_url}")
+ log.debug(f"{secure_hls_url=}")
if secure_hls_url:
return HLSStream.parse_variant_playlist(self.session, secure_hls_url)
| diff --git a/tests/plugins/test_turkuvaz.py b/tests/plugins/test_turkuvaz.py
--- a/tests/plugins/test_turkuvaz.py
+++ b/tests/plugins/test_turkuvaz.py
@@ -28,9 +28,7 @@ class TestPluginCanHandleUrlTurkuvaz(PluginCanHandleUrl):
"https://www.anews.com.tr/webtv/world/pro-ukraine-militia-says-it-has-captured-russian-soldiers",
"https://www.apara.com.tr/video/ekonomide-bugun/bist-100de-kar-satislari-derinlesir-mi",
"https://www.aspor.com.tr/webtv/galatasaray/galatasaraydan-forma-tanitiminda-fenerbahceye-gonderme",
- "https://www.atv.com.tr/kurulus-osman/127-bolum/izle",
"https://www.atvavrupa.tv/diger-program//ozelvideo/izle",
- "https://www.minikacocuk.com.tr/webtv/olly/bolum/olly-eylul-tanitim",
"https://www.minikago.com.tr/webtv/mondo-yan/bolum/mondo-yan-eylul-tanitim",
"https://vavtv.com.tr/vavradyo/video/guncel/munafiklarin-ozellikleri-nelerdir",
| plugins.turkuvaz: no data on minikacocuk.com.tr
### Checklist
- [X] This is a [plugin issue](https://streamlink.github.io/plugins.html) and not [a different kind of issue](https://github.com/streamlink/streamlink/issues/new/choose)
- [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink)
- [X] [I have checked the list of open and recently closed plugin issues](https://github.com/streamlink/streamlink/issues?q=is%3Aissue+label%3A%22plugin+issue%22)
- [X] [I have checked the commit log of the master branch](https://github.com/streamlink/streamlink/commits/master)
### Streamlink version
6.7.2
### Description
### Debug log
```text
Not working Python 3!!!! "Minikacocuk" channel ,please help.
```
| Nothing streamlink version not working Minikacocuk channel,this is plugin, | 2024-04-15T16:02:58 |
streamlink/streamlink | 5,961 | streamlink__streamlink-5961 | [
"5960"
] | d1088588999b0ad415f53f7df784074ff1613d92 | diff --git a/src/streamlink/plugins/nownews.py b/src/streamlink/plugins/nownews.py
deleted file mode 100644
--- a/src/streamlink/plugins/nownews.py
+++ /dev/null
@@ -1,54 +0,0 @@
-"""
-$description Live streaming news channel owned by Now/PCCW Group, based in Hong Kong.
-$url news.now.com
-$type live
-"""
-
-import json
-import logging
-import re
-
-from streamlink.plugin import Plugin, pluginmatcher
-from streamlink.stream.hls import HLSStream
-
-
-log = logging.getLogger(__name__)
-
-
-@pluginmatcher(re.compile(
- r"https?://news\.now\.com/home/live",
-))
-class NowNews(Plugin):
- epg_re = re.compile(r"""epg.getEPG\("(\d+)"\);""")
- api_url = "https://hkt-mobile-api.nowtv.now.com/09/1/getLiveURL"
- backup_332_api = "https://d7lz7jwg8uwgn.cloudfront.net/apps_resource/news/live.json"
- backup_332_stream = "https://d3i3yn6xwv1jpw.cloudfront.net/live/now332/playlist.m3u8"
-
- def _get_streams(self):
- res = self.session.http.get(self.url)
- m = self.epg_re.search(res.text)
- channel_id = m and m.group(1)
- if channel_id:
- log.debug("Channel ID: {0}".format(channel_id))
-
- if channel_id == "332":
- # there is a special backup stream for channel 332
- bk_res = self.session.http.get(self.backup_332_api)
- bk_data = self.session.http.json(bk_res)
- if bk_data and bk_data["backup"]:
- log.info("Using backup stream for channel 332")
- return HLSStream.parse_variant_playlist(self.session, self.backup_332_stream)
-
- api_res = self.session.http.post(self.api_url,
- headers={"Content-Type": "application/json"},
- data=json.dumps(dict(channelno=channel_id,
- mode="prod",
- audioCode="",
- format="HLS",
- callerReferenceNo="20140702122500")))
- data = self.session.http.json(api_res)
- for stream_url in data.get("asset", {}).get("hls", {}).get("adaptive", []):
- return HLSStream.parse_variant_playlist(self.session, stream_url)
-
-
-__plugin__ = NowNews
| diff --git a/tests/plugins/test_nownews.py b/tests/plugins/test_nownews.py
deleted file mode 100644
--- a/tests/plugins/test_nownews.py
+++ /dev/null
@@ -1,18 +0,0 @@
-from streamlink.plugins.nownews import NowNews
-from tests.plugins import PluginCanHandleUrl
-
-
-class TestPluginCanHandleUrlNowNews(PluginCanHandleUrl):
- __plugin__ = NowNews
-
- should_match = [
- "https://news.now.com/home/live",
- "http://news.now.com/home/live",
- "https://news.now.com/home/live331a",
- "http://news.now.com/home/live331a",
- ]
-
- should_not_match = [
- "https://news.now.com/home/local",
- "http://media.now.com.hk/",
- ]
| plugins.NOWNEWS: They had changed the API
### Checklist
- [X] This is a [plugin issue](https://streamlink.github.io/plugins.html) and not [a different kind of issue](https://github.com/streamlink/streamlink/issues/new/choose)
- [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink)
- [X] [I have checked the list of open and recently closed plugin issues](https://github.com/streamlink/streamlink/issues?q=is%3Aissue+label%3A%22plugin+issue%22)
- [X] [I have checked the commit log of the master branch](https://github.com/streamlink/streamlink/commits/master)
### Streamlink version
-
### Description
streamlink https://news.now.com/home/live
[cli][info] streamlink is running as root! Be careful!
[cli][info] Found matching plugin nownews for URL https://news.now.com/home/live
error: Unable to open URL: https://hkt-mobile-api.nowtv.now.com/09/1/getLiveURL (HTTPSConnectionPool(host='hkt-mobile-api.nowtv.now.com', port=443): Max retries exceeded with url: /09/1/getLiveURL (Caused by SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1006)'))))
NEW API: https://webtvapi.now.com/10/7/getLiveURL
PLAYLOAD:
{"contentId":"332","contentType":"Channel","audioCode":"N","deviceId":"_MYDEVICE_ID_","deviceType":"WEB","secureCookie":null,"callerReferenceNo":"[THE REFERNO]","profileId":null}
RESPONE:
{
"asset": [
"https://ewcdn04.nowe.com/session/10-fbe942f9[the info]ad4502fee7791/Content/DASH_VOS3/Live/channel(VOS_CH332N)/manifest.mpd?token=286209[the info]6a03695f2[the info]a_1713870587"
],
"drmToken": "4b2fe22[the info]",
"responseCode": "SUCCESS",
"callerReferenceNo": "[the info]",
"serverReferenceNo": "[[the info]][the info]",
"elapsedTime": 89
}
### Debug log
```text
# streamlink https://news.now.com/home/live
[cli][info] streamlink is running as root! Be careful!
[cli][info] Found matching plugin nownews for URL https://news.now.com/home/live
error: Unable to open URL: https://hkt-mobile-api.nowtv.now.com/09/1/getLiveURL (HTTPSConnectionPool(host='hkt-mobile-api.nowtv.now.com', port=443): Max retries exceeded with url: /09/1/getLiveURL (Caused by SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1006)'))))
```
| 2024-04-23T09:27:30 |
|
streamlink/streamlink | 5,983 | streamlink__streamlink-5983 | [
"5379"
] | 21569979c4c53061245b02862b5fbd9b42654639 | diff --git a/src/streamlink/plugins/tf1.py b/src/streamlink/plugins/tf1.py
--- a/src/streamlink/plugins/tf1.py
+++ b/src/streamlink/plugins/tf1.py
@@ -5,12 +5,13 @@
$url lci.fr
$type live
$region France
+$account Required on tf1.fr
"""
import logging
import re
-from streamlink.plugin import Plugin, PluginError, pluginmatcher
+from streamlink.plugin import Plugin, PluginError, pluginargument, pluginmatcher
from streamlink.plugin.api import useragents, validate
from streamlink.stream.hls import HLSStream
@@ -30,8 +31,90 @@
(?P<lci>tf1info|lci)\.fr/direct/?
)
""", re.VERBOSE))
+@pluginargument(
+ "email",
+ requires=["password"],
+ metavar="EMAIL",
+ help="The email address used to register with tf1.fr.",
+)
+@pluginargument(
+ "password",
+ sensitive=True,
+ metavar="PASSWORD",
+ help="A tf1.fr account password to use with --tf1-username.",
+)
+@pluginargument(
+ "purge-credentials",
+ action="store_true",
+ help="Purge cached tf1.fr credentials to initiate a new session and reauthenticate.",
+)
class TF1(Plugin):
_URL_API = "https://mediainfo.tf1.fr/mediainfocombo/{channel_id}"
+ _URL_LOGIN = "https://compte.tf1.fr/accounts.login"
+ _URL_TOKEN = "https://www.tf1.fr/token/gigya/web"
+ _API_KEY = "3_hWgJdARhz_7l1oOp3a8BDLoR9cuWZpUaKG4aqF7gum9_iK3uTZ2VlDBl8ANf8FVk"
+ # Gigya GDPR consent IDs
+ _CONSENT_IDS = ["4", "10001", "10003", "10005", "10007", "10009", "10011", "10013", "10015", "10017", "10019"]
+
+ _CACHE_KEY_USER_TOKEN = "token"
+
+ def _login(self, login_id, password):
+ status, *login_data = self.session.http.post(
+ url=self._URL_LOGIN,
+ data={
+ "loginID": login_id,
+ "password": password,
+ "APIKey": self._API_KEY,
+ "includeUserInfo": "true",
+ },
+ schema=validate.Schema(
+ validate.parse_json(),
+ validate.any(
+ validate.all(
+ {
+ "errorCode": 0,
+ "UID": str,
+ "UIDSignature": str,
+ "signatureTimestamp": str,
+ },
+ validate.union_get("UID", "UIDSignature", "signatureTimestamp"),
+ validate.transform(lambda data: ("success", *data)),
+ ),
+ validate.all(
+ {
+ "errorCode": int,
+ "errorDetails": str,
+ },
+ validate.union_get("errorCode", "errorDetails"),
+ validate.transform(lambda data: ("failure", *data)),
+ ),
+ ),
+ ),
+ )
+
+ if status != "success":
+ error_code, error_details = login_data
+ raise PluginError(f"{error_code=} - {error_details or 'Unknown error'}")
+
+ uid, uid_signature, signature_timestamp = login_data
+ log.debug(f"{uid=} {uid_signature=} {signature_timestamp=}")
+
+ return self.session.http.post(
+ url=self._URL_TOKEN,
+ json={
+ "uid": uid,
+ "signature": uid_signature,
+ "timestamp": int(signature_timestamp),
+ "consent_ids": self._CONSENT_IDS,
+ },
+ schema=validate.Schema(
+ validate.parse_json(),
+ {
+ "token": str,
+ },
+ validate.get("token"),
+ ),
+ )
def _get_channel(self):
if self.match["live"]:
@@ -48,17 +131,21 @@ def _get_channel(self):
return channel, channel_id
- def _api_call(self, channel_id):
+ def _api_call(self, channel_id, user_token):
+ headers = {
+ # forces HLS streams
+ "User-Agent": useragents.IPHONE,
+ }
+ if user_token:
+ headers["Authorization"] = f"Bearer {user_token}"
+
return self.session.http.get(
self._URL_API.format(channel_id=channel_id),
params={
"context": "MYTF1",
- "pver": "4001000",
- },
- headers={
- # forces HLS streams
- "User-Agent": useragents.IPHONE,
+ "pver": "5015000",
},
+ headers=headers,
schema=validate.Schema(
validate.parse_json(),
{
@@ -88,7 +175,23 @@ def _get_streams(self):
channel, channel_id = self._get_channel()
log.debug(f"Found channel {channel} ({channel_id})")
- code, data = self._api_call(channel_id)
+ if self.get_option("purge-credentials"):
+ log.info("Removing cached user-authentication token...")
+ self.cache.set(self._CACHE_KEY_USER_TOKEN, None, 0)
+ user_token = None
+ else:
+ user_token = self.cache.get(self._CACHE_KEY_USER_TOKEN)
+
+ if (
+ not user_token
+ and (login_email := self.get_option("email"))
+ and (login_password := self.get_option("password"))
+ ):
+ log.info("Acquiring new user-authentication token...")
+ user_token = self._login(login_email, login_password)
+ self.cache.set(self._CACHE_KEY_USER_TOKEN, user_token)
+
+ code, data = self._api_call(channel_id, user_token)
if code != 200:
log.error(data)
return
| plugins.tf1: Permission insuffisante
### Checklist
- [X] This is a plugin issue and not a different kind of issue
- [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink)
- [X] [I have checked the list of open and recently closed plugin issues](https://github.com/streamlink/streamlink/issues?q=is%3Aissue+label%3A%22plugin+issue%22)
- [X] [I have checked the commit log of the master branch](https://github.com/streamlink/streamlink/commits/master)
### Streamlink version
Latest stable release
### Description
Hi
Not sure exactly what means "permissions insuffisante" but sounds like something changed. Only LCI is still working
### Debug log
```text
/usr/local/bin/streamlink --loglevel debug "http://www.tf1.fr/tmc/direct" best [cli][info] streamlink is running as root! Be careful!
[cli][debug] OS: Linux-5.15.0-73-generic-x86_64-with-glibc2.29
[cli][debug] Python: 3.8.10
[cli][debug] Streamlink: 5.5.1
[cli][debug] Dependencies:
[cli][debug] certifi: 2019.11.28
[cli][debug] isodate: 0.6.0
[cli][debug] lxml: 4.8.0
[cli][debug] pycountry: 22.3.5
[cli][debug] pycryptodome: 3.9.9
[cli][debug] PySocks: 1.7.1
[cli][debug] requests: 2.27.1
[cli][debug] urllib3: 1.26.13
[cli][debug] websocket-client: 1.3.2
[cli][debug] Arguments:
[cli][debug] url=http://www.tf1.fr/tmc/direct
[cli][debug] stream=['best']
[cli][debug] --loglevel=debug
[cli][info] Found matching plugin tf1 for URL http://www.tf1.fr/tmc/direct
[plugins.tf1][debug] Found channel tmc (L_TMC)
[plugins.tf1][error] Permission insuffisante
error: No playable streams found on this URL: http://www.tf1.fr/tmc/direct
```
| confirmed for me.
probably related to the creation of the subscription to tf1max (none free)
I dont think so because apparently tf1 max's purpose is to propose an ad-free streaming experience as well as HD streaming.
I could watch just fine on their site with just a free login
It's not because of this. It now requires a JWT token in order to get access to their metadata. This token can be found by doing a single request to their API on post login, to this website : https://www.tf1.fr/token/gigya/web. It'll need a token based on the Gigya signature (UIDSignature on Gigya login -> https://compte.tf1.fr/accounts.login).
> It's not because of this. It now requires a JWT token in order to get access to their metadata. This token can be found by doing a single request to their API on post login, to this website : https://www.tf1.fr/token/gigya/web. It'll need a token based on the Gigya signature (UIDSignature on Gigya login -> https://compte.tf1.fr/accounts.login).
Do you think you would know how to update the current plugin ?
> > It's not because of this. It now requires a JWT token in order to get access to their metadata. This token can be found by doing a single request to their API on post login, to this website : https://www.tf1.fr/token/gigya/web. It'll need a token based on the Gigya signature (UIDSignature on Gigya login -> https://compte.tf1.fr/accounts.login).
>
> Do you think you would know how to update the current plugin ?
It would need a POST to https://compte.tf1.fr/accounts.login
```
loginID= *email* &password= *password* &sessionExpiration=31536000&targetEnv=jssdk&include=identities-all%2Cdata%2Cprofile%2Cpreferences%2C&includeUserInfo=true&loginMode=standard&lang=fr&APIKey=3_hWgJdARhz_7l1oOp3a8BDLoR9cuWZpUaKG4aqF7gum9_iK3uTZ2VlDBl8ANf8FVk&sdk=js_latest&authMode=cookie&pageURL=https%3A%2F%2Fwww.tf1.fr%2F&sdkBuild=13987&format=json
```
You then grab the UIDSignature and the UID from the Gigya response (either from the accounts login, either from the userInfo, UID + UIDSignature).
You then POST to https://www.tf1.fr/token/gigya/web, in order for this request to work you will also need to create a timestamp in EPOCH/UNIX format (something like 1687780538)
```
{"uid":" *UID* ","signature":" *UIDSignature* ","timestamp":,"consent_ids":["1","2","3","4","10001","10003","10005","10007","10013","10015","10017","10019","10009","10011","13002","13001","10004","10014","10016","10018","10020","10010","10012","10006","10008"]
```
You grab the "token" from the JSON answer.
After that, you can do a GET request to https://mediainfo.tf1.fr/mediainfocombo/L_TF1?pver=5010000&context=MYTF1&topDomain=unknown&platform=web&device=desktop&os=windows&osVersion=10.0&playerVersion=5.10.0&productName=mytf1&productVersion=2.59.2&browser=firefox&browserVersion=114 with a specific header Authorization : Bearer *token*.
Answer will be in "delivery" -> "url"
if you fork the current plugin, let me know, thanks :)
> You grab the "token" from the JSON answer.
>
> After that, you can do a GET request to https://mediainfo.tf1.fr/mediainfocombo/L_TF1?pver=5010000&context=MYTF1&topDomain=unknown&platform=web&device=desktop&os=windows&osVersion=10.0&playerVersion=5.10.0&productName=mytf1&productVersion=2.59.2&browser=firefox&browserVersion=114 with a specific header Authorization : Bearer _token_.
>
> Answer will be in "delivery" -> "url"
Hi @BellezaEmporium I try your advice, got the token and got the url into delivery.
But if I add it into a stremalink command to record the direct, I will receive an output with always the same video which is not the direct but a show which have been aired 3 or 4 hours before.
This is the log :
```
D:\youtube-dl\TF1>streamlink --output "TF1-{time:%Y-%m-%d_%H-%M-%S}.ts" --hls-duration 00:01:00 --loglevel debug https://live-tf1-das.cdn-0.diff.tf1.fr/[Redacted]/out/v1/dfe36f90964947129902b842b83e65b4/index.mpd best
[cli][debug] OS: Windows 10
[cli][debug] Python: 3.11.3
[cli][debug] Streamlink: 5.5.1
[cli][debug] Dependencies:
[cli][debug] certifi: 2023.5.7
[cli][debug] isodate: 0.6.1
[cli][debug] lxml: 4.9.2
[cli][debug] pycountry: 22.3.5
[cli][debug] pycryptodome: 3.18.0
[cli][debug] PySocks: 1.7.1
[cli][debug] requests: 2.31.0
[cli][debug] urllib3: 2.0.2
[cli][debug] websocket-client: 1.5.2
[cli][debug] Arguments:
[cli][debug] url=https://live-tf1-das.cdn-0.diff.tf1.fr/[Redacted]/out/v1/dfe36f90964947129902b842b83e65b4/index.mpd
[cli][debug] stream=['best']
[cli][debug] --loglevel=debug
[cli][debug] --player="C:\Program Files\Sans installation\mpv\mpv.exe"
[cli][debug] --output=TF1-{time:%Y-%m-%d_%H-%M-%S}.ts
[cli][debug] --hls-duration=60
[cli][debug] --ffmpeg-ffmpeg=C:\Program Files\Streamlink\ffmpeg\ffmpeg.exe
[cli][info] Found matching plugin dash for URL https://live-tf1-das.cdn-0.diff.tf1.fr/[Redacted]/out/v1/dfe36f90964947129902b842b83e65b4/index.mpd
[plugins.dash][debug] URL=https://live-tf1-das.cdn-0.diff.tf1.fr/[Redacted]/out/v1/dfe36f90964947129902b842b83e65b4/index.mpd; params={}
[utils.l10n][debug] Language code: fr_FR
[stream.dash][debug] Available languages for DASH audio streams: mul, sme, fra (using: mul)
[cli][info] Available streams: 234p (worst), 360p, 576p_alt, 576p, 720p (best)
[cli][info] Opening stream: 720p (dash)
[cli][info] Writing output to
D:\youtube-dl\TF1\TF1-2023-07-01_19-36-51.ts
[cli][debug] Checking file output
[stream.dash][debug] Opening DASH reader for: ('1474100', '1485523442', '1') - video/mp4
[stream.dash][debug] Opening DASH reader for: ('1474100', '1299661462', '6') - audio/mp4
[stream.dash][debug] video/mp4 segment initialization: downloading (2023-07-01T13:19:14.375000Z / 2023-07-01T17:36:51.113869Z)
[stream.dash_manifest][debug] Generating segment timeline for dynamic playlist: ('1474100', '1485523442', '1')
[stream.dash][debug] audio/mp4 segment initialization: downloading (2023-07-01T13:19:14.375000Z / 2023-07-01T17:36:51.116867Z)
[stream.dash_manifest][debug] Generating segment timeline for dynamic playlist: ('1474100', '1299661462', '6')
[stream.dash][debug] Reloading manifest ('1474100', '1485523442', '1')
[stream.dash][debug] Reloading manifest ('1474100', '1299661462', '6')
[stream.dash][debug] video/mp4 segment 1474256: downloading (2023-07-01T17:36:32.720000Z / 2023-07-01T17:36:51.141859Z)
[stream.dash][debug] video/mp4 segment initialization: completed
[stream.ffmpegmux][debug] ffmpeg version n6.0-3-g0e11aafb08-20230310 Copyright (c) 2000-2023 the FFmpeg developers
[stream.ffmpegmux][debug] built with gcc 12.2.0 (crosstool-NG 1.25.0.90_cf9beb1)
[stream.ffmpegmux][debug] configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --disable-libmfx --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20230310
[stream.ffmpegmux][debug] libavutil 58. 2.100 / 58. 2.100
[stream.ffmpegmux][debug] libavcodec 60. 3.100 / 60. 3.100
[stream.ffmpegmux][debug] libavformat 60. 3.100 / 60. 3.100
[stream.ffmpegmux][debug] libavdevice 60. 1.100 / 60. 1.100
[stream.ffmpegmux][debug] libavfilter 9. 3.100 / 9. 3.100
[stream.ffmpegmux][debug] libswscale 7. 1.100 / 7. 1.100
[stream.ffmpegmux][debug] libswresample 4. 10.100 / 4. 10.100
[stream.ffmpegmux][debug] libpostproc 57. 1.100 / 57. 1.100
[utils.named_pipe][info] Creating pipe streamlinkpipe-17768-1-4393
[utils.named_pipe][info] Creating pipe streamlinkpipe-17768-2-523
[stream.ffmpegmux][debug] ffmpeg command: C:\Program Files\Streamlink\ffmpeg\ffmpeg.exe -nostats -y -i \\.\pipe\streamlinkpipe-17768-1-4393 -i \\.\pipe\streamlinkpipe-17768-2-523 -c:v copy -c:a copy -copyts -f matroska pipe:1
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\streamlinkpipe-17768-1-4393
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\streamlinkpipe-17768-2-523
[cli][debug] Pre-buffering 8192 bytes
[stream.dash][debug] audio/mp4 segment 1474256: downloading (2023-07-01T17:36:32.720000Z / 2023-07-01T17:36:51.207836Z)
[stream.dash][debug] audio/mp4 segment initialization: completed
[stream.dash][debug] audio/mp4 segment 1474257: downloading (2023-07-01T17:36:40.720000Z / 2023-07-01T17:36:51.338794Z)
[stream.dash][debug] audio/mp4 segment 1474256: completed
[stream.dash][debug] video/mp4 segment 1474257: downloading (2023-07-01T17:36:40.720000Z / 2023-07-01T17:36:51.340793Z)
[stream.dash][debug] video/mp4 segment 1474256: completed
[stream.dash][debug] audio/mp4 segment 1474258: downloading (2023-07-01T17:36:48.720000Z / 2023-07-01T17:36:51.509740Z)
[stream.dash][debug] audio/mp4 segment 1474257: completed
[stream.dash][debug] audio/mp4 segment 1474259: downloading (2023-07-01T17:36:50.000000Z / 2023-07-01T17:36:51.535731Z)
[stream.dash][debug] audio/mp4 segment 1474258: completed
[cli][debug] Writing stream to output
[stream.dash][debug] audio/mp4 segment 1474259: completed
[stream.dash][debug] video/mp4 segment 1474258: downloading (2023-07-01T17:36:48.720000Z / 2023-07-01T17:36:51.699216Z)
[stream.dash][debug] video/mp4 segment 1474257: completed
[download] Written 5.02 MiB to TF1-2023-07-01_19-36-51.ts (0s) [stream.dash][debug] video/mp4 segment 1474259: downloading (2023-07-01T17:36:50.000000Z / 2023-07-01T17:36:51.894159Z)
[stream.dash][debug] video/mp4 segment 1474258: completed
[stream.dash][debug] video/mp4 segment 1474259: completed
[download] Written 7.99 MiB to TF1-2023-07-01_19-36-51.ts (1m00s @ 0 bytes/s) [stream.ffmpegmux][error] Error while reading from substream: Read timeout
[stream.ffmpegmux][error] Error while reading from substream: Read timeout
[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.segmented][debug] Closing worker thread
[stream.segmented][debug] Closing writer thread
[stream.segmented][debug] Closing worker thread
[stream.segmented][debug] Closing writer thread
[stream.segmented][debug] Closing writer thread
[stream.segmented][debug] Closing writer thread
[stream.ffmpegmux][debug] Closed all the substreams
[cli][info] Stream ended
[cli][info] Closing currently open stream...
```
Do you know what I'm doing wrong ?
My goal was to record 1 minute of the direct (the same which is played into the website).
Regards.
I'll have to check as I'm quite unsure about if it's a Streamlink DASH issue or TF1 having the live feed + 4 hours of replay.
> I'll have to check as I'm quite unsure about if it's a Streamlink DASH issue or TF1 having the live feed + 4 hours of replay.
Putting the link into yt-dlp gives me several video tracks, I think streamlink doesn't record the newest one :
```
D:\youtube-dl>yt-dlp -vF https://live-tf1-das.cdn-0.diff.tf1.fr/[Redacted]/out/v1/dfe36f90964947129902b842b83e65b4/index.mpd
[debug] Command-line config: ['-vF', 'https://live-tf1-das.cdn-0.diff.tf1.fr/[Redacted]/out/v1/dfe36f90964947129902b842b83e65b4/index.mpd']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version [email protected] [812cdfa06] (pip)
[debug] Python 3.11.2 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1s 1 Nov 2022)
[debug] exe versions: ffmpeg 2023-06-26-git-285c7f6f6b-full_build-www.gyan.dev (setts), ffprobe 2023-06-26-git-285c7f6f6b-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1851 extractors
[generic] Extracting URL: https://live-tf1-das.cdn-0.diff.tf1.fr/[Redacted]/out/v1/dfe36f90964947129902b842b83e65b4/index.mpd
[generic] index: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] index: Extracting information
[debug] Identified a DASH manifest
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[info] Available formats for index:
ID EXT RESOLUTION β TBR PROTO β VCODEC VBR ACODEC ABR ASR MORE INFO
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
6-0 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-1 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-2 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-3 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-4 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-5 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-6 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-7 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-8 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-9 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-10 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-11 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-12 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-13 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-14 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-15 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-16 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-17 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-18 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
6-19 m4a audio only β 96k dash β audio only mp4a.40.2 96k 48k DASH audio, m4a_dash
7-0 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-1 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-2 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-3 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-4 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-5 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-6 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-7 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-8 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-9 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-10 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-11 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-12 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-13 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-14 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-15 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-16 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-17 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-18 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
7-19 m4a audio only β 97k dash β audio only mp4a.40.2 97k 48k [sme] DASH audio, m4a_dash
8-0 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-1 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-2 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-3 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-4 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-5 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-6 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-7 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-8 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-9 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-10 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-11 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-12 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-13 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-14 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-15 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-16 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-17 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-18 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
8-19 m4a audio only β 129k dash β audio only mp4a.40.2 129k 48k [fra] DASH audio, m4a_dash
5-0 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-1 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-2 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-3 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-4 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-5 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-6 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-7 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-8 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-9 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-10 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-11 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-12 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-13 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-14 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-15 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-16 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-17 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-18 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
5-19 mp4 416x234 β 400k dash β avc1.42C00D 400k video only DASH video, mp4_dash
4-0 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-1 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-2 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-3 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-4 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-5 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-6 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-7 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-8 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-9 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-10 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-11 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-12 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-13 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-14 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-15 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-16 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-17 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-18 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
4-19 mp4 640x360 β 800k dash β avc1.42C01E 800k video only DASH video, mp4_dash
3-0 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-1 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-2 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-3 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-4 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-5 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-6 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-7 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-8 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-9 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-10 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-11 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-12 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-13 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-14 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-15 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-16 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-17 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-18 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
3-19 mp4 1024x576 β 1200k dash β avc1.4D401F 1200k video only DASH video, mp4_dash
2-0 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-1 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-2 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-3 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-4 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-5 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-6 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-7 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-8 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-9 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-10 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-11 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-12 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-13 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-14 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-15 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-16 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-17 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-18 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
2-19 mp4 1024x576 β 1700k dash β avc1.4D401F 1700k video only DASH video, mp4_dash
1-0 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-1 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-2 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-3 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-4 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-5 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-6 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-7 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-8 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-9 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-10 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-11 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-12 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-13 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-14 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-15 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-16 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-17 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-18 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
1-19 mp4 1280x720 β 2500k dash β avc1.4D401F 2500k video only DASH video, mp4_dash
```
Don't post media files here. I've hid the post now.
If it's an issue with the DASHStream implementation, then you'll have to provide the full DASH manifest and the full trace log, so the segment timestamps can be checked. **This is off topic though** and should be posted in a new thread. There is a thread about DASH timing offsets: #5201
> Don't post media files here. I've hid the post now.
>
> If it's an issue with the DASHStream implementation, then you'll have to provide the full DASH manifest and the full trace log, so the segment timestamps can be checked. **This is off topic though** and should be posted in a new thread. There is a thread about DASH timing offsets: #5201
Sorry, I delete them.
Hello
Is there any update on this? tf1 is quite an important plugin for the french community,
any update on this? tf1 is still the biggest tv station in Europe and the plugin used to provide 4 channels of TF1 group!
> any update on this?
Fix the plugin and send a pull request.
obviously if I could I would
hello
any update on this please? are you considering one day to fix the plugin?
This will most certainly need a bit of a relift but here's my take on it : https://raw.githubusercontent.com/BellezaEmporium/streamlink/master/src/streamlink/plugins/tf1.py
There's a system of "token + refresh token" implemented in TF1's website, though I have not added the refresh logic to the code data yet, as i'm thinking on how to store account information in order from Streamlink to grab available data without having the need to reconnect.
```
C:\Users\....>streamlink --tf1-username=***** --tf1-password=***** https://www.tf1.fr/tf1/direct best
[cli][info] Found matching plugin tf1 for URL https://www.tf1.fr/tf1/direct
[cli][info] Available streams: 234p (worst), 360p, 576p_alt, 576p, 720p (best)
[cli][info] Opening stream: 720p (hls-multi)
[cli][info] Starting player: C:\Program Files\VideoLAN\VLC\vlc.exe
[utils.named_pipe][info] Creating pipe streamlinkpipe-45144-1-8040
[utils.named_pipe][info] Creating pipe streamlinkpipe-45144-2-715
```
thanks a lot for fixing this. has been quite some time now !
it's working fine on my side.
if we are talking about the token that expires every 4 hours, it was like this with the former plugin anyway.
It was therefore clearly linked to the obligation to identify oneself due to the existence of MyTF1 Max, as I had assumed.
Translated from:
C'Γ©tait donc bien en rapport avec l'obligation de s'identifier due Γ l'existence de MyTF1 Max, quel que je l'avais prΓ©sumΓ©.
I think to watch on their site, even before, you had to be logged in .
can't really remember, I rarely use that site anyway
> I think to watch on their site, even before, you had to be logged in .
No.
> can't really remember, I rarely use that site anyway
me yes.
Linked to the introduction of PPV streams in MyTF1 (since Star Academy's 24/7 streams, even before I believe).
Hello there,
@BellezaEmporium I tried your file, but i got this error :
```python
streamlink https://www.tf1.fr/tf1/direct
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:\Program Files\Streamlink\bin\streamlink.exe\__main__.py", line 18, in <module>
File "C:\Program Files\Streamlink\pkgs\streamlink_cli\main.py", line 963, in main
error_code = run(parser)
^^^^^^^^^^^
File "C:\Program Files\Streamlink\pkgs\streamlink_cli\main.py", line 936, in run
handle_url()
File "C:\Program Files\Streamlink\pkgs\streamlink_cli\main.py", line 543, in handle_url
options = setup_plugin_options(pluginname, pluginclass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Streamlink\pkgs\streamlink_cli\main.py", line 749, in setup_plugin_options
value = getattr(args, parg.namespace_dest(pluginname))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'tf1_username'
```
I've tried to found out alone but i'm not a dev so i don't get shit about what's wrong :(
If i'm trying with a login throught this cmd
```
streamlink --tf1-username=**** https://www.tf1.fr/tf1/direct
```
i've this message
```python
usage: streamlink [OPTIONS] <URL> [STREAM]
streamlink: error: unrecognized arguments: --tf1-username=****
```
I saw that you add this line
```python
from streamlink.plugin.plugin import pluginargument
```
which is not the same when i compare to another plugin so i deleted it and added it to this line
```python
from streamlink.plugin import Plugin, pluginargument, PluginError, pluginmatcher
```
but it doesn't changed anything :(
Also i don't see the tf1 help section you added using the cmd --help
I'm using streamlink 6.7.3
I would appreciate your help if you can π
see ya
it was never merged into the main project, curiously..
it still works perfectly on my side
![image](https://github.com/streamlink/streamlink/assets/30985701/b722bcd1-b050-4e4a-9db5-d1f531e4eca5)
Works fine on my side.
> it was never merged into the main project, curiously..
With the recent spam/abuse in mind which I've received by other users, I'm going to say this now:
@campones The attitude you've been showing here for the past couple of years is highly annoying.
To remind you, this is a free open source software project run by volunteers in their free time. All you however do is request urgent help, attention and time without ever contributing back to the project in any way (while also abusing the software for monetary gains from what I believe by rehosting streams on your own servers - which is extra annoying to me).
- https://github.com/streamlink/streamlink/issues?q=author%3Acampones
- https://github.com/streamlink/streamlink/issues?q=commenter%3Acampones
- https://github.com/streamlink/streamlink/pulls?q=is%3Apr+author%3Acampones
- https://github.com/streamlink/streamlink/discussions?discussions_q=author%3Acampones
- https://github.com/campones?tab=repositories
If nobody submits a pull request with a fix for the plugin, then it remains broken on the master branch unless the maintainers take a look at it themselves. "The maintainers" (plural) however has been pretty much me (singular) for a very long time now because everyone else who had an actual interest in the project and/or had regularly contributed code has left (be it health issues or other various reasons).
Considering that there are additional obstacles in the way in the shape of required user accounts, I don't have much motivation fixing the plugin. If anyone however had submitted a pull request, I would have certainly given it a proper review which would have very likely led to a merge if the author could have shown me log outputs of a working plugin. [This has still not happened today.](https://github.com/streamlink/streamlink/pulls?q=is%3Apr+plugins.tf1) I can't be bothered looking for branches on any forks where certain plugins might have been fixed.
Sideloading plugins or forking the project for personal modifications is perfectly fine (within the limits of the project's license), but if no one even thinks about contributing back via pull requests, then please don't wonder why plugins remain broken or get removed eventually. Same with any other issues regarding Streamlink's code base.
Questioning maintainer activity or constantly asking why XYZ hasn't been fixed yet, and thus once again being annoying by trying to apply pressure without contributing back yourself is just a super shitty thing to do, even as a regular user who doesn't know how to write code. Things like this make me feel less and less motivated working on the project... As said at the beginning, I've just been spammed by other users recently with the exact same demanding attitude.
I won't even bother to answer.
To answer on my behalf, I simply don't do pull requests because that would most certainly add all the other plugins I've did to the list. Which would be irrelevant in the base of this issue.
I've did a few personal plugins based on Streamlink's plugin schema, in order for me to fully understand how the technology works. If they see the light of day in the form of a PR, they might need a certain amount of rework to fit the new plugin structure.
@BellezaEmporium I'm totally sorry to bothering you but i'm an advanced computer user but not a dev, so i just need help for few editing to makes this past post functionning. Is that community starts to be toxic as everyone else on the internet by this days ?
Just give me an hand to understand what is wrong with the code because i'm totally new in the project and i don't want to waste a lot of time to understand the whole fucking technology please !
i mean every IT executor knows that there is that much sector that you can't be performant on every sector right ?!
Is anyone of you can tell me how to make a windows server with dhcp dns vpn radius server, configuring gpo admx and whaetever else ? Configuring routers and switches ? Resolving any microsoft issues ? configuring linux as a router, dns, firewall whatever else ? sry if i'm kinda sure that 10% of pple in here can be truely say "yes i can"
@W4RdZ I m using this with streamlink 6.5.0
just out of curiosity, are you based in France or are you using a vpn? because these channels are geoblocked
> @BellezaEmporium I'm totally sorry to bothering you but i'm an advanced computer user but not a dev, so i just need help for few editing to makes this past post functionning. Is that community starts to be toxic as everyone else on the internet by this days ? Just give me an hand to understand what is wrong with the code because i'm totally new in the project and i don't want to waste a lot of time to understand the whole fucking technology please !
Might be a change in the newer versions of Streamlink. Please take note that I've made the plugin in the version that was available in December 2023. If you did an update afterwards, I might not know what has changed or not. Might be an option call change in the newer versions of Streamlink, as it seems to not recognize any of the options that are mandatory for this plugin.
yes, I have been updating one local server with latest streamlink release and indeed it doesn't work anymore
streamlink: error: unrecognized arguments: --tf1-username *** --tf1-password *** https://www.tf1.fr/tf1/direct
> > @BellezaEmporium I'm totally sorry to bothering you but i'm an advanced computer user but not a dev, so i just need help for few editing to makes this past post functionning. Is that community starts to be toxic as everyone else on the internet by this days ? Just give me an hand to understand what is wrong with the code because i'm totally new in the project and i don't want to waste a lot of time to understand the whole fucking technology please !
>
> Might be a change in the newer versions of Streamlink. Please take note that I've made the plugin in the version that was available in December 2023. If you did an update afterwards, I might not know what has changed or not. Might be an option call change in the newer versions of Streamlink, as it seems to not recognize any of the options that are mandatory for this plugin.
ty for your obvious statment π₯ i'm asking help about the plugin you developped to make it working on the last version.
I'm not asking to repeat what i already known... (if it was the case, i would not tell what version i'm running on or what i've allready tried as rookie dev to fix it.)
So i guess i can just get the fuck out of here and install an outdated version π
Ty for your consideration !
Kind regards
@W4RdZ
well just downgrade the streamlink release and that should be fine?
pip uninstall streamlink
pip install streamlink==6.5.0
must be related to this
https://streamlink.github.io/deprecations.html
You are not **sideloading** the plugin but instead **overwriting** the regular plugin module, which is **unsupported**. You are not supposed to touch any files in a Python distribution.
Read the documentation on how to sideload new or override existing plugins:
https://streamlink.github.io/cli/plugin-sideloading.html
The error you're seeing is a consequence of overwriting the regular plugin file and trying to add new plugin arguments. This is explicitly unsupported with the addition of lazy plugin loading in 6.6.0:
https://streamlink.github.io/changelog.html#streamlink-6-6-0-2024-02-16
> You are not **sideloading** the plugin but instead **overwriting** the regular plugin module, which is **unsupported**. You are not supposed to touch any files in a Python distribution.
>
> Read the documentation on how to sideload new or override existing plugins: https://streamlink.github.io/cli/plugin-sideloading.html
>
> The error you're seeing is a consequence of overwriting the regular plugin file and trying to add new plugin arguments. This is explicitly unsupported with the addition of lazy plugin loading in 6.6.0: https://streamlink.github.io/changelog.html#streamlink-6-6-0-2024-02-16
Ah well thanks for pointing me to the right direction. I'll take a check soon then.
> You are not **sideloading** the plugin but instead **overwriting** the regular plugin module, which is **unsupported**. You are not supposed to touch any files in a Python distribution.
>
> Read the documentation on how to sideload new or override existing plugins: https://streamlink.github.io/cli/plugin-sideloading.html
>
> The error you're seeing is a consequence of overwriting the regular plugin file and trying to add new plugin arguments. This is explicitly unsupported with the addition of lazy plugin loading in 6.6.0: https://streamlink.github.io/changelog.html#streamlink-6-6-0-2024-02-16
Thanks, loading the plugin from the right path works, but i think the code must be reworked a bit to fit with the update.
Maybe you can help me to understand which part of [BellezaEmporium code](https://raw.githubusercontent.com/BellezaEmporium/streamlink/master/src/streamlink/plugins/tf1.py) tries to add arguments (Sorry, i really have only basics on general dev.)
In a first approch i thought it was about these parts of the code :
```python
@pluginargument(
"username",
requires=["password"],
metavar="USERNAME",
help="The username used to register with tf1.fr.",
)
@pluginargument(
"password",
prompt="Enter tf1.fr account password",
sensitive=True,
metavar="PASSWORD",
help="A tf1.fr account password to use with --tf1-username.",
)
```
and
```python
def _get_streams(self):
if not self.get_option("username"):
log.error(
"In order to access your content, TF1 requires an account you must login with, using "
+ "--tf1-username and --tf1-password",
)
return
if not self.login(self.get_option("username"), self.get_option("password")):
log.error(
"Could not authenticate, check your username and password.")
return
channel, channel_id = self._get_channel()
log.debug(f"Found channel {channel} ({channel_id})")
code, data = self._api_call(channel_id)
if code != 200:
log.error(data)
return
return HLSStream.parse_variant_playlist(self.session, data)
```
So i've edited it for this :
```python
@pluginargument(
"username",
required=True,
requires=["password"],
metavar="USERNAME",
help="Your TF1 account username",
)
@pluginargument(
"password",
required=True,
sensitive=True,
metavar="PASSWORD",
help="Your TF1 account password",
)
```
and
```python
def _get_streams(self):
if not self.login(self.get_option("username"), self.get_option("password")):
log.error("Failed to login, check username and password")
return
channel, channel_id = self._get_channel()
log.debug(f"Found channel {channel} ({channel_id})")
code, data = self._api_call(channel_id)
if code != 200:
log.error(data)
return
return HLSStream.parse_variant_playlist(self.session, data)
```
But the error message remains almost the same as original BellezaEmporium code, only the line numbers change because of my editing :
```python
Enter tf1 password:
[cli][info] Found matching plugin tf1 for URL https://www.tf1.fr/tf1/direct
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:\Program Files\Streamlink\bin\streamlink.exe\__main__.py", line 18, in <module>
File "C:\Program Files\Streamlink\pkgs\streamlink_cli\main.py", line 963, in main
error_code = run(parser)
^^^^^^^^^^^
File "C:\Program Files\Streamlink\pkgs\streamlink_cli\main.py", line 936, in run
handle_url()
File "C:\Program Files\Streamlink\pkgs\streamlink_cli\main.py", line 556, in handle_url
streams = fetch_streams(plugin)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Streamlink\pkgs\streamlink_cli\main.py", line 454, in fetch_streams
return plugin.streams(stream_types=args.stream_types,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Streamlink\pkgs\streamlink\plugin\plugin.py", line 387, in streams
ostreams = self._get_streams()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\***\AppData\Roaming\streamlink\plugins\tf1.py", line 156, in _get_streams
if not self.login(self.get_option("username"), self.get_option("password")):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\***\AppData\Roaming\streamlink\plugins\tf1.py", line 149, in login
if auth_check() == True:
^^^^^^^^^^^^
File "C:\Users\***\AppData\Roaming\streamlink\plugins\tf1.py", line 134, in auth_check
"uid": res.json()['userInfo']['UID'],
~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'userInfo'
```
As few as i comprehend, it must point on this part of the code :
```python
def auth_check():
res = self.session.http.post(
self.auth_url,
data=dict(
loginID=username,
password=password,
APIKey=self.gigya_api_key,
includeUserInfo="true"
),
headers={"Referer": self.url, "User-Agent": useragents.IPHONE})
# If TF1 login is successful, get Gigya token.
if res.status_code == 200:
# make the session request to get the correct cookies
session_res = self.session.http.post(
self.session_url,
data=json.dumps({
"uid": res.json()['userInfo']['UID'],
"signature": res.json()['userInfo']['UIDSignature'],
"timestamp": int(res.json()['userInfo']['signatureTimestamp']),
"consent_ids": ["1", "2", "3", "4", "10001", "10003", "10005", "10007", "10013", "10015", "10017", "10019", "10009", "10011", "13002", "13001", "10004", "10014", "10016", "10018", "10020", "10010", "10012", "10006", "10008"]
})
)
if session_res.status_code == 200:
self.user_token = session_res.json()['token']
return True
else:
return False
else:
return False
if auth_check() == True:
log.debug("Already authenticated, skipping authentication")
return True
else:
return False
```
I've the feeling it's more about change like these whiches make the code not working https://github.com/streamlink/streamlink/pull/5807 https://github.com/streamlink/streamlink/pull/5814
But for me it's getting too complicated π
The reason for the error you've posted is simple: the third party plugin does not do any error handling and HTTP response validation, hence the `KeyError` being raised from trying to access a specific attribute on the server's JSON response. It has nothing to do with #5807 and related **at all**.
So I'm saying this one again. If you want this plugin fixed, then open a pull request. I'm not going to review any code on any user branches or code downloaded from somewhere else.
I can already tell you though that all the changes made in the linked plugin code are implemented pretty poorly and require a whole rewrite.
i'll make that π | 2024-05-09T14:14:08 |
|
streamlink/streamlink | 6,012 | streamlink__streamlink-6012 | [
"6010"
] | 6f1413e581392ec140c5a9176f940a928f7ce1d4 | diff --git a/src/streamlink/plugins/kick.py b/src/streamlink/plugins/kick.py
new file mode 100644
--- /dev/null
+++ b/src/streamlink/plugins/kick.py
@@ -0,0 +1,190 @@
+"""
+$description Global live-streaming and video hosting social platform owned by Kick Streaming Pty Ltd.
+$url kick.com
+$type live, vod
+$metadata id
+$metadata author
+$metadata category
+$metadata title
+"""
+
+import re
+
+from streamlink.plugin import Plugin, pluginmatcher
+from streamlink.plugin.api import validate
+from streamlink.stream.hls import HLSStream
+
+
+@pluginmatcher(
+ name="live",
+ pattern=re.compile(r"https?://(?:\w+\.)?kick\.com/(?!video/)(?P<channel>[^/?]+)$"),
+)
+@pluginmatcher(
+ name="vod",
+ pattern=re.compile(r"https?://(?:\w+\.)?kick\.com/video/(?P<vod>[^/?]+)"),
+)
+@pluginmatcher(
+ name="clip",
+ pattern=re.compile(r"https?://(?:\w+\.)?kick\.com/(?!video/)(?P<channel>[^/?]+)\?clip=(?P<clip>[^&]+)$"),
+)
+class Kick(Plugin):
+ _URL_TOKEN = "https://kick.com/"
+ _URL_API_LIVESTREAM = "https://kick.com/api/v2/channels/{channel}/livestream"
+ _URL_API_VOD = "https://kick.com/api/v1/video/{vod}"
+ _URL_API_CLIP = "https://kick.com/api/v2/clips/{clip}"
+
+ def _get_token(self):
+ res = self.session.http.get(self._URL_TOKEN, raise_for_status=False)
+ return res.cookies.get("XSRF-TOKEN", "")
+
+ def _get_api_headers(self):
+ token = self._get_token()
+
+ return {
+ "Accept": "application/json",
+ "Accept-Language": "en-US",
+ "Referer": self.url,
+ "Authorization": f"Bearer {token}",
+ }
+
+ def _get_streams_live(self):
+ self.author = self.match["channel"]
+
+ data = self.session.http.get(
+ self._URL_API_LIVESTREAM.format(channel=self.author),
+ acceptable_status=(200, 404),
+ headers=self._get_api_headers(),
+ schema=validate.Schema(
+ validate.parse_json(),
+ validate.any(
+ validate.all(
+ {"message": str},
+ validate.transform(lambda _: None),
+ ),
+ validate.all(
+ {"data": None},
+ validate.transform(lambda _: None),
+ ),
+ validate.all(
+ {
+ "data": {
+ "playback_url": validate.url(path=validate.endswith(".m3u8")),
+ "id": int,
+ "category": {"name": str},
+ "session_title": str,
+ },
+ },
+ validate.get("data"),
+ validate.union_get(
+ "playback_url",
+ "id",
+ ("category", "name"),
+ "session_title",
+ ),
+ ),
+ ),
+ ),
+ )
+ if not data:
+ return
+
+ hls_url, self.id, self.category, self.title = data
+
+ return HLSStream.parse_variant_playlist(self.session, hls_url)
+
+ def _get_streams_vod(self):
+ self.id = self.match["vod"]
+
+ data = self.session.http.get(
+ self._URL_API_VOD.format(vod=self.id),
+ acceptable_status=(200, 404),
+ headers=self._get_api_headers(),
+ schema=validate.Schema(
+ validate.parse_json(),
+ validate.any(
+ validate.all(
+ {"message": str},
+ validate.transform(lambda _: None),
+ ),
+ validate.all(
+ {
+ "source": validate.url(path=validate.endswith(".m3u8")),
+ "livestream": {
+ "session_title": str,
+ "channel": {
+ "user": {
+ "username": str,
+ },
+ },
+ },
+ },
+ validate.union_get(
+ "source",
+ ("livestream", "channel", "user", "username"),
+ ("livestream", "session_title"),
+ ),
+ ),
+ ),
+ ),
+ )
+ if not data:
+ return
+
+ hls_url, self.author, self.title = data
+
+ return HLSStream.parse_variant_playlist(self.session, hls_url)
+
+ def _get_streams_clip(self):
+ self.id = self.match["clip"]
+ self.author = self.match["channel"]
+
+ data = self.session.http.get(
+ self._URL_API_CLIP.format(clip=self.id),
+ acceptable_status=(200, 404),
+ headers=self._get_api_headers(),
+ schema=validate.Schema(
+ validate.parse_json(),
+ validate.any(
+ validate.all(
+ {"message": str},
+ validate.transform(lambda _: None),
+ ),
+ validate.all(
+ {"clip": None},
+ validate.transform(lambda _: None),
+ ),
+ validate.all(
+ {
+ "clip": {
+ "clip_url": validate.url(path=validate.endswith(".m3u8")),
+ "category": {"name": str},
+ "title": str,
+ },
+ },
+ validate.get("clip"),
+ validate.union_get(
+ "clip_url",
+ ("category", "name"),
+ "title",
+ ),
+ ),
+ ),
+ ),
+ )
+ if not data:
+ return
+
+ hls_url, self.category, self.title = data
+
+ return {"clip": HLSStream(self.session, hls_url)}
+
+ def _get_streams(self):
+ if self.matches["live"]:
+ return self._get_streams_live()
+ if self.matches["vod"]:
+ return self._get_streams_vod()
+ if self.matches["clip"]:
+ return self._get_streams_clip()
+
+
+__plugin__ = Kick
| diff --git a/tests/plugins/test_kick.py b/tests/plugins/test_kick.py
new file mode 100644
--- /dev/null
+++ b/tests/plugins/test_kick.py
@@ -0,0 +1,12 @@
+from streamlink.plugins.kick import Kick
+from tests.plugins import PluginCanHandleUrl
+
+
+class TestPluginCanHandleUrlKick(PluginCanHandleUrl):
+ __plugin__ = Kick
+
+ should_match_groups = [
+ (("live", "https://kick.com/LIVE_CHANNEL"), {"channel": "LIVE_CHANNEL"}),
+ (("vod", "https://kick.com/video/VIDEO_ID"), {"vod": "VIDEO_ID"}),
+ (("clip", "https://kick.com/CLIP_CHANNEL?clip=CLIP_ID"), {"channel": "CLIP_CHANNEL", "clip": "CLIP_ID"}),
+ ]
| Kick.com
### Checklist
- [X] This is a plugin request and not [a different kind of issue](https://github.com/streamlink/streamlink/issues/new/choose)
- [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink)
- [X] [I have checked the list of open and recently closed plugin requests](https://github.com/streamlink/streamlink/issues?q=is%3Aissue+label%3A%22plugin+request%22)
### Description
I see this request closed more than a year ago: https://github.com/streamlink/streamlink/issues/5238 but I think we can say Kick is an established site at this point.
### Input URLs
https://kick.com
| I'd argue that Kick still violates rule 10 of the [contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#plugin-requests):
> Sites which have no way to determine viewership numbers
> Plugins must not implement websites which are unused or which only have a handful of real/actual users.
As far as I understand the situation Kick still does nothing in regards to the most basic view botting techniques and faking viewer counts. @bastimeyer I'm unsure what our stance on this sort of site should be as there's a lot of other problematic content which leads me to being biased against it on top of the rule violation so I can't be objective enough.
The rule you're talking about is meant for sites which actually don't have any viewers. Yes, they are faking their viewer numbers, but it's not like there aren't any actual viewers (unfortunately).
While I have very strong opinions about kick, its content and partnered streamers, its business model, as well as its owners, I still don't have anything against adding a plugin. We already have plugins for similar sites, so it doesn't matter to me that this site is supported as well, regardless of what it stands for. If I would judge the content which plugins provide, then I would have removed a couple dozens of them already.
I already had a look at a plugin implementation, because it appeared to be rather trivial, which it indeed was.
Thanks for consideration and the plugin, I only know this service because a lot of streamers I follow on Twitch started to switch to Kick recently, some co-stream with Twitch and some switched entirely to Kick so I think it's an established service at this point.
Their [guidelines](https://kick.com/community-guidelines) say this about botting:
> "Activities such as botting, view botting, follow-for-follow schemes, and subscriber fraud are prohibited. These rules are in place to uphold the integrity of our platform and its community and **will be enforced accordingly**. "
So I think they at least do something about botting. | 2024-05-31T16:04:41 |
streamlink/streamlink | 6,016 | streamlink__streamlink-6016 | [
"6015"
] | 6f78ab12df402b801628b4fa1b2071b0a7a01bb2 | diff --git a/src/streamlink/plugins/twitch.py b/src/streamlink/plugins/twitch.py
--- a/src/streamlink/plugins/twitch.py
+++ b/src/streamlink/plugins/twitch.py
@@ -71,6 +71,15 @@ class TwitchM3U8Parser(M3U8Parser[TwitchM3U8, TwitchHLSSegment, HLSPlaylist]):
__m3u8__: ClassVar[Type[TwitchM3U8]] = TwitchM3U8
__segment__: ClassVar[Type[TwitchHLSSegment]] = TwitchHLSSegment
+ def __init__(self, *args, **kwargs) -> None:
+ super().__init__(*args, **kwargs)
+ self._twitch_live_sequence: Optional[int] = None
+
+ # additional metadata available on prefetch segments, indicating live content
+ @parse_tag("EXT-X-TWITCH-LIVE-SEQUENCE")
+ def parse_ext_x_twitch_live_sequence(self, value):
+ self._twitch_live_sequence = int(value)
+
@parse_tag("EXT-X-TWITCH-PREFETCH")
def parse_tag_ext_x_twitch_prefetch(self, value):
segments = self.m3u8.segments
@@ -84,19 +93,23 @@ def parse_tag_ext_x_twitch_prefetch(self, value):
# Use the last duration for extrapolating the start time of the prefetch segment, which is needed for checking
# whether it is an ad segment and matches the parsed date ranges or not
date = last.date + timedelta(seconds=last.duration)
- # Always treat prefetch segments after a discontinuity as ad segments
- ad = self._discontinuity or self._is_segment_ad(date)
+ ad = self._is_segment_ad(date)
segment = dataclass_replace(
last,
uri=self.uri(value),
duration=duration,
title=None,
+ discontinuity=self._discontinuity and self._twitch_live_sequence is None,
date=date,
ad=ad,
prefetch=True,
)
segments.append(segment)
+ # Reset state
+ self._discontinuity = False
+ self._twitch_live_sequence = None
+
@parse_tag("EXT-X-DATERANGE")
def parse_tag_ext_x_daterange(self, value):
super().parse_tag_ext_x_daterange(value)
@@ -108,6 +121,18 @@ def get_segment(self, uri: str, **data) -> TwitchHLSSegment:
ad = self._is_segment_ad(self._date, self._extinf.title if self._extinf else None)
segment: TwitchHLSSegment = super().get_segment(uri, ad=ad, prefetch=False) # type: ignore[assignment]
+ # Special case where Twitch incorrectly inserts discontinuity tags between segments of the live content
+ if (
+ segment.discontinuity
+ and not segment.ad
+ and self.m3u8.segments
+ and not self.m3u8.segments[-1].ad
+ ):
+ segment.discontinuity = False
+
+ # Reset state
+ self._twitch_live_sequence = None
+
return segment
def _is_segment_ad(self, date: Optional[datetime], title: Optional[str] = None) -> bool:
| diff --git a/tests/plugins/test_twitch.py b/tests/plugins/test_twitch.py
--- a/tests/plugins/test_twitch.py
+++ b/tests/plugins/test_twitch.py
@@ -341,12 +341,12 @@ def test_hls_low_latency_has_prefetch_disable_ads_no_preroll_with_prefetch_ads(s
Seg, Pre = Segment, SegmentPrefetch
ads = [
Tag("EXT-X-DISCONTINUITY"),
- TagDateRangeAd(start=DATETIME_BASE + timedelta(seconds=3), duration=4),
+ TagDateRangeAd(start=DATETIME_BASE + timedelta(seconds=2.5), duration=4),
]
# noinspection PyTypeChecker
segments = self.subject([
# regular stream data with prefetch segments
- Playlist(0, [Seg(0), Seg(1, duration=0.5), Pre(2), Pre(3)]),
+ Playlist(0, [Seg(0), Seg(1, duration=0.5), Pre(2), *ads, Pre(3)]),
# three prefetch segments, one regular (2) and two ads (3 and 4)
Playlist(1, [Seg(1, duration=0.5), Pre(2), *ads, Pre(3), Pre(4)]),
# all prefetch segments are gone once regular prefetch segments have shifted
@@ -395,6 +395,33 @@ def test_hls_low_latency_no_ads_reload_time(self):
self.await_read(read_all=True)
assert self.thread.reader.worker.playlist_reload_time == pytest.approx(23 / 3)
+ @patch("streamlink.stream.hls.hls.log")
+ def test_hls_incorrect_discontinuity(self, mock_log):
+ discontinuity = Tag("EXT-X-DISCONTINUITY")
+ self.subject([
+ Playlist(0, [Segment(0), Segment(1), discontinuity, Segment(2), Segment(3)]),
+ Playlist(4, [Segment(4), discontinuity, Segment(5), Segment(6), Segment(7)], end=True),
+ ], streamoptions={"disable_ads": True, "low_latency": True})
+
+ self.await_write(6)
+ self.await_read(read_all=True)
+ assert mock_log.warning.mock_calls == []
+
+ @patch("streamlink.stream.hls.hls.log")
+ def test_hls_incorrect_discontinuity_prefetch(self, mock_log):
+ Seg, Pre = Segment, SegmentPrefetch
+ discontinuity = Tag("EXT-X-DISCONTINUITY")
+ tls = Tag("EXT-X-TWITCH-LIVE-SEQUENCE", 1234) # value is irrelevant
+ self.subject([
+ Playlist(0, [Seg(0), Seg(1), discontinuity, tls, Pre(2), discontinuity, tls, Pre(3)]),
+ Playlist(1, [Seg(1), discontinuity, tls, Seg(2), discontinuity, tls, Pre(3), Pre(4)]),
+ Playlist(2, [Seg(2), discontinuity, tls, Seg(3), discontinuity, tls, Pre(4), Pre(5)], end=True),
+ ], streamoptions={"disable_ads": True, "low_latency": True})
+
+ self.await_write(4)
+ self.await_read(read_all=True)
+ assert mock_log.warning.mock_calls == []
+
class TestTwitchAPIAccessToken:
@pytest.fixture(autouse=True)
| plugins.twitch: incorrect discontinuity tags lead to warnings being spammed
### Checklist
- [X] This is a [plugin issue](https://streamlink.github.io/plugins.html) and not [a different kind of issue](https://github.com/streamlink/streamlink/issues/new/choose)
- [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink)
- [X] [I have checked the list of open and recently closed plugin issues](https://github.com/streamlink/streamlink/issues?q=is%3Aissue+label%3A%22plugin+issue%22)
- [X] [I have checked the commit log of the master branch](https://github.com/streamlink/streamlink/commits/master)
### Streamlink version
streamlink 6.7.4
### Description
Recently, I've noticed constant warnings about stream discontinuities despite not seeing any actually happen.
According to the verbose log the playlists seem to keep having the X-DISCONTINUITY tag in them even though I'm not getting served some sort of mid-roll or pre-roll due to having a subscription to the channel in question. I'm still receiving the live broadcast.
There are also instances of repetitively getting this warning even after getting past the initial pre-roll in the event I don't have a subscription to a particular streamer.
I'm not sure what's going on in the Twitch side of things, is this some attempt at trying to break streamlink usage again?
The verbose log is too large for the issue report so I'm attaching it as a file:
[streamlink.txt.gz](https://github.com/user-attachments/files/15524324/streamlink.txt.gz)
### Debug log
```text
https://github.com/user-attachments/files/15524324/streamlink.txt.gz
```
| This has nothing to do with Twitch. It's a bug in the HLS implementation which warns when there's a stream discontinuity, which is not supported by Streamlink, as two different bitstreams are concatenated. This happens during ad transitions. The warning however is not supposed to be written to the log output every time. This looks like a bug in regards to the ad segment filtering.
After having another closer look at the logs, the warning behavior seems to be working correctly. What's wrong is the discontinuity tag in between two "live" segments where there's no actual discontinuity.
No idea why Twitch is inserting this here, but it's clearly wrong. You said it yourself, you get the regular live content without ads.
I guess this could be covered by the Twitch plugin's HLS subclasses. The discontinuity status of a segment would need to be cleared when it and the segment before it are both considered "live" segments.
Prefetch segments however might cause a few problems:
https://github.com/streamlink/streamlink/blob/6.7.4/src/streamlink/plugins/twitch.py#L87 | 2024-06-02T20:15:04 |
streamlink/streamlink | 6,021 | streamlink__streamlink-6021 | [
"6018"
] | 1348bcf86b291983f360900516b8002ef5f14c7d | diff --git a/src/streamlink/plugins/kick.py b/src/streamlink/plugins/kick.py
deleted file mode 100644
--- a/src/streamlink/plugins/kick.py
+++ /dev/null
@@ -1,190 +0,0 @@
-"""
-$description Global live-streaming and video hosting social platform owned by Kick Streaming Pty Ltd.
-$url kick.com
-$type live, vod
-$metadata id
-$metadata author
-$metadata category
-$metadata title
-"""
-
-import re
-
-from streamlink.plugin import Plugin, pluginmatcher
-from streamlink.plugin.api import validate
-from streamlink.stream.hls import HLSStream
-
-
-@pluginmatcher(
- name="live",
- pattern=re.compile(r"https?://(?:\w+\.)?kick\.com/(?!video/)(?P<channel>[^/?]+)$"),
-)
-@pluginmatcher(
- name="vod",
- pattern=re.compile(r"https?://(?:\w+\.)?kick\.com/video/(?P<vod>[^/?]+)"),
-)
-@pluginmatcher(
- name="clip",
- pattern=re.compile(r"https?://(?:\w+\.)?kick\.com/(?!video/)(?P<channel>[^/?]+)\?clip=(?P<clip>[^&]+)$"),
-)
-class Kick(Plugin):
- _URL_TOKEN = "https://kick.com/"
- _URL_API_LIVESTREAM = "https://kick.com/api/v2/channels/{channel}/livestream"
- _URL_API_VOD = "https://kick.com/api/v1/video/{vod}"
- _URL_API_CLIP = "https://kick.com/api/v2/clips/{clip}"
-
- def _get_token(self):
- res = self.session.http.get(self._URL_TOKEN, raise_for_status=False)
- return res.cookies.get("XSRF-TOKEN", "")
-
- def _get_api_headers(self):
- token = self._get_token()
-
- return {
- "Accept": "application/json",
- "Accept-Language": "en-US",
- "Referer": self.url,
- "Authorization": f"Bearer {token}",
- }
-
- def _get_streams_live(self):
- self.author = self.match["channel"]
-
- data = self.session.http.get(
- self._URL_API_LIVESTREAM.format(channel=self.author),
- acceptable_status=(200, 404),
- headers=self._get_api_headers(),
- schema=validate.Schema(
- validate.parse_json(),
- validate.any(
- validate.all(
- {"message": str},
- validate.transform(lambda _: None),
- ),
- validate.all(
- {"data": None},
- validate.transform(lambda _: None),
- ),
- validate.all(
- {
- "data": {
- "playback_url": validate.url(path=validate.endswith(".m3u8")),
- "id": int,
- "category": {"name": str},
- "session_title": str,
- },
- },
- validate.get("data"),
- validate.union_get(
- "playback_url",
- "id",
- ("category", "name"),
- "session_title",
- ),
- ),
- ),
- ),
- )
- if not data:
- return
-
- hls_url, self.id, self.category, self.title = data
-
- return HLSStream.parse_variant_playlist(self.session, hls_url)
-
- def _get_streams_vod(self):
- self.id = self.match["vod"]
-
- data = self.session.http.get(
- self._URL_API_VOD.format(vod=self.id),
- acceptable_status=(200, 404),
- headers=self._get_api_headers(),
- schema=validate.Schema(
- validate.parse_json(),
- validate.any(
- validate.all(
- {"message": str},
- validate.transform(lambda _: None),
- ),
- validate.all(
- {
- "source": validate.url(path=validate.endswith(".m3u8")),
- "livestream": {
- "session_title": str,
- "channel": {
- "user": {
- "username": str,
- },
- },
- },
- },
- validate.union_get(
- "source",
- ("livestream", "channel", "user", "username"),
- ("livestream", "session_title"),
- ),
- ),
- ),
- ),
- )
- if not data:
- return
-
- hls_url, self.author, self.title = data
-
- return HLSStream.parse_variant_playlist(self.session, hls_url)
-
- def _get_streams_clip(self):
- self.id = self.match["clip"]
- self.author = self.match["channel"]
-
- data = self.session.http.get(
- self._URL_API_CLIP.format(clip=self.id),
- acceptable_status=(200, 404),
- headers=self._get_api_headers(),
- schema=validate.Schema(
- validate.parse_json(),
- validate.any(
- validate.all(
- {"message": str},
- validate.transform(lambda _: None),
- ),
- validate.all(
- {"clip": None},
- validate.transform(lambda _: None),
- ),
- validate.all(
- {
- "clip": {
- "clip_url": validate.url(path=validate.endswith(".m3u8")),
- "category": {"name": str},
- "title": str,
- },
- },
- validate.get("clip"),
- validate.union_get(
- "clip_url",
- ("category", "name"),
- "title",
- ),
- ),
- ),
- ),
- )
- if not data:
- return
-
- hls_url, self.category, self.title = data
-
- return {"clip": HLSStream(self.session, hls_url)}
-
- def _get_streams(self):
- if self.matches["live"]:
- return self._get_streams_live()
- if self.matches["vod"]:
- return self._get_streams_vod()
- if self.matches["clip"]:
- return self._get_streams_clip()
-
-
-__plugin__ = Kick
| diff --git a/tests/plugins/test_kick.py b/tests/plugins/test_kick.py
deleted file mode 100644
--- a/tests/plugins/test_kick.py
+++ /dev/null
@@ -1,12 +0,0 @@
-from streamlink.plugins.kick import Kick
-from tests.plugins import PluginCanHandleUrl
-
-
-class TestPluginCanHandleUrlKick(PluginCanHandleUrl):
- __plugin__ = Kick
-
- should_match_groups = [
- (("live", "https://kick.com/LIVE_CHANNEL"), {"channel": "LIVE_CHANNEL"}),
- (("vod", "https://kick.com/video/VIDEO_ID"), {"vod": "VIDEO_ID"}),
- (("clip", "https://kick.com/CLIP_CHANNEL?clip=CLIP_ID"), {"channel": "CLIP_CHANNEL", "clip": "CLIP_ID"}),
- ]
| plugins.kick: 403 Client Error: Forbidden for url
### Checklist
- [X] This is a [plugin issue](https://streamlink.github.io/plugins.html) and not [a different kind of issue](https://github.com/streamlink/streamlink/issues/new/choose)
- [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink)
- [X] [I have checked the list of open and recently closed plugin issues](https://github.com/streamlink/streamlink/issues?q=is%3Aissue+label%3A%22plugin+issue%22)
- [X] [I have checked the commit log of the master branch](https://github.com/streamlink/streamlink/commits/master)
### Streamlink version
streamlink 6.7.4+12.gbe04a5e
### Description
Great thanks to @bastimeyer , Streamlink has finally added the support for kick.com and I couldn't wait to have a test using the nightly build generated earlier today.
But unfortunately, it seems to have some bug while fetching the livestream and VOD. Both of them prompt an error like `error: Unable to open URL: ... (403 Client Error: Forbidden for url: ... )`
All livestreams and VODs have the same error, and I also tried to fetch with proxy in Japan/HK and it still prompts the same error, so it might not be a geo-blocking issue.
### Debug log
```text
[For livestreams]
streamlink --player "C:\Program Files (x86)\Pure Codec\x64\PotPlayerMini64.exe" --player-no-close --loglevel debug "https://kick.com/ryda" best
[cli][debug] OS: Windows 10
[cli][debug] Python: 3.12.3
[cli][debug] OpenSSL: OpenSSL 3.0.13 30 Jan 2024
[cli][debug] Streamlink: 6.7.4+12.gbe04a5e
[cli][debug] Dependencies:
[cli][debug] certifi: 2023.11.17
[cli][debug] isodate: 0.6.1
[cli][debug] lxml: 4.9.3
[cli][debug] pycountry: 22.3.5
[cli][debug] pycryptodome: 3.18.0
[cli][debug] PySocks: 1.7.1
[cli][debug] requests: 2.31.0
[cli][debug] trio: 0.22.2
[cli][debug] trio-websocket: 0.10.3
[cli][debug] typing-extensions: 4.10.0
[cli][debug] urllib3: 2.0.3
[cli][debug] websocket-client: 1.6.1
[cli][debug] Arguments:
[cli][debug] url=https://kick.com/ryda
[cli][debug] stream=['best']
[cli][debug] --loglevel=debug
[cli][debug] --player=C:\Program Files (x86)\Pure Codec\x64\PotPlayerMini64.exe
[cli][debug] --player-no-close=True
[cli][info] Found matching plugin kick for URL https://kick.com/ryda
error: Unable to open URL: https://kick.com/api/v2/channels/ryda/livestream (403 Client Error: Forbidden for url: https://kick.com/api/v2/channels/ryda/livestream)
[For VODs]
streamlink --player "C:\Program Files (x86)\Pure Codec\x64\PotPlayerMini64.exe" --player-no-close --loglevel debug "https://kick.com/video/489e98c0-8c56-4e4f-8ec1-364ff26095bd" best
[cli][debug] OS: Windows 10
[cli][debug] Python: 3.12.3
[cli][debug] OpenSSL: OpenSSL 3.0.13 30 Jan 2024
[cli][debug] Streamlink: 6.7.4+12.gbe04a5e
[cli][debug] Dependencies:
[cli][debug] certifi: 2023.11.17
[cli][debug] isodate: 0.6.1
[cli][debug] lxml: 4.9.3
[cli][debug] pycountry: 22.3.5
[cli][debug] pycryptodome: 3.18.0
[cli][debug] PySocks: 1.7.1
[cli][debug] requests: 2.31.0
[cli][debug] trio: 0.22.2
[cli][debug] trio-websocket: 0.10.3
[cli][debug] typing-extensions: 4.10.0
[cli][debug] urllib3: 2.0.3
[cli][debug] websocket-client: 1.6.1
[cli][debug] Arguments:
[cli][debug] url=https://kick.com/video/489e98c0-8c56-4e4f-8ec1-364ff26095bd
[cli][debug] stream=['best']
[cli][debug] --loglevel=debug
[cli][debug] --player=C:\Program Files (x86)\Pure Codec\x64\PotPlayerMini64.exe
[cli][debug] --player-no-close=True
[cli][info] Found matching plugin kick for URL https://kick.com/video/489e98c0-8c56-4e4f-8ec1-364ff26095bd
error: Unable to open URL: https://kick.com/api/v1/video/489e98c0-8c56-4e4f-8ec1-364ff26095bd (403 Client Error: Forbidden for url: https://kick.com/api/v1/video/489e98c0-8c56-4e4f-8ec1-364ff26095bd)
```
| > I couldn't wait to have a test using the nightly build generated earlier today.
I'd much more prefer receiving feedback **on pull requests** instead of people waiting for changes to be merged into master. Now we have a broken plugin merged, which is bad. We've also [explicitly asked for feedback](https://github.com/streamlink/streamlink/pull/6012#pullrequestreview-2091754384), but nobody bothered.
https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#pull-request-feedback
----
> `403 Client Error: Forbidden for url: https://kick.com/api/...`
While implementing the plugin, their API returned 403 responses without the `Accept-Language: en-US` header being set, which is why this is being hardcoded here:
https://github.com/streamlink/streamlink/blob/be04a5eef812877f6120136f8d7d63100ae314f0/src/streamlink/plugins/kick.py#L43-L48
It's possible that something else is missing, or that this header value is invalid for specific regions.
You can override HTTP headers using [`--http-header=KEY=VALUE`](https://streamlink.github.io/cli.html#cmdoption-http-header). Please try changing the `Accept-Language` header and see if that works. `--http-header=Accept-Language=ja-JP`
> I'd much more prefer receiving feedback **on pull requests** instead of people waiting for changes to be merged into master. Now we have a broken plugin merged, which is bad. We've also [explicitly asked for feedback](https://github.com/streamlink/streamlink/pull/6012#pullrequestreview-2091754384), but nobody bothered.
I feel sorry but I didn't be used to checking issues and PRs in GitHub every day. I'll try to do so...
> You can override HTTP headers using [`--http-header=KEY=VALUE`](https://streamlink.github.io/cli.html#cmdoption-http-header). Please try changing the `Accept-Language` header and see if that works. `--http-header=Accept-Language=ja-JP`
I tried this, and, the newly pull request #6020, it still gives the same error information. I also tried to add cookies and User-Agents (because I can open the API URLs, like `https://kick.com/api/v1/video/843ceeaf-9b84-4038-a123-c97b5ef15216`, in my browser) but fails as well. | 2024-06-04T20:21:44 |