mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-26 21:10:19 +00:00
Merge pull request #281 from WebTools-NG/#280-Enable-custom-level-for-Audio-Track
Fixed #280
This commit is contained in:
commit
d1f27c9d21
3 changed files with 87 additions and 86 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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`);
|
||||
|
|
|
@ -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', {})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue