diff --git a/gui/react/src/components/AddToQueue/DownloadSelector/DownloadSelector.tsx b/gui/react/src/components/AddToQueue/DownloadSelector/DownloadSelector.tsx index d1d5ed4..9707dc6 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'; @@ -18,6 +18,8 @@ const DownloadSelector: React.FC = ({ onFinish }) => { const [availableSubs, setAvailableSubs ] = React.useState([]); const [ loading, setLoading ] = React.useState(false); const { enqueueSnackbar } = useSnackbar(); + const ITEM_HEIGHT = 48; + const ITEM_PADDING_TOP = 8; React.useEffect(() => { (async () => { @@ -123,14 +125,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 +258,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.
Subtitles are displayed PERMANENTLY!
You can choose only 1 subtitle per video! } arrow placement='top'> = (props) => { const theme = useTheme(); return
- + {props.title}