Skip to content

Improvements for embeds #6

@ztpn

Description

@ztpn

We should add support for flags in the makeEmbed function just like in makeSourcerer
With this we can filter out embeds based on their flags and the target, so the embeds incompatible with the target won't run

An example source that would benefit from this is warezcdn which has two embeds, warezcdnembedhls and warezcdnembedmp4, warezcdnembedmp4 doesn't has any restrictions hence it doesn't need to be proxied whilst warezcdnembedhls has referer checks hence it needs a proxied. So when the target is browser, only warezcdnembedmp4 should be checked for streams but currently it checks warezcdnembedhls too. We can filter out warezcdnembedhls if we can define flags in makeEmbed

Tasks:-

  • add support for flags on makeEmbed
  • filter out embeds before their run based on their flags
  • add the appropriate flags on all the embeds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions