Nimbin[12]?Web & Tools / dvd / ratings.h

dvd files

DVD collection database with IMDB lookup

c imdb movies cmake · oldest file 2026-10-05 · last change 2026-10-06 (3 days ago) · synced 3 days ago

C 92.7% Makefile 6.6%
wget https://git.christianimmanuel.de/web-tools/dvd/archive/dvd.tar.gz
ratings.h 461 B · 14 lines raw
// Define the struct to hold ratings information
typedef struct {
    char tconst[13];      // tconst
    float averageRating; // averageRating
    int numVotes;        // numVotes
} RatingInfo;

int load_ratings(RatingInfo **ratings);
// Function to get ratings by tconst from the title.ratings.tsv file
RatingInfo get_ratings(const char *tconst);

RatingInfo *get_rating_by_tconst(const char *tconst, RatingInfo *ratings, int* ratings_count);

int testRat();