See #272: added transcoding settings in UI

This commit is contained in:
Eliot Berriot 2018-10-26 15:37:43 +02:00
parent daf2e4b863
commit ac4bba816d
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 12 additions and 3 deletions

View File

@ -27,8 +27,8 @@ class MusicCacheDuration(types.IntPreference):
default = 60 * 24 * 7 default = 60 * 24 * 7
verbose_name = "Transcoding cache duration" verbose_name = "Transcoding cache duration"
help_text = ( help_text = (
"How much minutes do you want to keep a copy of transcoded tracks" "How much minutes do you want to keep a copy of transcoded tracks "
"locally? Transcoded files that were not listened in this interval " "on the server? Transcoded files that were not listened in this interval "
"will be erased and retranscoded from the remote on the next listening." "will be erased and retranscoded on the next listening."
) )
field_kwargs = {"required": False} field_kwargs = {"required": False}

View File

@ -79,6 +79,7 @@ export default {
// somehow, extraction fails if in the return block directly // somehow, extraction fails if in the return block directly
let instanceLabel = this.$gettext('Instance information') let instanceLabel = this.$gettext('Instance information')
let usersLabel = this.$gettext('Users') let usersLabel = this.$gettext('Users')
let musicLabel = this.$gettext('Music')
let playlistsLabel = this.$gettext('Playlists') let playlistsLabel = this.$gettext('Playlists')
let federationLabel = this.$gettext('Federation') let federationLabel = this.$gettext('Federation')
let subsonicLabel = this.$gettext('Subsonic') let subsonicLabel = this.$gettext('Subsonic')
@ -104,6 +105,14 @@ export default {
'users__upload_quota' 'users__upload_quota'
] ]
}, },
{
label: musicLabel,
id: 'music',
settings: [
'music__transcoding_enabled',
'music__transcoding_cache_duration',
]
},
{ {
label: playlistsLabel, label: playlistsLabel,
id: 'playlists', id: 'playlists',