mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2025-02-17 03:48:25 +00:00
Merge pull request #282 from WebTools-NG/#279-Enable-custom-level-for-Audio-Album
Fixed #279
This commit is contained in:
commit
69ebc420d4
4 changed files with 15 additions and 2 deletions
|
@ -11,7 +11,7 @@
|
|||
* [#267 Allow export of Albums](https://github.com/WebTools-NG/WebTools-NG/issues/267)
|
||||
* [#268 Allow export of Tracks](https://github.com/WebTools-NG/WebTools-NG/issues/268)
|
||||
* [#280 Enable custom level for Audio Track](https://github.com/WebTools-NG/WebTools-NG/issues/280)
|
||||
|
||||
* [#279 Enable custom level for Audio Album](https://github.com/WebTools-NG/WebTools-NG/issues/279)
|
||||
|
||||
## V0.1.16
|
||||
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
{ text: i18n.t('Modules.ET.RadioTVSeries'), value: 'show', disabled: true },
|
||||
{ text: i18n.t('Modules.ET.RadioTVEpisodes'), value: 'episode', disabled: false },
|
||||
{ text: i18n.t('Modules.ET.RadioAudioArtist'), value: 'artist', disabled: false },
|
||||
{ text: i18n.t('Modules.ET.RadioAudioAlbum'), value: 'album', disabled: true },
|
||||
{ text: i18n.t('Modules.ET.RadioAudioAlbum'), value: 'album', disabled: false },
|
||||
{ text: i18n.t('Modules.ET.RadioAudioTrack'), value: 'track', disabled: false },
|
||||
{ text: i18n.t('Modules.ET.RadioPhotos'), value: 'photo', disabled: true },
|
||||
{ text: i18n.t('Modules.ET.RadioPlayLists'), value: 'playlist', disabled: true }
|
||||
|
|
|
@ -374,6 +374,10 @@ const et = new class ET {
|
|||
// code block
|
||||
typeFields = JSON.parse(JSON.stringify(require('./../defs/def-Artist.json')));
|
||||
break;
|
||||
case 'album':
|
||||
// code block
|
||||
typeFields = JSON.parse(JSON.stringify(require('./../defs/def-Album.json')));
|
||||
break;
|
||||
case 'track':
|
||||
// code block
|
||||
typeFields = JSON.parse(JSON.stringify(require('./../defs/def-Track.json')));
|
||||
|
|
|
@ -335,6 +335,15 @@ const wtutils = new class WTUtils {
|
|||
if ( wtconfig.get('ET.CustomLevels.track.level', 'N/A') == 'N/A' ){
|
||||
wtconfig.set('ET.CustomLevels.track.level', {})
|
||||
}
|
||||
if ( wtconfig.get('ET.CustomLevels.album.levels', 'N/A') == 'N/A' ){
|
||||
wtconfig.set('ET.CustomLevels.album.levels', {})
|
||||
}
|
||||
if ( wtconfig.get('ET.CustomLevels.album.LevelCount', 'N/A') == 'N/A' ){
|
||||
wtconfig.set('ET.CustomLevels.album.LevelCount', {})
|
||||
}
|
||||
if ( wtconfig.get('ET.CustomLevels.album.level', 'N/A') == 'N/A' ){
|
||||
wtconfig.set('ET.CustomLevels.album.level', {})
|
||||
}
|
||||
if ( wtconfig.get('ET.CustomLevels.photo.levels', 'N/A') == 'N/A' ){
|
||||
wtconfig.set('ET.CustomLevels.photo.levels', {})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue