diff --git a/vod/Services/HlsProxyService.cs b/vod/Services/HlsProxyService.cs index 0ee934f..cf85dba 100644 --- a/vod/Services/HlsProxyService.cs +++ b/vod/Services/HlsProxyService.cs @@ -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; }