Merge pull request #281 from WebTools-NG/#280-Enable-custom-level-for-Audio-Track

Fixed #280
This commit is contained in:
Tommy Mikkelsen 2021-03-10 01:29:03 +01:00 committed by GitHub
commit d1f27c9d21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 87 additions and 86 deletions

View file

@ -10,6 +10,8 @@
* [#272 Allow export of TV Shows](https://github.com/WebTools-NG/WebTools-NG/issues/272)
* [#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)
## V0.1.16

View file

@ -108,7 +108,7 @@
{ 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.RadioAudioTrack'), value: 'track', disabled: true },
{ 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 }
],
@ -300,7 +300,6 @@
this.updateLevelCount();
alert( i18n.t("Modules.ET.Custom.AlertSaved"));
this.getCustomLevel();
},
confirmDeleteLevel() {
log.info(`User asked to delete a custom level`);

View file

@ -317,15 +317,6 @@ const wtutils = new class WTUtils {
if ( wtconfig.get('ET.CustomLevels.show.level', 'N/A') == 'N/A' ){
wtconfig.set('ET.CustomLevels.show.level', {})
}
if ( wtconfig.get('ET.CustomLevels.showepisode.levels', 'N/A') == 'N/A' ){
wtconfig.set('ET.CustomLevels.showepisode.levels', {})
}
if ( wtconfig.get('ET.CustomLevels.showepisode.LevelCount', 'N/A') == 'N/A' ){
wtconfig.set('ET.CustomLevels.showepisode.LevelCount', {})
}
if ( wtconfig.get('ET.CustomLevels.showepisode.level', 'N/A') == 'N/A' ){
wtconfig.set('ET.CustomLevels.showepisode.level', {})
}
if ( wtconfig.get('ET.CustomLevels.artist.levels', 'N/A') == 'N/A' ){
wtconfig.set('ET.CustomLevels.artist.levels', {})
}
@ -335,6 +326,15 @@ const wtutils = new class WTUtils {
if ( wtconfig.get('ET.CustomLevels.artist.level', 'N/A') == 'N/A' ){
wtconfig.set('ET.CustomLevels.artist.level', {})
}
if ( wtconfig.get('ET.CustomLevels.track.levels', 'N/A') == 'N/A' ){
wtconfig.set('ET.CustomLevels.track.levels', {})
}
if ( wtconfig.get('ET.CustomLevels.track.LevelCount', 'N/A') == 'N/A' ){
wtconfig.set('ET.CustomLevels.track.LevelCount', {})
}
if ( wtconfig.get('ET.CustomLevels.track.level', 'N/A') == 'N/A' ){
wtconfig.set('ET.CustomLevels.track.level', {})
}
if ( wtconfig.get('ET.CustomLevels.photo.levels', 'N/A') == 'N/A' ){
wtconfig.set('ET.CustomLevels.photo.levels', {})
}