diff --git a/data/manifest.yaml b/data/manifest.yaml
index ca0790fd..098362f5 100644
--- a/data/manifest.yaml
+++ b/data/manifest.yaml
@@ -440528,19 +440528,6 @@ Paper Beast - Folded Edition:
- config
steam:
id: 1403830
-Paper Cut Mansion:
- gog:
- id: 1702566435
- installDir:
- PaperCutMansion: {}
- launch:
- "/PaperCutMansion.exe":
- - when:
- - bit: 64
- os: windows
- store: steam
- steam:
- id: 1004370
Paper Dungeons:
installDir:
Paper Dungeons: {}
diff --git a/data/missing.md b/data/missing.md
index a0694749..9fd9c624 100644
--- a/data/missing.md
+++ b/data/missing.md
@@ -18314,7 +18314,6 @@
* [Paparazzi](https://www.pcgamingwiki.com/wiki/?curid=48677)
* [Paparazzi Simulator](https://www.pcgamingwiki.com/wiki/?curid=154404)
* [Paparazzi!: Tales of Tinseltown](https://www.pcgamingwiki.com/wiki/?curid=177406)
-* [Paper Cut Mansion](https://www.pcgamingwiki.com/wiki/?curid=182965)
* [Paper Dungeons](https://www.pcgamingwiki.com/wiki/?curid=48170)
* [Paper Dungeons Crawler](https://www.pcgamingwiki.com/wiki/?curid=91188)
* [Paper Fire Rookie](https://www.pcgamingwiki.com/wiki/?curid=73302)
diff --git a/data/wiki-game-cache.yaml b/data/wiki-game-cache.yaml
index 2c747c18..d7504589 100644
--- a/data/wiki-game-cache.yaml
+++ b/data/wiki-game-cache.yaml
@@ -127104,10 +127104,6 @@ Paper Beast - Folded Edition:
templates:
- "{{Game data/config|Windows|{{p|hkcu}}\\SOFTWARE\\Pixel Reef\\Paper Beast\\}}"
- "{{Game data/saves|Windows|{{p|userprofile}}\\AppData\\LocalLow\\Pixel Reef\\Paper Beast\\PaperBeast.save}}"
-Paper Cut Mansion:
- gog: 1702566435
- pageId: 182965
- steam: 1004370
Paper Dungeons:
pageId: 48170
steam: 283040
diff --git a/src/wiki.rs b/src/wiki.rs
index 77884679..ed3e1b06 100644
--- a/src/wiki.rs
+++ b/src/wiki.rs
@@ -76,15 +76,14 @@ async fn is_game_article(query: &str) -> Result {
{
let title = page["title"].as_str().ok_or(Error::WikiData("query.pages[].title"))?;
if title == query {
- for category in page["categories"]
- .as_array()
- .ok_or(Error::WikiData("query.pages[].categories"))?
- {
- let category_name = category["title"]
- .as_str()
- .ok_or(Error::WikiData("query.pages[].categories[].title"))?;
- if category_name == "Category:Games" {
- return Ok(true);
+ if let Some(categories) = page["categories"].as_array() {
+ for category in categories {
+ let category_name = category["title"]
+ .as_str()
+ .ok_or(Error::WikiData("query.pages[].categories[].title"))?;
+ if category_name == "Category:Games" {
+ return Ok(true);
+ }
}
}
}