From 7d6eab100c340d12a114b9aa96aa58bcc5c25254 Mon Sep 17 00:00:00 2001 From: Son Nguyen Date: Sun, 7 Jan 2024 00:20:41 +0700 Subject: [PATCH] Fixed movie rating bugs & enhanced app efficiency --- src/js/movie-details.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/movie-details.js b/src/js/movie-details.js index 2f8232a6..ceae381e 100644 --- a/src/js/movie-details.js +++ b/src/js/movie-details.js @@ -519,7 +519,7 @@ function getRatingDetails(rating) { async function fetchMovieRatings(imdbId, tmdbMovieData) { const omdbApiKey = '2ba8e536'; - const omdbUrl = `http://www.omdbapi.com/?i=${imdbId}&apikey=${omdbApiKey}`; + const omdbUrl = `https://www.omdbapi.com/?i=${imdbId}&apikey=${omdbApiKey}`; try { const response = await fetch(omdbUrl);