Skip to content

Commit

Permalink
Replace vod.stream.brunstad.tv with proxy in top level manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
KillerX committed Oct 19, 2022
1 parent 2b3d151 commit 7d09fae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vod/Services/HlsProxyService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ private static string ConvertUrlsToProxyUrls(
Func<(string url, string token), string> getSecondLevelProxyUrl,
string manifest)
{
manifest = Regex.Replace(manifest, @"^https:\/\/vod2?\.brunstad\.tv\/.+$", m => getSecondLevelProxyUrl((m.Value, "TOKENPLACEHOLDER")), RegexOptions.Multiline);
manifest = Regex.Replace(manifest, @"URI=""(https:\/\/vod2?\.brunstad\.tv.+?)""", m => "URI=\"" + getSecondLevelProxyUrl((m.Groups[1]?.Value, "TOKENPLACEHOLDER")) + "\"");
manifest = Regex.Replace(manifest, @"^https:\/\/vod2?(?:\.stream)?\.brunstad\.tv\/.+$", m => getSecondLevelProxyUrl((m.Value, "TOKENPLACEHOLDER")), RegexOptions.Multiline);
manifest = Regex.Replace(manifest, @"URI=""(https:\/\/vod2?(?:\.stream)?\.brunstad\.tv.+?)""", m => "URI=\"" + getSecondLevelProxyUrl((m.Groups[1]?.Value, "TOKENPLACEHOLDER")) + "\"");
return manifest;
}

Expand Down

0 comments on commit 7d09fae

Please sign in to comment.