Skip to content

Commit

Permalink
Another fix for invalid wiki data
Browse files Browse the repository at this point in the history
  • Loading branch information
FlaminSarge committed Apr 16, 2024
1 parent f47f867 commit 0751338
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GPSaveConverter/Library/PCGameWiki.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ public static async Task FetchSaveLocation(GameInfo i)
sectionIndex = n["index"].GetValue<string>();
}
}
if (sectionIndex == null || sectionIndex == "-1")
{
return;
}

url = String.Format(@"https://www.pcgamingwiki.com/w/api.php?action=parse&pageid={0}&formatversion=2&format=json&prop=wikitext&section={1}", pageID, sectionIndex);
string saveFileSectionJson = await wc.DownloadStringTaskAsync(url);
Expand Down

0 comments on commit 0751338

Please sign in to comment.