From aac6789d358277bce61a4c1f062dd5fca5d754f6 Mon Sep 17 00:00:00 2001 From: Mikal Stordal Date: Tue, 29 Oct 2024 00:06:59 +0100 Subject: [PATCH] fix: use the uri instead of the uri builder in the final playlist entry Since the uri will only set the port if it's needed while the builder will always include the port no matter what. --- Shoko.Server/Services/GeneratedPlaylistService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shoko.Server/Services/GeneratedPlaylistService.cs b/Shoko.Server/Services/GeneratedPlaylistService.cs index d36c3d183..78e284bab 100644 --- a/Shoko.Server/Services/GeneratedPlaylistService.cs +++ b/Shoko.Server/Services/GeneratedPlaylistService.cs @@ -429,6 +429,6 @@ private static string GetEpisodeEntry(UriBuilder uri, IShokoSeries series, IShok uri.Path = $"{(uri.Path.Length > 1 ? uri.Path + "/" : "/")}api/v3/File/{video.ID}/Stream"; uri.Query = queryString.ToString(); - return $"#EXTINF:-1,{series.PreferredTitle} - {episodeNumber}{episodePartNumber} - {episode.PreferredTitle}{parts}\n{uri}\n"; + return $"#EXTINF:-1,{series.PreferredTitle} - {episodeNumber}{episodePartNumber} - {episode.PreferredTitle}{parts}\n{uri.Uri}\n"; } }