From 86069f011f35e339a30ffb717308990369c5f29f Mon Sep 17 00:00:00 2001 From: dev Date: Wed, 24 Jun 2026 03:46:14 +0200 Subject: feat: fetchAndUpdateImdbData — download IMDB datasets and populate imdb table - Check for imdb entries with NULL average_rating - Download title.basics.tsv.gz and title.ratings.tsv.gz to imdbdata/ - Decompress alongside gzip originals - Parse only rows matching our imdb_ids (memory-efficient) - Update: average_rating, num_votes, title_type, primary_title, original_title, start_year, runtime_minutes - Results: 3394 ratings, 3093 basics updated out of 3448 entries --- src/main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.go') diff --git a/src/main.go b/src/main.go index 0aa01bb..123cc64 100644 --- a/src/main.go +++ b/src/main.go @@ -190,4 +190,8 @@ func main() { if err = app.populateImdbTable(); err != nil { log.Fatalf("populateImdbTable: %v", err) } + + if err = app.fetchAndUpdateImdbData(); err != nil { + log.Fatalf("fetchAndUpdateImdbData: %v", err) + } } -- cgit v1.2.3