mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-04-16 17:32:20 +00:00
- Add project structure with csproj configuration - Implement BambooInvoke class for search, series episodes, and movie streams - Add Controller for handling HTTP requests and responses - Include ModInit for module initialization and configuration - Create data models for search results, episodes, and streams - Add OnlineApi for event handling and integration - Configure manifest.json for module metadata This adds complete support for the BambooUA streaming service including: - Content search functionality - Series episode parsing with subtitles and dubbing options - Movie stream extraction - Proxy management and caching - API endpoints for integration with the main application
26 lines
857 B
C#
26 lines
857 B
C#
using Shared.Models.Base;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Bamboo
|
|
{
|
|
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.Bamboo;
|
|
if (init.enable && !init.rip)
|
|
{
|
|
string url = init.overridehost;
|
|
if (string.IsNullOrEmpty(url))
|
|
url = $"{host}/bamboo";
|
|
|
|
online.Add((init.displayname, url, "bamboo", init.displayindex));
|
|
}
|
|
|
|
return online;
|
|
}
|
|
}
|
|
}
|