fix satisfactory article 404 by excluding them

This commit is contained in:
theBreadCompany 2024-11-20 12:51:02 +01:00
parent 63acd248ec
commit 7d14796e0a

View file

@ -105,7 +105,7 @@ async fn fetch_recipe_links(url: String) -> Vec<String> {
.and_then(|attr| Some(attr?.as_utf8_str().to_string())) // Convert to String .and_then(|attr| Some(attr?.as_utf8_str().to_string())) // Convert to String
}) })
.filter(|e| { .filter(|e| {
e.contains("/show") && !e.contains("satisfactoryplus") && !e.contains("game-schematic") e.contains("/show") && !e.contains("game-schematic") && !e.contains("satisfactoryplus")
}) })
.collect::<HashSet<_>>() .collect::<HashSet<_>>()
.into_iter() .into_iter()