Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements for embeds #6

Open
3 tasks
ztpn opened this issue Jun 20, 2024 · 1 comment
Open
3 tasks

Improvements for embeds #6

ztpn opened this issue Jun 20, 2024 · 1 comment

Comments

@ztpn
Copy link
Member

ztpn commented Jun 20, 2024

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
@itzCozi
Copy link
Contributor

itzCozi commented Dec 9, 2024

I agree we all say in unison

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants