forked from j62/ctbrec
1
0
Fork 0

Fix bug in construction of segment URIs if playlist request is

redirected
This commit is contained in:
0xb00bface 2021-08-12 18:36:06 +02:00
parent a77e7c52fc
commit d4376d3345
1 changed files with 1 additions and 1 deletions

View File

@ -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: "