Skip to content

Commit

Permalink
fix: use the uri instead of the uri builder in the final playlist entry
Browse files Browse the repository at this point in the history
Since the uri will only set the port if it's needed while the builder will always include the port no matter what.
  • Loading branch information
revam committed Oct 28, 2024
1 parent 0d633f6 commit aac6789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shoko.Server/Services/GeneratedPlaylistService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}

0 comments on commit aac6789

Please sign in to comment.