-
-
Notifications
You must be signed in to change notification settings - Fork 825
Custom Formatter
Here is a complete reference to the custom formatter system
A custom format allows you to fully control the output of the streams. You can test your formats live at the configuration page using the Preview.
When writing your format, you have access to specific objects, known as variables, each with their own properties. The format to access a variable is as follows:
{variableName.propertyName}.
You may also apply specific "modifiers". The available modifiers depend on the type of properties. i.e. strings, numbers, lists, each have their own modifiers.
If you would like a format featured here, please DM me on Discord/Reddit at Viren_7.
Author: Viren070
This is the default 'gdrive' format written as a custom formatter:
Name:
{stream.infoHash::exists["[P2P]"||""]}{provider.shortName::exists["[{provider.shortName}"||""]}{provider.cached::istrue["⚡] "||""]}{provider.cached::isfalse["⏳]"||""]}{addon.name}{stream.personal::istrue[" (Your Media)"||""]} {stream.resolution::exists["{stream.resolution}"||""]}
Description:
{stream.quality::exists["🎥 {stream.quality} "||""]}{stream.quality::exists["🎞️ {stream.encode} "||""]}{stream.quality::exists["🏷️ {stream.releaseGroup}"||""]}
{stream.visualTags::exists["📺 {stream.visualTags::join(' | ')} "||""]}{stream.audioTags::exists["🎧 {stream.audioTags::join(' | ')}"||""]}
{stream.size::>0["📦 {stream.size::bytes} "||""]}{stream.duration::>0["⏱️ {stream.duration::time} "||""]}{stream.seeders::>0["👥 {stream.seeders} "||""]}{stream.age::exists["📅 {stream.age} "||""]}{stream.indexer::exists["🔍 {stream.indexer}"||""]}
{stream.languages::exists["🌎 {stream.languages::join(' | ')}"||""]}
{stream.name::exists["📄 {stream.name}"||""]}
Important
The Wiki has moved to docs.aiostreams.viren070.me