Skip to content

Commit

Permalink
WIP: Fixed IMDB Ratings (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed May 15, 2024
1 parent 4cfc1bf commit 1fe4dd2
Show file tree
Hide file tree
Showing 14 changed files with 733 additions and 346 deletions.
258 changes: 174 additions & 84 deletions MovieVerse-Frontend/js/chatbot.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -928,4 +928,5 @@ <h2 id="search-results-label">Search Results</h2>
</script>

</body>

</html>

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1010,22 +1010,28 @@ function updateSignInButtonState() {
setupPagination('award-winning', 'award-winning-pagination', 'award-winning-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&sort_by=vote_average.desc&vote_count.gte=1000`);
setupPagination('hidden-gems', 'hidden-gems-pagination', 'hidden-gems-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&sort_by=vote_average.desc&vote_count.gte=100&vote_average.gte=7&popularity.lte=10`);
setupPagination('western', 'western-pagination', 'western-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=37&sort_by=popularity.desc&vote_count.gte=8`);

setupPagination('war', 'war-pagination', 'war-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=10752&sort_by=popularity.desc&vote_count.gte=8`);
setupPagination('vietnamese', 'vietnamese-pagination', 'vietnamese-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_original_language=vi&sort_by=popularity.desc`);
setupPagination('korean', 'korean-pagination', 'korean-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_original_language=ko&sort_by=vote_average.desc,popularity.desc&vote_count.gte=10&vote_average.gte=8`);
setupPagination('musical', 'musical-pagination', 'musical-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=10402&sort_by=popularity.desc&vote_count.gte=8`);

setupPagination('drama', 'drama-pagination', 'drama-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=18&sort_by=popularity.desc&vote_count.gte=8`);
setupPagination('indian', 'indian-pagination', 'indian-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_original_language=hi&sort_by=popularity.desc`);
setupPagination('action', 'action-pagination', 'action-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=28&sort_by=popularity.desc&vote_count.gte=8`);

setupPagination('horror', 'horror-pagination', 'horror-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=27&sort_by=popularity.desc&vote_count.gte=8`);
setupPagination('documentary', 'documentary-pagination', 'documentary-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=99&sort_by=popularity.desc&vote_count.gte=8`);
setupPagination('animation', 'animation-pagination', 'animation-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=16&sort_by=popularity.desc&vote_count.gte=8`);

setupPagination('sci-fi', 'sci-fi-pagination', 'sci-fi-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=878&sort_by=popularity.desc&vote_count.gte=8`);
setupPagination('romantic', 'romantic-pagination', 'romantic-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=10749&sort_by=popularity.desc&vote_count.gte=8`);
setupPagination('thriller', 'thriller-pagination', 'thriller-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=53&sort_by=popularity.desc&vote_count.gte=8`);

setupPagination('mystery', 'mystery-pagination', 'mystery-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=9648&sort_by=popularity.desc&vote_count.gte=8`);
setupPagination('comedy', 'comedy-pagination', 'comedy-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=35&sort_by=popularity.desc&vote_count.gte=8`);
setupPagination('fantasy', 'fantasy-pagination', 'fantasy-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=14&sort_by=popularity.desc&vote_count.gte=8`);

setupPagination('family', 'family-pagination', 'family-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=10751&sort_by=popularity.desc&vote_count.gte=8`);
setupPagination('tv-series', 'tv-series-pagination', 'tv-series-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=10770&sort_by=popularity.desc&vote_count.gte=8`);
setupPagination('crime', 'crime-pagination', 'crime-div', `https://${getMovieVerseData()}/3/discover/movie?${generateMovieNames()}${getMovieCode()}&with_genres=80&sort_by=popularity.desc&vote_count.gte=8`);
Expand All @@ -1047,4 +1053,4 @@ document.addEventListener('DOMContentLoaded', () => {
notificationBtn.addEventListener('click', () => {
window.location.href = 'MovieVerse-Frontend/html/notifications.html';
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"background_color": "#ffffff",
"theme_color": "#7378c5",
"author": "Son Nguyen Hoang",
"description": "An interactive app that provides you with the latest movies and TV shows, and also allows you to save your favorites, create watch lists, and so much more!",
"description": "An interactive app that provides you with information about the latest movies and TV shows, and allows you to save your favorites, create watch lists, and more!",
"icons": [
{
"src": "images/image-192x192.png",
Expand Down Expand Up @@ -34,7 +34,7 @@
},
{
"src": "images/image-96x96.png",
"sizes": "192x192",
"sizes": "96x96",
"type": "image/png",
"purpose": "any maskable"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -928,4 +928,5 @@ <h2 id="search-results-label">Search Results</h2>
</script>

</body>

</html>
Loading

0 comments on commit 1fe4dd2

Please sign in to comment.