Skip to content

Commit

Permalink
Update MPDParser.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda committed Jan 18, 2021
1 parent 4a4bfae commit 65ae72d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion N_m3u8DL-CLI/MPDParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ static string GenerateM3u8(Dictionary<string, dynamic> f)
string rangeStr = match.Value;
long start = Convert.ToInt64(match.Groups[1].Value);
long end = Convert.ToInt64(match.Groups[2].Value);
sb.AppendLine($"#EXT-X-MAP:URI=\"{initUrl.Replace(rangeStr, "")}\",BYTERANGE=\"{end}@{start}\"");
sb.AppendLine($"#EXT-X-MAP:URI=\"{initUrl.Replace(rangeStr, "")}\",BYTERANGE=\"{end + 1 - start}@{start}\"");
}
else
{
Expand Down

0 comments on commit 65ae72d

Please sign in to comment.