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:-
We should add support for flags in the
makeEmbedfunction just like inmakeSourcererWith this we can filter out embeds based on their flags and the
target, so the embeds incompatible with the target won't runAn example source that would benefit from this is warezcdn which has two embeds,
warezcdnembedhlsandwarezcdnembedmp4,warezcdnembedmp4doesn't has any restrictions hence it doesn't need to be proxied whilstwarezcdnembedhlshas referer checks hence it needs a proxied. So when the target isbrowser, onlywarezcdnembedmp4should be checked for streams but currently it checkswarezcdnembedhlstoo. We can filter outwarezcdnembedhlsif we can define flags inmakeEmbedTasks:-
makeEmbed