Merge pull request #735 from Mallyd11/fix/m3u8-downloader-segment-url-slash

fix(m3u8): add missing / separator in segment and key URI construction
This commit is contained in:
Moustapha Kodjo Amadou 2026-05-18 08:54:05 +01:00 committed by GitHub
commit d396db1341
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -278,7 +278,7 @@ class M3u8Downloader {
index++;
final tsUrl = line.startsWith('http')
? line
: '$host${line.replaceFirst("/", "")}';
: '$host/${line.replaceFirst("/", "")}';
tsList.add(TsInfo('TS_$index', tsUrl));
}
return tsList;
@ -318,7 +318,7 @@ class M3u8Downloader {
String? uri = match.group(1);
if (uri != null && !uri.contains('http')) {
uri = '$host$uri';
uri = '$host/${uri.replaceFirst("/", "")}';
}
final ivStr = match.group(2);