forked from j62/ctbrec
Fix bug in construction of segment URIs if playlist request is
redirected
This commit is contained in:
parent
a77e7c52fc
commit
d4376d3345
|
@ -253,7 +253,7 @@ public abstract class AbstractHlsDownload extends AbstractDownload {
|
|||
byte[] bytes = body.getBytes(UTF_8);
|
||||
BandwidthMeter.add(bytes.length);
|
||||
InputStream inputStream = new ByteArrayInputStream(bytes);
|
||||
SegmentPlaylist playList = parsePlaylist(segmentPlaylistUrl, inputStream);
|
||||
SegmentPlaylist playList = parsePlaylist(response.request().url().toString(), inputStream);
|
||||
consecutivePlaylistErrors = 0;
|
||||
recordingEvents.add(RecordingEvent.of("Sequence: " + StringUtil.grep(body, "MEDIA-SEQUENCE")));
|
||||
recordingEvents.add(RecordingEvent.of("Playlist downloaded in " + (Duration.between(start, Instant.now()).toMillis()) + "ms: "
|
||||
|
|
Loading…
Reference in New Issue