diff --git a/src/pages/TopFlix.tsx b/src/pages/TopFlix.tsx index b595fe5d..78b2c1d8 100644 --- a/src/pages/TopFlix.tsx +++ b/src/pages/TopFlix.tsx @@ -7,8 +7,6 @@ import { Divider } from "@/components/utils/Divider"; import { Heading1, Paragraph } from "@/components/utils/Text"; import { SubPageLayout } from "./layouts/SubPageLayout"; -// import { MediaGrid } from "@/components/media/MediaGrid" -// import { TopFlixCard } from "@/components/media/FlixCard"; export function Button(props: { className: string; @@ -163,7 +161,14 @@ async function getTimeSinceProcessStart(): Promise { const hours = Math.floor(timeDifference / (1000 * 60 * 60)); const minutes = Math.floor((timeDifference % (1000 * 60 * 60)) / (1000 * 60)); const seconds = Math.floor((timeDifference % (1000 * 60)) / 1000); + const days = Math.floor(timeDifference / (1000 * 60 * 60 * 24)); + if (days > 0) { + if (days === 1) { + return `${days} day`; + } + return `${days} days`; + } if (hours > 0) { return `${hours} hours`; } @@ -235,11 +240,13 @@ export function TopFlix() { return ( -
+
Top flix - The most popular movies on sudo-flix.lol, this data is fetched from - the current backend deployment. + The top 100 most-watched movies on sudo-flix.lol, sourced directly + from the most recent sudo-backend deployment. The backend is + redeployed frequently which may result in low numbers being shown + here.
@@ -291,8 +298,9 @@ export function TopFlix() { > @@ -303,8 +311,9 @@ export function TopFlix() {
diff --git a/src/pages/TopSources.tsx b/src/pages/TopSources.tsx index 6da1ecb1..77bd8a10 100644 --- a/src/pages/TopSources.tsx +++ b/src/pages/TopSources.tsx @@ -99,7 +99,7 @@ export function TopSources() { return ( -
+
Top sources The most used providers on sudo-flix.lol, this data is fetched from