Skip to content

Commit 7cea9b7

Browse files
fix: Increase API channel grid limit to load all channels (#5)
Co-authored-by: JohnPierreH <89898987+JohnPierreH@users.noreply.github.com>
1 parent 04c65e3 commit 7cea9b7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Jellyfin.Plugin.TvHeadendApi/Service/LiveTvService.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,10 @@ public async Task<IEnumerable<ChannelInfo>> GetChannelsAsync(CancellationToken c
325325
{
326326
try
327327
{
328+
// Define the query limit and construct the API URL
329+
const int limit = 10000;
328330
// Build the URL for the API endpoint
329-
var url = ConstructUrl("api/channel/grid");
331+
var url = ConstructUrl("api/channel/grid?limit={limit}");
330332

331333
// Log the URL being used for the API call (sensitive data is masked)
332334
_logger.LogInformation("Fetching channels from TVHeadEnd at {Url}...", MaskSensitiveData(url));

0 commit comments

Comments
 (0)