From 6e63e52dc555291b1671670ba082266546377f9a Mon Sep 17 00:00:00 2001 From: Cody Robibero Date: Wed, 10 Nov 2021 21:17:58 -0700 Subject: [PATCH] Fix build.yaml, fix new build errors --- .../OpenSubtitleDownloader.cs | 9 ++++--- build.yaml | 2 +- jellyfin.ruleset | 26 ++++++++++++++++--- 3 files changed, 29 insertions(+), 8 deletions(-) diff --git a/Jellyfin.Plugin.OpenSubtitles/OpenSubtitleDownloader.cs b/Jellyfin.Plugin.OpenSubtitles/OpenSubtitleDownloader.cs index f8f52a2..77e8274 100644 --- a/Jellyfin.Plugin.OpenSubtitles/OpenSubtitleDownloader.cs +++ b/Jellyfin.Plugin.OpenSubtitles/OpenSubtitleDownloader.cs @@ -101,10 +101,11 @@ namespace Jellyfin.Plugin.OpenSubtitles string hash; try { - await using (var fileStream = File.OpenRead(request.MediaPath)) - { - hash = OpenSubtitlesRequestHelper.ComputeHash(fileStream); - } + #pragma warning disable CA2007 + await using var fileStream = File.OpenRead(request.MediaPath); + #pragma warning restore CA2007 + + hash = OpenSubtitlesRequestHelper.ComputeHash(fileStream); } catch (IOException ex) { diff --git a/build.yaml b/build.yaml index a825d4a..4ce8002 100644 --- a/build.yaml +++ b/build.yaml @@ -3,7 +3,7 @@ guid: "4b9ed42f-5185-48b5-9803-6ff2989014c4" imageUrl: "https://repo.jellyfin.org/releases/plugin/images/jellyfin-plugin-opensubtitles.png" version: "14" targetAbi: "10.8.0.0" -framework: "net5.0" +framework: "net6.0" owner: "jellyfin" overview: "Download subtitles for your media" description: "Download subtitles from the internet to use with your media files." diff --git a/jellyfin.ruleset b/jellyfin.ruleset index bec22dd..8af791c 100644 --- a/jellyfin.ruleset +++ b/jellyfin.ruleset @@ -1,9 +1,6 @@ - - - @@ -12,6 +9,8 @@ + + @@ -39,9 +38,19 @@ + + + + + + + + + + @@ -51,12 +60,19 @@ + + + + + + + + + @@ -80,6 +98,8 @@ + +