summaryrefslogtreecommitdiff
path: root/src/main.go
diff options
context:
space:
mode:
authordev2026-06-25 21:14:39 +0200
committerdev2026-06-25 21:14:39 +0200
commite13cbe6a4fd1ebe3f2c3bfc86c54e8dd17c59624 (patch)
treed36f8973ed80cdc2a868ebf3a6caaff2d5fa75c0 /src/main.go
parenta5e3f8447022a50080a62285e359d38e0875de21 (diff)
downloadhnimdbbot-e13cbe6a4fd1ebe3f2c3bfc86c54e8dd17c59624.tar.gz
feat: fetch missing wiki data from custom server and populate imdb table
- Add wiki_server and wiki_username config fields - Query custom server for each wiki_article entry - Extract description, synopsis (Plot), year, poster_url, license, license_url, num_accolades from structured JSON response - Serial processing with 1 req/s rate limit - Update only entries missing at least one target column
Diffstat (limited to 'src/main.go')
-rw-r--r--src/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.go b/src/main.go
index 272e4b6..9fd53db 100644
--- a/src/main.go
+++ b/src/main.go
@@ -198,4 +198,8 @@ func main() {
if err = app.fetchWikiArticles(); err != nil {
log.Fatalf("fetchWikiArticles: %v", err)
}
+
+ if err = app.fetchWikiArticlesData(); err != nil {
+ log.Fatalf("fetchWikiArticlesData: %v", err)
+ }
}