Fix up some entries from recent refreshes

This commit is contained in:
mtkennerly 2024-04-21 14:06:27 -04:00
parent 9bb69d4dbf
commit af7026181d
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
5 changed files with 234 additions and 46 deletions

View file

@ -314,10 +314,12 @@ impl WikiCache {
println!(" page {} renamed to '{}'", cached.page_id, &new_title);
if new_title.starts_with("File:") || new_title.starts_with("Company:") {
println!(" page is no longer a game");
self.0.remove(title);
continue;
for namespace in &["Company:", "File:", "Series:"] {
if new_title.starts_with(namespace) {
println!(" page is no longer a game");
self.0.remove(title);
continue;
}
}
let mut latest = match WikiCacheEntry::fetch_from_page(new_title.clone()).await {