Skip to content

Commit

Permalink
Show displayname for offline youtube channels
Browse files Browse the repository at this point in the history
Partially fixes #65
  • Loading branch information
laurencee committed Nov 18, 2023
1 parent 45a6a27 commit ca78850
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("2.13.7.0")]
[assembly: AssemblyFileVersion("2.13.7.0")]
[assembly: AssemblyVersion("2.13.8.0")]
[assembly: AssemblyFileVersion("2.13.8.0")]
4 changes: 2 additions & 2 deletions Livestream.Monitor/Model/ApiClients/YoutubeApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ private async Task<List<LivestreamQueryResult>> QueryChannels(
// video ids are only returned for online streams, we need to show something to the user
// so create a placeholder livestream model object for the offline channel.
// TODO - query the channel to get their display name information rather than using the actual channel name
// TODO - query the channel to get their display name information rather than using the recorded displayname/channelid
if (!livestreamModels.Any())
{
queryResults.Add(new LivestreamQueryResult(channelIdentifier)
{
LivestreamModel = new LivestreamModel("offline-" + channelIdentifier.ChannelId, channelIdentifier)
{
DisplayName = channelIdentifier.ChannelId,
DisplayName = channelIdentifier.DisplayName ?? channelIdentifier.ChannelId,
Description = "[Offline youtube stream]",
}
});
Expand Down

0 comments on commit ca78850

Please sign in to comment.