Skip to content

Commit 14ac4ff

Browse files
committed
fix: migrate Flan'sMod to CurseForge
1 parent 659d32e commit 14ac4ff

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/mod_polling/parsers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ Scrapes a web page and extracts versions using regex.
248248
{
249249
"parser": "html",
250250
"html": {
251-
"url": "https://flansmod.com/download",
252-
"regex": "(?P<version>[0-9]+(?:\\.[0-9]+)+) for(?: MC)? (?P<mc>[0-9]+(\\.[0-9]+)+)"
251+
"url": "https://example.com/downloads",
252+
"regex": "Mod (?P<version>[0-9]+(?:\\.[0-9]+)+) for MC (?P<mc>[0-9]+(?:\\.[0-9]+)+)"
253253
}
254254
}
255255
```

mod_polling/mods.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -983,11 +983,11 @@
983983
}
984984
},
985985
"Flan'sMod": {
986-
"parser": "html",
986+
"parser": "cfwidget",
987987
"active": true,
988-
"html": {
989-
"url": "https://flansmod.com/download",
990-
"regex": "(?P<version>[0-9]+(?:\\.[0-9]+)+) for(?: MC)? (?P<mc>[0-9]+(\\.[0-9]+)+)"
988+
"curse": {
989+
"id": "317310",
990+
"regex": "Flan(?:'s Mod|\\.s\\.Mod)-[0-9]+(?:\\.[0-9]+)+-(?P<version>[0-9]+(?:\\.[0-9]+)+(?:-[a-z]+(?:\\.[0-9]+)?)?)(?:-all)?\\.jar"
991991
}
992992
},
993993
"LagGoggles": {

0 commit comments

Comments
 (0)