From d4fdb4e3d6a3fbf042db8605d371605a64c8db4c Mon Sep 17 00:00:00 2001 From: zephex-alt <166333351+zephex-alt@users.noreply.github.com> Date: Wed, 8 May 2024 04:26:20 +0000 Subject: minor css fixes and added a new source for movies --- src/app/movies/components/search_2.jsx | 80 ++++++++++++++++-------------- src/app/movies/components/video_player.jsx | 9 ++++ 2 files changed, 52 insertions(+), 37 deletions(-) (limited to 'src/app/movies/components') diff --git a/src/app/movies/components/search_2.jsx b/src/app/movies/components/search_2.jsx index 0eb66fb..cf3fc69 100644 --- a/src/app/movies/components/search_2.jsx +++ b/src/app/movies/components/search_2.jsx @@ -9,43 +9,49 @@ import styles from "../styles/search.module.css"; const SearchResults = async (title) => { const data = await get_search_results(title); PreFetchMovieInfo(data); - return ( -
- {data && - data.results && - data.results.map((item, index) => { - if (item.poster_path) { - return ( - -
-

{item.title || item.original_title}

- Movie Poster -
- - ); - } - })} -
- ); + if (data.results.length > 0) { + return ( +
+ {data && + data.results && + data.results.map((item, index) => { + if (item.poster_path) { + return ( + +
+

+ {item.title || item.original_title} +

+ Movie Poster +
+ + ); + } + })} +
+ ); + } else { + return

No results found!

; + } }; const get_search_results = async (title) => { diff --git a/src/app/movies/components/video_player.jsx b/src/app/movies/components/video_player.jsx index 15db6a8..5a49db0 100644 --- a/src/app/movies/components/video_player.jsx +++ b/src/app/movies/components/video_player.jsx @@ -53,6 +53,15 @@ export default function VIDEO_PLAYER({ id: id }) { > Vidsrc.icu + {frame} -- cgit v1.2.3