[PR #4741] [MERGED] Add tests for HdHomerunHost.GetLineup #10080

Closed
opened 2025-12-22 07:50:25 +01:00 by backuprepo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/4741
Author: @Bond-009
Created: 12/9/2020
Status: Merged
Merged: 12/9/2020
Merged by: @cvium

Base: masterHead: tests8


📝 Commits (2)

  • 514d95e Add tests for HdHomerunHost.GetLineup
  • c0fde34 Add tests for HdHomerunHost.TryGetTunerHostInfo

📊 Changes

6 files changed (+98 additions, -34 deletions)

View changed files

Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/Channels.cs (+21 -0)
📝 Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/DiscoverResponse.cs (+1 -3)
📝 Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs (+11 -25)
📝 tests/Jellyfin.Server.Implementations.Tests/Jellyfin.Server.Implementations.Tests.csproj (+1 -0)
📝 tests/Jellyfin.Server.Implementations.Tests/LiveTv/HdHomerunHostTests.cs (+63 -6)
tests/Jellyfin.Server.Implementations.Tests/LiveTv/lineup.json (+1 -0)

📄 Description

also fixes an exception:

System.Text.Json.JsonException : The JSON value could not be converted to System.Boolean. Path: $[0].Favorite | LineNumber: 0 | BytePositionInLine: 72.
---- System.InvalidOperationException : Cannot get the value of a token type 'Number' as a boolean.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/4741 **Author:** [@Bond-009](https://github.com/Bond-009) **Created:** 12/9/2020 **Status:** ✅ Merged **Merged:** 12/9/2020 **Merged by:** [@cvium](https://github.com/cvium) **Base:** `master` ← **Head:** `tests8` --- ### 📝 Commits (2) - [`514d95e`](https://github.com/jellyfin/jellyfin/commit/514d95e5aa5197808f239ba26266f52b419a0b61) Add tests for HdHomerunHost.GetLineup - [`c0fde34`](https://github.com/jellyfin/jellyfin/commit/c0fde3496c43b5648c369ca32306148d5aa50b91) Add tests for HdHomerunHost.TryGetTunerHostInfo ### 📊 Changes **6 files changed** (+98 additions, -34 deletions) <details> <summary>View changed files</summary> ➕ `Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/Channels.cs` (+21 -0) 📝 `Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/DiscoverResponse.cs` (+1 -3) 📝 `Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs` (+11 -25) 📝 `tests/Jellyfin.Server.Implementations.Tests/Jellyfin.Server.Implementations.Tests.csproj` (+1 -0) 📝 `tests/Jellyfin.Server.Implementations.Tests/LiveTv/HdHomerunHostTests.cs` (+63 -6) ➕ `tests/Jellyfin.Server.Implementations.Tests/LiveTv/lineup.json` (+1 -0) </details> ### 📄 Description also fixes an exception: ``` System.Text.Json.JsonException : The JSON value could not be converted to System.Boolean. Path: $[0].Favorite | LineNumber: 0 | BytePositionInLine: 72. ---- System.InvalidOperationException : Cannot get the value of a token type 'Number' as a boolean. ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
backuprepo 2025-12-22 07:50:25 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#10080
No description provided.