Ghost Downloader

API Reference

Complete interfaces for FeaturePack, TaskParser, PackConfig, and BinaryRuntime.

FeaturePack

Prop

Type

Methods

Prop

Type


TaskParser

Prop

Type


PackConfig

Prop

Type

Configuration items are declared as class attributes via ConfigItem, automatically injected into the global cfg, with key prefix pack_{ClassName}_{attrName}.


BinaryRuntime

Prop

Type


Task

Prop

Type

Class Attributes

Prop

Type

Task subclasses automatically register their class name into the deserialization mapping via __init_subclass__. Renaming the class will make existing tasks.jsonl unrecoverable.


TaskStep

Prop

Type

Class Attributes

Prop

Type


FileType / UriScheme

@dataclass(frozen=True)
class FileType:
    extensions: tuple[str, ...]  # (".torrent",)
    displayName: str             # "BitTorrent Torrent File"
    mimeType: str                # "application/x-bittorrent"
    icon: str                    # Icon resource name

@dataclass(frozen=True)
class UriScheme:
    scheme: str       # "magnet"
    displayName: str  # "Magnet Link"

On this page