init.conf is updated at runtime (via EventListener.UpdateInitFile), and supports magic_apn for Ashdi-origin stream links.
Module version: 2.1 (
ModInit.Version in LME.KlonFUN/ModInit.cs). Default backend: https://klon.fun.HTTP route
| Parameter | Type | Description |
|---|---|---|
imdb_id | string | IMDb identifier used in search |
title | string | Display title |
original_title | string | Original title |
year | int | Release year |
serial | int | 1 = TV serial, 0 = movie |
s | int | Season number (-1 = show season list) |
t | string | Selected voice/dubbing track key |
href | string | Direct item URL (skips search) |
checksearch | bool | Lightweight content availability check |
rjson | bool | Return JSON instead of HTML templates |
How content is resolved
- Search —
invoke.Search(imdb_id, title, original_title)queries klon.fun. If multiple results are returned aSimilarTpldisambiguation list is shown. - Item fetch —
invoke.GetItem(href)retrieves the page and extracts the iframe player URL.item.IsSerialPlayeris used alongside theserialparameter to determine the content type. - Serial structure —
invoke.GetSerialStructure(playerUrl)parses all voice tracks, seasons, and episode lists from the player. Voices are keyed by a string identifier (voice.Key) and have a separate human-readableDisplayName. - Movie streams —
invoke.GetMovieStreams(playerUrl)returns a list of(Title, Link)stream variants.
Configuration (init.conf)
Key parameters
Enables or disables the module.
Base URL of the klon.fun site. Update if the domain changes.
Label shown in the Lampac source list.
Sort order among sources.
Route video streams through Lampac’s built-in stream proxy. Automatically disabled when APN is active.
Route outbound parsing requests through the
proxy list.APN URL template applied only to Ashdi-origin stream links when the inner player is active. The
{encodeurl} placeholder is replaced with the percent-encoded stream URL.Multi-voice serial navigation
For serials, season and voice selection works as follows:s=-1— returns aSeasonTplwith all seasons. Iftis already set to a valid voice key, the season list is filtered to only the seasons that voice covers.s=<n>— filters voices to those that have episodes in seasonn. The first matching voice is auto-selected iftis not provided or does not match. Returns aVoiceTplmerged with anEpisodeTpl; episodes are sorted by episode number.- Switching
t(voice key) while keepingsconstant re-renders the episode list for the newly selected voice.
Runtime config reload
Unlike most other LME modules, KlonFUN re-runsUpdateConfig() whenever Lampac fires the EventListener.UpdateInitFile event. This means changes to init.conf are picked up without restarting Lampac.
APN and stream proxy precedence
- APN active →
streamproxyis forced off. streamproxy: trueand no APN →apnstreamandapnare cleared.magic_apn.ashdiactivates per-request, only for Ashdi URLs, only when the inner player is in use.