sourceData

abstract suspend fun sourceData(content: ContentItemMin, bypassModel: BypassModel): SourceData<*>?

This function is called when loading the sources for a ContentItemModel it can be a VideoSource, GallerySource or a WebSource.

Return

A SourceData declaring the data type for this content or null if there was an error.

Parameters

content

The minimized version en the ContentItemModel declared in InfoModel.contentData

bypassModel

Cloudflare bypass information extracted by the Main app, if your module doesn't require a bypass you can disable it in HeadConfig.bypassBehavior.