How to?: when redirected URL becomes unavailable, retry from initial URL #5937
Replies: 1 comment 2 replies
-
This is not supported. Playlist expiration is not part of the HLS specification and requires custom logic, which means you'll have to write a plugin for that. This has been answered a couple of times already here, but I can't find anything right now to link it to you. There are a couple of plugins which implement HLS playlist expiration workarounds or something similar, so you can have a look there, too. You'd have to subclass If this is a multivariant playlist though and not a media playlist, then this might be a bit more challenging. Either way, you'll have to figure this out on your own. Good luck. |
Beta Was this translation helpful? Give feedback.
-
Description
I'm trying to record from m3u8 URL. When loading the URL, it redirects to something like
.m3u8?token=randomsequence
. But this URL with token has very short life (10 seconds or so), then Streamlink exits by "Failed to reload playlist" after only a few seconds were recorded.I'd like to ask how to force Streamlink to retry from initial URL (the one without
?token=
), so that it would always get a new and valid token.In other words, I want Streamlink not to reuse redirected URL when reloading playlist URL for the updated version, the initial URL should be used instead.
Current command I'm using:
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions