lampac-ukraine/UAKino/OnlineApi.cs
baliasnyifeliks aa267b8e73 feat(uakino): add new online module for UAKino streaming service
Adds complete UAKino integration with:
- Controller for handling movie/series requests and playback
- ModInit for module configuration and initialization
- Models for search results, playlists, and player data
- OnlineApi for event registration
- UAKinoInvoke for core functionality (search, playlist parsing, player handling)
- Project configuration and manifest

The module supports:
- Search functionality with caching
- Series episode listing with voice selection
- Movie and series playback
- Proxy management and error handling
- HTML and JSON response formats
2026-01-13 09:22:03 +02:00

26 lines
857 B
C#

using Shared.Models.Base;
using System.Collections.Generic;
namespace UAKino
{
public class OnlineApi
{
public static List<(string name, string url, string plugin, int index)> Events(string host, long id, string imdb_id, long kinopoisk_id, string title, string original_title, string original_language, int year, string source, int serial, string account_email)
{
var online = new List<(string name, string url, string plugin, int index)>();
var init = ModInit.UAKino;
if (init.enable && !init.rip)
{
string url = init.overridehost;
if (string.IsNullOrEmpty(url))
url = $"{host}/uakino";
online.Add((init.displayname, url, "uakino", init.displayindex));
}
return online;
}
}
}