Skip to content

Search Engines

LivingWithHippos edited this page Aug 10, 2023 · 3 revisions

Since release 4.2.1-beta a search engine is officially available for Unchained. By default no plugin is installed to avoid issues, on the search page the manage plugins page can be accessed to install plugins. Plugins have been moved to another repo, the ones in this repo will be removed sooner or later.

Creating new plugins should be easy if you know regular expressions and a tiny bit of HTML. A more complete guide will be written here in the future.

0 - Template

There a json5 template in the extra_assets/plugins folder, it can be used to check all the options and read their description. The other plugins in the same folder can be used as inspiration.

1 - Informations

https://github.com/LivingWithHippos/unchained-android/blob/d724aa0202fafc29f731c3bab92d442a049c5509/extra_assets/plugins/template.json5#L14-L24

The only important parameters here are:

  • engine_version: the minimum plugin system version needed to run the plugin, generally use the latest available in the Parser.kt file

https://github.com/LivingWithHippos/unchained-android/blob/d724aa0202fafc29f731c3bab92d442a049c5509/app/app/src/main/java/com/github/livingwithhippos/unchained/plugins/Parser.kt#L492-L500

  • version: starts from 1.0, if you update a plugin make this number bigger so it can be replaced
Clone this wiki locally