mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-06-17 12:08:54 +00:00
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.
This commit is contained in:
parent
60867dabae
commit
b253a21cdf
@ -10,7 +10,8 @@
|
||||
<Reference Include="Shared">
|
||||
<HintPath>..\..\Shared.dll</HintPath>
|
||||
</Reference>
|
||||
<ProjectReference Include="..\LME.Shared\LME.Shared.csproj" />
|
||||
<Compile Include="..\LME.Shared\PlayerJsDecoder.cs" Link="Shared\PlayerJsDecoder.cs" />
|
||||
<Compile Include="..\LME.Shared\Models\PlayerPayload.cs" Link="Shared\Models\PlayerPayload.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@ -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
|
||||
|
||||
@ -10,7 +10,8 @@
|
||||
<Reference Include="Shared">
|
||||
<HintPath>..\..\Shared.dll</HintPath>
|
||||
</Reference>
|
||||
<ProjectReference Include="..\LME.Shared\LME.Shared.csproj" />
|
||||
<Compile Include="..\LME.Shared\PlayerJsDecoder.cs" Link="Shared\PlayerJsDecoder.cs" />
|
||||
<Compile Include="..\LME.Shared\Models\PlayerPayload.cs" Link="Shared\Models\PlayerPayload.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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"));
|
||||
}
|
||||
|
||||
@ -10,7 +10,8 @@
|
||||
<Reference Include="Shared">
|
||||
<HintPath>..\..\Shared.dll</HintPath>
|
||||
</Reference>
|
||||
<ProjectReference Include="..\LME.Shared\LME.Shared.csproj" />
|
||||
<Compile Include="..\LME.Shared\PlayerJsDecoder.cs" Link="Shared\PlayerJsDecoder.cs" />
|
||||
<Compile Include="..\LME.Shared\Models\PlayerPayload.cs" Link="Shared\Models\PlayerPayload.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace LME.Shared.Models
|
||||
namespace LME.Common.Playerjs.Models
|
||||
{
|
||||
public sealed class PlayerPayload
|
||||
{
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user