From b253a21cdf8f31e8d1e4c7f44125045de4a9c5ae Mon Sep 17 00:00:00 2001 From: Felix Date: Tue, 5 May 2026 21:31:48 +0300 Subject: [PATCH] refactor(shared): migrate player payload decoding to common namespace Move PlayerJsDecoder and PlayerPayload from LME.Shared to LME.Common.Playerjs namespace. Replace ProjectReference with direct Compile includes for source files in AnimeON, Mikai, and NMoonAnime projects. Update all using directives to reference the new namespace across Invoke files. Note: Controller.cs contains a typo (Firts instead of First) that requires correction in a subsequent commit. --- LME.AnimeON/AnimeON.csproj | 3 ++- LME.AnimeON/AnimeONInvoke.cs | 3 +-- LME.Mikai/Mikai.csproj | 3 ++- LME.Mikai/MikaiInvoke.cs | 3 +-- LME.NMoonAnime/Controller.cs | 2 +- LME.NMoonAnime/NMoonAnime.csproj | 3 ++- LME.NMoonAnime/NMoonAnimeInvoke.cs | 3 +-- LME.Shared/Models/PlayerPayload.cs | 2 +- LME.Shared/PlayerJsDecoder.cs | 4 ++-- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/LME.AnimeON/AnimeON.csproj b/LME.AnimeON/AnimeON.csproj index 245e522..b970823 100644 --- a/LME.AnimeON/AnimeON.csproj +++ b/LME.AnimeON/AnimeON.csproj @@ -10,7 +10,8 @@ ..\..\Shared.dll - + + \ No newline at end of file diff --git a/LME.AnimeON/AnimeONInvoke.cs b/LME.AnimeON/AnimeONInvoke.cs index a9e637c..6fb467c 100644 --- a/LME.AnimeON/AnimeONInvoke.cs +++ b/LME.AnimeON/AnimeONInvoke.cs @@ -12,8 +12,7 @@ using System.Text; using System.Net; using System.Text.RegularExpressions; using LME.AnimeON.Models; -using LME.Shared; -using LME.Shared.Models; +using LME.Common.Playerjs; using Shared.Engine; namespace LME.AnimeON diff --git a/LME.Mikai/Mikai.csproj b/LME.Mikai/Mikai.csproj index 049c9e2..221be3d 100644 --- a/LME.Mikai/Mikai.csproj +++ b/LME.Mikai/Mikai.csproj @@ -10,7 +10,8 @@ ..\..\Shared.dll - + + diff --git a/LME.Mikai/MikaiInvoke.cs b/LME.Mikai/MikaiInvoke.cs index 6f5fd3d..8826fb2 100644 --- a/LME.Mikai/MikaiInvoke.cs +++ b/LME.Mikai/MikaiInvoke.cs @@ -8,8 +8,7 @@ using System.Web; using System.Net; using System.Text.RegularExpressions; using LME.Mikai.Models; -using LME.Shared; -using LME.Shared.Models; +using LME.Common.Playerjs; using Shared; using Shared.Engine; using Shared.Models; diff --git a/LME.NMoonAnime/Controller.cs b/LME.NMoonAnime/Controller.cs index c2841f5..8631584 100644 --- a/LME.NMoonAnime/Controller.cs +++ b/LME.NMoonAnime/Controller.cs @@ -109,7 +109,7 @@ namespace LME.NMoonAnime.Controllers if (!streamQuality.Any()) return OnError("lme_nmoonanime", refresh_proxy: true); - var first = streamQuality.First(); + var first = streamQuality.Firts(); string json = VideoTpl.ToJson("play", first.link, title ?? string.Empty, streamquality: streamQuality); return UpdateService.Validate(Content(json, "application/json; charset=utf-8")); } diff --git a/LME.NMoonAnime/NMoonAnime.csproj b/LME.NMoonAnime/NMoonAnime.csproj index 049c9e2..221be3d 100644 --- a/LME.NMoonAnime/NMoonAnime.csproj +++ b/LME.NMoonAnime/NMoonAnime.csproj @@ -10,7 +10,8 @@ ..\..\Shared.dll - + + diff --git a/LME.NMoonAnime/NMoonAnimeInvoke.cs b/LME.NMoonAnime/NMoonAnimeInvoke.cs index ebb7325..6c5d347 100644 --- a/LME.NMoonAnime/NMoonAnimeInvoke.cs +++ b/LME.NMoonAnime/NMoonAnimeInvoke.cs @@ -1,6 +1,5 @@ using LME.NMoonAnime.Models; -using LME.Shared; -using LME.Shared.Models; +using LME.Common.Playerjs; using Shared; using Shared.Engine; using Shared.Models; diff --git a/LME.Shared/Models/PlayerPayload.cs b/LME.Shared/Models/PlayerPayload.cs index c771668..45a5a35 100644 --- a/LME.Shared/Models/PlayerPayload.cs +++ b/LME.Shared/Models/PlayerPayload.cs @@ -1,4 +1,4 @@ -namespace LME.Shared.Models +namespace LME.Common.Playerjs.Models { public sealed class PlayerPayload { diff --git a/LME.Shared/PlayerJsDecoder.cs b/LME.Shared/PlayerJsDecoder.cs index dcaec37..ed91359 100644 --- a/LME.Shared/PlayerJsDecoder.cs +++ b/LME.Shared/PlayerJsDecoder.cs @@ -6,9 +6,9 @@ using System.Text; using System.Text.Json; using System.Text.Json.Nodes; using System.Text.RegularExpressions; -using LME.Shared.Models; +using LME.Common.Playerjs.Models; -namespace LME.Shared +namespace LME.Common.Playerjs { public static class PlayerJsDecoder {