Skip to content

Commit

Permalink
Update http client
Browse files Browse the repository at this point in the history
  • Loading branch information
Mik1ll committed Nov 12, 2024
1 parent 8acecc0 commit 05061b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions Providers/SeriesProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,19 @@ private async Task AddPeople(MetadataResult<Series> result, int animeId, Cancell
SortOrder = credit.AniDbCharacterId is not null
? credit.Role switch
{
var r when r.Contains("Main", StringComparison.OrdinalIgnoreCase) => 0,
var r when r.Contains("Secondary", StringComparison.OrdinalIgnoreCase) => 1,
var r when r.Contains("appears", StringComparison.OrdinalIgnoreCase) => 2,
{ } r when r.Contains("Main", StringComparison.OrdinalIgnoreCase) => 0,
{ } r when r.Contains("Secondary", StringComparison.OrdinalIgnoreCase) => 1,
{ } r when r.Contains("appears", StringComparison.OrdinalIgnoreCase) => 2,
_ => 3
}
: credit.Role switch
{
var r when r.Contains("Original Work", StringComparison.OrdinalIgnoreCase) => 4,
var r when r.Contains("Direction", StringComparison.OrdinalIgnoreCase) => 5,
var r when r.Contains("Storyboard", StringComparison.OrdinalIgnoreCase) => 6,
var r when r.Contains("Series Composition", StringComparison.OrdinalIgnoreCase) => 6,
var r when r.Contains("Episode Direction", StringComparison.OrdinalIgnoreCase) => 7,
var r when r.Contains("Character Design", StringComparison.OrdinalIgnoreCase) => 8,
{ } r when r.Contains("Original Work", StringComparison.OrdinalIgnoreCase) => 4,
{ } r when r.Contains("Direction", StringComparison.OrdinalIgnoreCase) => 5,
{ } r when r.Contains("Storyboard", StringComparison.OrdinalIgnoreCase) => 6,
{ } r when r.Contains("Series Composition", StringComparison.OrdinalIgnoreCase) => 6,
{ } r when r.Contains("Episode Direction", StringComparison.OrdinalIgnoreCase) => 7,
{ } r when r.Contains("Character Design", StringComparison.OrdinalIgnoreCase) => 8,
_ => int.MaxValue
},
ProviderIds = new Dictionary<string, string>() { { ProviderIds.ShizouCreator, credit.AniDbCreator.Id.ToString() } }
Expand Down
10 changes: 5 additions & 5 deletions Shizou.JellyfinPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Jellyfin.Controller" Version="10.9.9" ExcludeAssets="runtime"/>
<PackageReference Include="Shizou.HttpClient" Version="1.0.0"/>
<PackageReference Include="Jellyfin.Controller" Version="10.9.9" ExcludeAssets="runtime" />
<PackageReference Include="Shizou.HttpClient" Version="1.1.2" />
</ItemGroup>

<ItemGroup>
<None Remove="Configuration\configPage.html"/>
<EmbeddedResource Include="Configuration\configPage.html"/>
<None Remove="Configuration\configPage.html" />
<EmbeddedResource Include="Configuration\configPage.html" />
</ItemGroup>

<Target Name="GetGitAssemblyVersion" BeforeTargets="GetAssemblyVersion">
<Exec Command="git describe --match=JellyfinPlugin/v[0-9]%2A.[0-9]%2A.[0-9]%2A --tags --abbrev=7 --always --long --dirty" ConsoleToMsBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="GitInfo"/>
<Output TaskParameter="ConsoleOutput" PropertyName="GitInfo" />
</Exec>

<PropertyGroup>
Expand Down

0 comments on commit 05061b1

Please sign in to comment.