mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 03:47:23 +01:00
Support metadata updates
This commit is contained in:
parent
cb90f02073
commit
456af4a1df
31 changed files with 2930 additions and 2161 deletions
|
|
@ -52,12 +52,24 @@
|
|||
<default l10n="messages">'{"title":"A long time ago","description":"Works that you haven\'t listened to for a long time.","design":"Purple","prefer_recently_added":0.0,"prefer_least_recently_played":1.0,"avoid_repeated_composers":60,"avoid_repeated_instruments":60,"play_full_recordings":true}'</default>
|
||||
<summary>Default settings for program 3</summary>
|
||||
</key>
|
||||
<key name="enable-automatic-metadata-updates" type="b">
|
||||
<default>true</default>
|
||||
<summary>Automatically download metadata updates</summary>
|
||||
</key>
|
||||
<key name="use-custom-metadata-url" type="b">
|
||||
<default>false</default>
|
||||
<summary>Use a custom URL for metadata downloads</summary>
|
||||
</key>
|
||||
<key name="custom-metadata-url" type="s">
|
||||
<default>'https://musicus.johrpan.de/musicus_metadata_latest.musdb'</default>
|
||||
<summary>Custom URL for metadata downloads</summary>
|
||||
</key>
|
||||
<key name="use-custom-library-url" type="b">
|
||||
<default>false</default>
|
||||
<summary>Use a custom URL for library downloads</summary>
|
||||
</key>
|
||||
<key name="custom-library-url" type="s">
|
||||
<default>'https://musicus.johrpan.de/musicus_library_latest.zip'</default>
|
||||
<default>'https://musicus.johrpan.de/musicus_library_latest.muslib'</default>
|
||||
<summary>Custom URL for library downloads</summary>
|
||||
</key>
|
||||
</schema>
|
||||
|
|
|
|||
|
|
@ -35,9 +35,15 @@ template $MusicusEnsembleEditor: Adw.NavigationPage {
|
|||
margin-top: 24;
|
||||
|
||||
styles [
|
||||
"boxed-list",
|
||||
"boxed-list-separate",
|
||||
]
|
||||
|
||||
Adw.SwitchRow enable_updates_row {
|
||||
title: _("Enable updates");
|
||||
subtitle: _("Keep this item up to date with the online metadata library");
|
||||
active: true;
|
||||
}
|
||||
|
||||
Adw.ButtonRow save_row {
|
||||
title: _("_Create ensemble");
|
||||
use-underline: true;
|
||||
|
|
|
|||
|
|
@ -35,9 +35,15 @@ template $MusicusInstrumentEditor: Adw.NavigationPage {
|
|||
margin-top: 24;
|
||||
|
||||
styles [
|
||||
"boxed-list",
|
||||
"boxed-list-separate",
|
||||
]
|
||||
|
||||
Adw.SwitchRow enable_updates_row {
|
||||
title: _("Enable updates");
|
||||
subtitle: _("Keep this item up to date with the online metadata library");
|
||||
active: true;
|
||||
}
|
||||
|
||||
Adw.ButtonRow save_row {
|
||||
title: _("_Create instrument");
|
||||
use-underline: true;
|
||||
|
|
|
|||
|
|
@ -35,9 +35,15 @@ template $MusicusPersonEditor: Adw.NavigationPage {
|
|||
margin-top: 24;
|
||||
|
||||
styles [
|
||||
"boxed-list",
|
||||
"boxed-list-separate",
|
||||
]
|
||||
|
||||
Adw.SwitchRow enable_updates_row {
|
||||
title: _("Enable updates");
|
||||
subtitle: _("Keep this item up to date with the online metadata library");
|
||||
active: true;
|
||||
}
|
||||
|
||||
Adw.ButtonRow save_row {
|
||||
title: _("_Create person");
|
||||
use-underline: true;
|
||||
|
|
|
|||
|
|
@ -125,9 +125,15 @@ template $MusicusRecordingEditor: Adw.NavigationPage {
|
|||
margin-top: 24;
|
||||
|
||||
styles [
|
||||
"boxed-list",
|
||||
"boxed-list-separate",
|
||||
]
|
||||
|
||||
Adw.SwitchRow enable_updates_row {
|
||||
title: _("Enable updates");
|
||||
subtitle: _("Keep this item up to date with the online metadata library");
|
||||
active: true;
|
||||
}
|
||||
|
||||
Adw.ButtonRow save_row {
|
||||
title: _("_Create recording");
|
||||
use-underline: true;
|
||||
|
|
|
|||
|
|
@ -35,9 +35,15 @@ template $MusicusRoleEditor: Adw.NavigationPage {
|
|||
margin-top: 24;
|
||||
|
||||
styles [
|
||||
"boxed-list",
|
||||
"boxed-list-separate",
|
||||
]
|
||||
|
||||
Adw.SwitchRow enable_updates_row {
|
||||
title: _("Enable updates");
|
||||
subtitle: _("Keep this item up to date with the online metadata library");
|
||||
active: true;
|
||||
}
|
||||
|
||||
Adw.ButtonRow save_row {
|
||||
title: _("_Create role");
|
||||
use-underline: true;
|
||||
|
|
|
|||
|
|
@ -119,9 +119,15 @@ template $MusicusWorkEditor: Adw.NavigationPage {
|
|||
margin-top: 24;
|
||||
|
||||
styles [
|
||||
"boxed-list",
|
||||
"boxed-list-separate",
|
||||
]
|
||||
|
||||
Adw.SwitchRow enable_updates_row {
|
||||
title: _("Enable updates");
|
||||
subtitle: _("Keep this item up to date with the online metadata library");
|
||||
active: true;
|
||||
}
|
||||
|
||||
Adw.ButtonRow save_row {
|
||||
title: _("_Create work");
|
||||
use-underline: true;
|
||||
|
|
|
|||
|
|
@ -63,9 +63,15 @@ template $MusicusLibraryManager: Adw.NavigationPage {
|
|||
}
|
||||
|
||||
Adw.ButtonRow {
|
||||
title: _("Update default library");
|
||||
title: _("Update metadata");
|
||||
end-icon-name: "go-next-symbolic";
|
||||
activated => $update_default_library() swapped;
|
||||
activated => $update_metadata() swapped;
|
||||
}
|
||||
|
||||
Adw.ButtonRow {
|
||||
title: _("Update library");
|
||||
end-icon-name: "go-next-symbolic";
|
||||
activated => $update_library() swapped;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,15 +69,33 @@ template $MusicusPreferencesDialog: Adw.PreferencesDialog {
|
|||
icon-name: "library-symbolic";
|
||||
|
||||
Adw.PreferencesGroup {
|
||||
title: _("Library download");
|
||||
title: _("Metadata updates");
|
||||
|
||||
Adw.SwitchRow use_custom_url_row {
|
||||
title: _("Use custom download URL");
|
||||
Adw.SwitchRow enable_automatic_metadata_updates_row {
|
||||
title: _("Enable automatic metadata updates");
|
||||
}
|
||||
|
||||
Adw.SwitchRow use_custom_metadata_url_row {
|
||||
title: _("Use custom metadata URL");
|
||||
active: false;
|
||||
}
|
||||
|
||||
Adw.EntryRow custom_url_row {
|
||||
title: _("Download URL");
|
||||
Adw.EntryRow custom_metadata_url_row {
|
||||
title: _("Metadata download URL");
|
||||
show-apply-button: true;
|
||||
}
|
||||
}
|
||||
|
||||
Adw.PreferencesGroup {
|
||||
title: _("Library updates");
|
||||
|
||||
Adw.SwitchRow use_custom_library_url_row {
|
||||
title: _("Use custom library URL");
|
||||
active: false;
|
||||
}
|
||||
|
||||
Adw.EntryRow custom_library_url_row {
|
||||
title: _("Library download URL");
|
||||
show-apply-button: true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue