mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-06-17 12:08:54 +00:00
Introduce a full LME.StreamData module with initialization, manifest, and online registration to expose StreamData as a new content source. Implement TMDB-based movie, series, and episode retrieval flows with controller endpoints, API invoke client, proxy-aware requests, caching, and subtitle/stream mapping for playback templates.
29 lines
885 B
C#
29 lines
885 B
C#
using Microsoft.AspNetCore.Http;
|
|
using Shared.Models;
|
|
using Shared.Models.Module;
|
|
using Shared.Models.Module.Interfaces;
|
|
using System.Collections.Generic;
|
|
|
|
namespace LME.StreamData
|
|
{
|
|
public class OnlineApi : IModuleOnline
|
|
{
|
|
public List<ModuleOnlineItem> Invoke(HttpContext httpContext, RequestModel requestInfo, string host, OnlineEventsModel args)
|
|
{
|
|
var online = new List<ModuleOnlineItem>();
|
|
|
|
var init = ModInit.StreamDataSettings;
|
|
if (init.enable && !init.rip)
|
|
{
|
|
if (UpdateService.IsDisconnected())
|
|
init.overridehost = null;
|
|
|
|
// StreamData працює з TMDB ID — показуємо для всього контенту
|
|
online.Add(new ModuleOnlineItem(init, "lme_streamdata"));
|
|
}
|
|
|
|
return online;
|
|
}
|
|
}
|
|
}
|