Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
i3arnon committed Mar 15, 2024
1 parent f853d09 commit 4abd6dc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/Service/Service.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.60.0.2945" />
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.67.0.3358" />
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
<PackageReference Include="morelinq" Version="3.4.2" />
<PackageReference Include="morelinq" Version="4.1.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="YoutubeExplode" Version="6.2.13" />
<PackageReference Include="YoutubeExplode" Version="6.3.13" />
</ItemGroup>
<ItemGroup>
<Compile Include="**\*.cs" Exclude="obj\**" />
Expand Down
10 changes: 5 additions & 5 deletions src/Service/YoutubeFeed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ await GetChannelAsync(userId) ??
ImageUrl = new Uri(channel.Snippet.Thumbnails.Medium.Url),
Items = await GenerateItemsAsync(
baseAddress,
channel.Snippet.PublishedAt.GetValueOrDefault(),
channel.Snippet.PublishedAtDateTimeOffset.GetValueOrDefault().UtcDateTime,
arguments)
};
}
Expand Down Expand Up @@ -128,7 +128,7 @@ async Task<ItunesFeed> GetFeedAsync(string baseAddress)
ImageUrl = new Uri(playlist.Snippet.Thumbnails.Medium.Url),
Items = await GenerateItemsAsync(
baseAddress,
playlist.Snippet.PublishedAt.GetValueOrDefault(),
playlist.Snippet.PublishedAtDateTimeOffset.GetValueOrDefault().UtcDateTime,
arguments)
};
}
Expand All @@ -153,7 +153,7 @@ async Task<string> GetVideoUriAsync()
var muxedStreamInfos = streamManifest.GetMuxedStreams().ToList();
var muxedStreamInfo =
muxedStreamInfos.FirstOrDefault(_ => _.VideoResolution.Height == resolution) ??
muxedStreamInfos.MaxBy(_ => _.VideoQuality).FirstOrDefault();
muxedStreamInfos.Maxima(_ => _.VideoQuality).FirstOrDefault();

return muxedStreamInfo?.Url;
}
Expand All @@ -168,7 +168,7 @@ async Task<string> GetAudioUriAsync()
var streamManifest = await _youtubeClient.Videos.Streams.GetManifestAsync(videoId);
var audios = streamManifest.GetAudioOnlyStreams().ToList();
return audios.Count > 0
? audios.MaxBy(audio => audio.Bitrate).FirstOrDefault().Url
? audios.Maxima(audio => audio.Bitrate).FirstOrDefault().Url
: null;
}
}
Expand Down Expand Up @@ -244,7 +244,7 @@ private static SyndicationItem GenerateItem(PlaylistItem playlistItem, string ba
new Uri(string.Format(_videoUrlFormat, playlistItem.Snippet.ResourceId.VideoId)))
{
Id = playlistItem.Snippet.ResourceId.VideoId,
PublishDate = playlistItem.Snippet.PublishedAt.GetValueOrDefault(),
PublishDate = playlistItem.Snippet.PublishedAtDateTimeOffset.GetValueOrDefault().UtcDateTime,
Summary = new TextSyndicationContent(playlistItem.Snippet.Description),
};

Expand Down
2 changes: 1 addition & 1 deletion src/YouCast/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
<Button
x:Name="YoucastLink"
Style="{StaticResource LinkButton}"
Click="YoucastLink_OnClick" Content="YouCast v2.23."/>
Click="YoucastLink_OnClick" Content="YouCast v2.24."/>
<Label VerticalAlignment="Center" Content="Made by"/>
<Button
x:Name="TwitterLink"
Expand Down
4 changes: 2 additions & 2 deletions src/YouCast/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.23.0.0")]
[assembly: AssemblyFileVersion("2.23.0.0")]
[assembly: AssemblyVersion("2.24.0.0")]
[assembly: AssemblyFileVersion("2.24.0.0")]

5 comments on commit 4abd6dc

@qtlin
Copy link

@qtlin qtlin commented on 4abd6dc Mar 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every version update requires manually re-entering YouTube API data. Why API source is versioned? Could it be a single location for all YouCast versions?

@dirkschut
Copy link
Contributor

@dirkschut dirkschut commented on 4abd6dc Mar 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could just copy the config file from the old version to the new one I think @qtlin

EDIT: nope, that doesn't help

@i3arnon
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@qtlin, @dirkschut
Does that happen for both of you?
The values are alwasy persistent for me..

I have no issue with not incrementing the assembly version..

@dirkschut
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I always need to re-enter the project name an key when I start a new version. @i3arnon

@dirkschut
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might have something to do with the fact that I install the new version in a different location each time (last folder in the path is the version name) and the config thingy expects it to be at the same location?

Please sign in to comment.