From c990e744d336a7549f951ba6d72f49ec747f111c Mon Sep 17 00:00:00 2001 From: DAREKON <63023042+DAREK0N@users.noreply.github.com> Date: Mon, 1 Apr 2024 20:30:27 +0200 Subject: [PATCH 1/3] GUI Hardsubs --- .../DownloadSelector/DownloadSelector.tsx | 62 +++++++++---------- .../src/components/reusable/MultiSelect.tsx | 2 +- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/gui/react/src/components/AddToQueue/DownloadSelector/DownloadSelector.tsx b/gui/react/src/components/AddToQueue/DownloadSelector/DownloadSelector.tsx index d1d5ed4..b052e85 100644 --- a/gui/react/src/components/AddToQueue/DownloadSelector/DownloadSelector.tsx +++ b/gui/react/src/components/AddToQueue/DownloadSelector/DownloadSelector.tsx @@ -1,5 +1,5 @@ -import React from 'react'; -import { Box, Button, Divider, InputBase, Link, MenuItem, Select, TextField, Tooltip, Typography } from '@mui/material'; +import React, { ChangeEvent } from 'react'; +import { Box, Button, Divider, FormControl, InputBase, InputLabel, Link, MenuItem, Select, TextField, Tooltip, Typography } from '@mui/material'; import useStore from '../../../hooks/useStore'; import MultiSelect from '../../reusable/MultiSelect'; import { messageChannelContext } from '../../../provider/MessageChannel'; @@ -123,14 +123,15 @@ const DownloadSelector: React.FC = ({ onFinish }) => { - - Currently only supported on Hidive - - } - arrow - placement='top'> - + + Simulcast is only supported on Hidive + } + arrow placement='top' + > + + + = ({ onFinish }) => { }); }} /> - - Comming Soon™ + Hardsubs are only supported on Crunchyroll - } + } arrow placement='top'> = ({ onFinish }) => { }}> - - - - { dispatch({ @@ -256,12 +248,20 @@ const DownloadSelector: React.FC = ({ onFinish }) => { }); }} > - Deutsch + No Hardsub + {availableSubs.map((lang) => { + if(lang === 'all' || lang === 'none') + return undefined + return {lang} + })} - + + + + - Burns the selected subtitle PERMANENTLY onto the video
You can choose only 1 subtitle per video + Downloads the hardsub version of the selected subtitle.
Subtitels are displayed PERMANENTLY!
You can choose only 1 subtitle per video! } arrow placement='top'> = (props) => { const theme = useTheme(); return
- + {props.title} Date: Mon, 1 Apr 2024 22:22:34 +0200 Subject: [PATCH 3/3] GUI Fixed spelling --- .../components/AddToQueue/DownloadSelector/DownloadSelector.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/react/src/components/AddToQueue/DownloadSelector/DownloadSelector.tsx b/gui/react/src/components/AddToQueue/DownloadSelector/DownloadSelector.tsx index 5aa6c9e..9707dc6 100644 --- a/gui/react/src/components/AddToQueue/DownloadSelector/DownloadSelector.tsx +++ b/gui/react/src/components/AddToQueue/DownloadSelector/DownloadSelector.tsx @@ -271,7 +271,7 @@ const DownloadSelector: React.FC = ({ onFinish }) => { - Downloads the hardsub version of the selected subtitle.
Subtitels are displayed PERMANENTLY!
You can choose only 1 subtitle per video! + Downloads the hardsub version of the selected subtitle.
Subtitles are displayed PERMANENTLY!
You can choose only 1 subtitle per video! } arrow placement='top'>