Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
i3arnon committed Oct 20, 2022
1 parent 5c00712 commit 2244872
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 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.40.2.1593]" />
<PackageReference Include="Humanizer.Core" Version="[2.6.2]" />
<PackageReference Include="morelinq" Version="[2.9.0]" />
<PackageReference Include="Newtonsoft.Json" Version="[12.0.2]" />
<PackageReference Include="System.ValueTuple" Version="[4.5.0]" />
<PackageReference Include="YoutubeExplode" Version="6.0.7" />
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.57.0.2756" />
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
<PackageReference Include="morelinq" Version="3.3.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="YoutubeExplode" Version="6.2.2" />
</ItemGroup>
<ItemGroup>
<Compile Include="**\*.cs" Exclude="obj\**" />
Expand Down
4 changes: 2 additions & 2 deletions src/Service/YoutubeFeed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async Task<string> GetVideoUriAsync()
var muxedStreamInfos = streamManifest.GetMuxedStreams().ToList();
var muxedStreamInfo =
muxedStreamInfos.FirstOrDefault(_ => _.VideoResolution.Height == resolution) ??
muxedStreamInfos.MaxBy(_ => _.VideoQuality);
muxedStreamInfos.MaxBy(_ => _.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).Url
? audios.MaxBy(audio => audio.Bitrate).FirstOrDefault().Url
: null;
}
}
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.21."/>
Click="YoucastLink_OnClick" Content="YouCast v2.22."/>
<Label VerticalAlignment="Center" Content="Made by"/>
<Button
x:Name="TwitterLink"
Expand Down

0 comments on commit 2244872

Please sign in to comment.