1
0
Fork 0
mirror of https://gitlab.com/news-flash/article_scraper.git synced 2025-07-07 16:15:32 +02:00
This commit is contained in:
Jan Lukas Gernert 2023-03-01 01:55:26 +01:00
parent 4031750956
commit aaff97c184

View file

@ -202,14 +202,13 @@ impl Util {
for mut node in node_vec {
let tag_name = node.get_name();
if constants::EMBED_TAG_NAMES.contains(tag_name.to_uppercase().as_str()) {
if node
if constants::EMBED_TAG_NAMES.contains(tag_name.to_uppercase().as_str())
&& node
.get_attributes()
.iter()
.any(|(_name, value)| constants::VIDEOS.is_match(value))
{
continue;
}
{
continue;
}
node.unlink();
}