From 4bb34b280f7d47c35f879046bd6769578f74f147 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 26 Jan 2025 18:43:14 +0700 Subject: [PATCH] channel about help --- frontend/src/pages/ChannelAbout.tsx | 45 +++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/ChannelAbout.tsx b/frontend/src/pages/ChannelAbout.tsx index 75a66cac..679a7800 100644 --- a/frontend/src/pages/ChannelAbout.tsx +++ b/frontend/src/pages/ChannelAbout.tsx @@ -15,6 +15,7 @@ import updateChannelOverwrites from '../api/actions/updateChannelOverwrite'; import useIsAdmin from '../functions/useIsAdmin'; import InputConfig from '../components/InputConfig'; import ToggleConfig from '../components/ToggleConfig'; +import { useUserConfigStore } from '../stores/UserConfigStore'; export type ChannelBaseOutletContextType = { currentPage: number; @@ -34,6 +35,7 @@ type ChannelAboutParams = { const ChannelAbout = () => { const { channelId } = useParams() as ChannelAboutParams; + const { userConfig } = useUserConfigStore(); const { setStartNotification } = useOutletContext() as ChannelBaseOutletContextType; const navigate = useNavigate(); const isAdmin = useIsAdmin(); @@ -242,6 +244,33 @@ const ChannelAbout = () => {

Channel Customization

+ {userConfig.config.show_help_text && ( +
+
    +
  • Overwrite the download format over the format set globally.
  • +
  • Autodelete watched after x days overwrites the global setting.
  • +
  • + Indexing playlists indexes all playlists from that channel. +
      +
    • + Only activate that for channels you care about the playlists. This is + slow. +
    • +
    • + More details{' '} + + here + + . +
    • +
    +
  • +
  • + Once you click on Configure, this will activate sponsorblock settings. +
  • +
+
+ )}

Download Format

@@ -257,7 +286,9 @@ const ChannelAbout = () => {
-

Auto delete watched videos after x days

+

+ Danger Zone: Auto delete watched +

{

Page Size Overrides

-

- Disable standard videos, shorts, or streams for this channel by setting their page - size to 0 (zero). -

+ {userConfig.config.show_help_text && ( +
+

+ Disable standard videos, shorts, or streams for this channel by setting their + page size to 0 (zero). +

+
+ )}

Videos page size