From 8cc6faff09b93e11cb520b4f386965dca496c544 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Sat, 20 Jan 2024 13:27:58 +0100 Subject: [PATCH] improve HLS disclaimer --- src/assets/locales/en.json | 2 +- .../player/atoms/settings/Downloads.tsx | 24 +------------------ 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index 845d2756..a3088624 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -232,7 +232,7 @@ "downloadSubtitle": "Download current subtitle", "downloadPlaylist": "Download playlist", "downloadVideo": "Download video", - "hlsDisclaimer": "Downloads are taken directly from the provider. movie-web does not have control over how the downloads are provided. Please note that you are downloading an HLS playlist, this is intended for users familiar with advanced multimedia streaming.", + "hlsDisclaimer": "Downloads are taken directly from the provider. movie-web does not have control over how the downloads are provided.

Please note that you are downloading an HLS playlist, it is not recommended to download if you are not familiar for advanced streaming formats. Try different sources for different formats.", "onAndroid": { "1": "To download on Android, click the download button then, on the new page, tap and hold on the video, then select save.", "shortTitle": "Download / Android", diff --git a/src/components/player/atoms/settings/Downloads.tsx b/src/components/player/atoms/settings/Downloads.tsx index 9dfa8309..bba9cf20 100644 --- a/src/components/player/atoms/settings/Downloads.tsx +++ b/src/components/player/atoms/settings/Downloads.tsx @@ -27,6 +27,7 @@ function StyleTrans(props: { k: string }) { i18nKey={props.k} components={{ bold: , + br:
, ios_share: ( ), @@ -123,24 +124,6 @@ export function DownloadView({ id }: { id: string }) { ); } -export function CantDownloadView({ id }: { id: string }) { - const router = useOverlayRouter(id); - const { t } = useTranslation(); - - return ( - <> - router.navigate("/")}> - {t("player.menus.downloads.title")} - - - - - - - - ); -} - function AndroidExplanationView({ id }: { id: string }) { const router = useOverlayRouter(id); const { t } = useTranslation(); @@ -202,11 +185,6 @@ export function DownloadRoutes({ id }: { id: string }) { - - - - -