mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
add DLNA server name and debug log options to web
This commit is contained in:
@@ -10,8 +10,10 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
|
||||
const {
|
||||
RetrackersMode,
|
||||
TorrentDisconnectTimeout,
|
||||
EnableDebug,
|
||||
EnableDLNA,
|
||||
EnableIPv6,
|
||||
FriendlyName,
|
||||
ForceEncrypt,
|
||||
DisableTCP,
|
||||
DisableUTP,
|
||||
@@ -139,6 +141,22 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
|
||||
label={t('SettingsDialog.DLNA')}
|
||||
labelPlacement='start'
|
||||
/>
|
||||
<TextField
|
||||
onChange={inputForm}
|
||||
margin='normal'
|
||||
id='FriendlyName'
|
||||
label={t('SettingsDialog.FriendlyName')}
|
||||
helperText={t('SettingsDialog.FriendlyNameHint')}
|
||||
value={FriendlyName}
|
||||
type='text'
|
||||
variant='outlined'
|
||||
fullWidth
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Switch checked={EnableDebug} onChange={inputForm} id='EnableDebug' color='secondary' />}
|
||||
label={t('SettingsDialog.EnableDebug')}
|
||||
labelPlacement='start'
|
||||
/>
|
||||
<br />
|
||||
<InputLabel htmlFor='RetrackersMode'>{t('SettingsDialog.RetrackersMode')}</InputLabel>
|
||||
<Select
|
||||
|
||||
@@ -61,7 +61,7 @@ export default function SettingsDialog({ handleClose }) {
|
||||
)
|
||||
sets[id] = Boolean(!checked)
|
||||
else sets[id] = Boolean(checked)
|
||||
} else if (type === 'url') {
|
||||
} else if (type === 'url' || type === 'text') {
|
||||
sets[id] = value
|
||||
}
|
||||
setSettings(sets)
|
||||
|
||||
@@ -14,6 +14,7 @@ export default {
|
||||
DownloadRateLimit: 0,
|
||||
EnableDebug: false,
|
||||
EnableIPv6: false,
|
||||
FriendlyName: '',
|
||||
ForceEncrypt: false,
|
||||
PeersListenPort: 0,
|
||||
PreloadCache: 50,
|
||||
|
||||
Reference in New Issue
Block a user