mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-05-05 17:14:37 +02:00
fix PeerTube HLS downloads
Changelog: changed
This commit is contained in:
parent
0190bbffdd
commit
8c879c68d9
@ -99,7 +99,8 @@ class HLS {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val initSegment =
|
val initSegment =
|
||||||
lines.find { it.startsWith("#EXT-X-MAP:URI=") }?.substringAfter("=")?.trim('"')
|
lines.find { it.startsWith("#EXT-X-MAP:") }?.substringAfter(":")?.split(",")?.get(0)
|
||||||
|
?.substringAfter("=")?.trim('"')
|
||||||
val segments = mutableListOf<Segment>()
|
val segments = mutableListOf<Segment>()
|
||||||
if (initSegment != null) {
|
if (initSegment != null) {
|
||||||
segments.add(MediaSegment(0.0, resolveUrl(sourceUrl, initSegment)))
|
segments.add(MediaSegment(0.0, resolveUrl(sourceUrl, initSegment)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user