Skip to content

Commit

Permalink
fix: Fix video stream service retrieval bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SenexCrenshaw committed Feb 1, 2024
1 parent 982d3d7 commit 5cc615e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public async Task<string> Handle(GetStreamGroupLineup request, CancellationToken
string encodedName = HttpUtility.HtmlEncode(videoStream.User_Tvg_name).Trim().Replace(" ", "_");
string videoUrl = $"{url}/api/videostreams/stream/{encodedNumbers}/{encodedName}";

MxfService? service = schedulesDirectDataService.AllServices.FirstOrDefault(a => a.StationId == stationId);
MxfService? service = schedulesDirectDataService.AllServices.FirstOrDefault(a => a.StationId == videoStream.User_Tvg_ID);
string graceNote = service?.CallSign ?? stationId;
string id = graceNote;
if (setting.M3UUseChnoForId)
Expand All @@ -114,11 +114,14 @@ public async Task<string> Handle(GetStreamGroupLineup request, CancellationToken
{
GuideName = videoStream.User_Tvg_name,
GuideNumber = id,
Station = id,
Logo = service?.mxfGuideImage.ImageUrl,
URL = videoUrl
};

ret.Add(lu);
}

string jsonString = JsonSerializer.Serialize(ret);
return jsonString;
}
Expand Down

0 comments on commit 5cc615e

Please sign in to comment.