Release 1.0.0.12: genre normalization and album organization
This commit is contained in:
1 parent
4bb222af8b
commit
7106023d49
11 files changed
+301
-17
No files matched your search
@@ -77,4 +77,9 @@ public class PluginConfiguration : BasePluginConfiguration
|
||||
/// Gets or sets a value indicating whether composers and lyricists are fetched from track credits.
|
||||
/// </summary>
|
||||
public bool EnableCredits { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the target folder for the "organize into albums" task.
|
||||
/// </summary>
|
||||
public string OrganizeTargetPath { get; set; } = "/movie/music-organized";
|
||||
}
|
||||
@@ -126,6 +126,11 @@
|
||||
<label class="inputLabel inputLabelUnfocused" for="DurationToleranceSeconds">Допуск по длительности, сек</label>
|
||||
<input id="DurationToleranceSeconds" type="number" is="emby-input" min="2" max="60" step="1" />
|
||||
</div>
|
||||
<div class="inputContainer">
|
||||
<label class="inputLabel inputLabelUnfocused" for="OrganizeTargetPath">Папка для раскладки по альбомам</label>
|
||||
<input id="OrganizeTargetPath" type="text" is="emby-input" />
|
||||
<div class="fieldDescription">Куда задача «разложить по альбомам» создаст хардлинки. По умолчанию /movie/music-organized.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@@ -205,6 +210,7 @@
|
||||
document.querySelector('#UseYandexYear').checked = config.UseYandexYear;
|
||||
document.querySelector('#MatchThreshold').value = config.MatchThreshold;
|
||||
document.querySelector('#DurationToleranceSeconds').value = config.DurationToleranceSeconds;
|
||||
document.querySelector('#OrganizeTargetPath').value = config.OrganizeTargetPath || '/movie/music-organized';
|
||||
Dashboard.hideLoadingMsg();
|
||||
ApiClient.ajax({
|
||||
type: 'GET',
|
||||
@@ -237,6 +243,7 @@
|
||||
config.UseYandexYear = document.querySelector('#UseYandexYear').checked;
|
||||
config.MatchThreshold = parseFloat(document.querySelector('#MatchThreshold').value) || 0.72;
|
||||
config.DurationToleranceSeconds = parseInt(document.querySelector('#DurationToleranceSeconds').value, 10) || 12;
|
||||
config.OrganizeTargetPath = document.querySelector('#OrganizeTargetPath').value || '/movie/music-organized';
|
||||
ApiClient.updatePluginConfiguration(YandexMusicConfig.pluginId, config).then(function (result) {
|
||||
Dashboard.processPluginConfigurationUpdateResult(result);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user