Merge branch 'feature/add-metadata-aggregation' into feature/add-artwork-provider-and-metadata-aggregation

This commit is contained in:
BinaryAlley committed 2026-08-24 22:53:57 -07:00
commit b47588cf83
168 files changed
+3503 -1062

No files matched your search

@@ -2,7 +2,6 @@
using FastEndpoints;
using Lumina.Presentation.Web.Common.DTO.Common;
using Lumina.Presentation.Web.Common.DTO.Libraries;
using System;
using System.Diagnostics.CodeAnalysis;
#endregion
@@ -29,7 +28,7 @@ public class SaveLibraryEndpointSummary : Summary<SaveLibraryEndpoint, LibraryDt
RequestParam(r => r.ContentLocations, "The collection of directories that contain the media library files. Required.");
RequestParam(r => r.IsEnabled, "Whether the media library is enabled or not. Optional.");
RequestParam(r => r.IsLocked, "Whether the media library is locked or not. Optional.");
RequestParam(r => r.DownloadMetadataFromWeb, "Whether the metadata of the media library items should be downloaded from the web, or not. Optional.");
RequestParam(r => r.CanDownloadMetadataFromWeb, "Whether the metadata of the media library items should be downloaded from the web, or not. Optional.");
RequestParam(r => r.ShouldSaveMetadataInMediaDirectories, "Whether the downloaded metadata should be copied into the media library content locations, or not. Optional.");
RequestParam(r => r.ShouldSkipUnchangedDirectoriesDuringScan, "Whether the directories whose contents have not changed since the last scan should be skipped during the scan, or not. Optional.");
@@ -1,7 +1,6 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.DTO.UsersManagement;
using System;
using System.Diagnostics.CodeAnalysis;
#endregion
@@ -23,7 +22,7 @@ public class UpdateUserSettingsEndpointSummary : Summary<UpdateUserSettingsEndpo
RequestParam(r => r.UserId, "The unique identifier of the user that owns the settings. Optional.");
RequestParam(r => r.IsPaginationEnabled, "Whether pagination is enabled for the user, or not. Optional.");
RequestParam(r => r.ItemsPerPage, "The number of library items displayed per page when pagination is enabled. Optional.");
RequestParam(r => r.IgnoreThePrefixForAlphaPicker, "Whether the leading 'The' prefix of library item titles is ignored by the alpha picker, or not. Optional.");
RequestParam(r => r.ShouldIgnoreThePrefixForAlphaPicker, "Whether the leading 'The' prefix of library item titles is ignored by the alpha picker, or not. Optional.");
ExampleRequest = new UserSettingsDto();
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -171,7 +171,7 @@
<data name="DescriptionDirectories" xml:space="preserve">
<value>حدد المجلدات التي تحتوي على ملفات الوسائط الخاصة بهذه المكتبة</value>
</data>
<data name="DescriptionDownloadMetadataFromWeb" xml:space="preserve">
<data name="DescriptionCanDownloadMetadataFromWeb" xml:space="preserve">
<value>ما إذا كانت مكتبة الوسائط هذه ستحصل على البيانات الوصفية لعناصرها عن طريق تنزيلها من الإنترنت أم لا.</value>
</data>
<data name="DescriptionEnabled" xml:space="preserve">
@@ -198,7 +198,7 @@
<data name="Documentary" xml:space="preserve">
<value>وثائقي</value>
</data>
<data name="DownloadMetadataFromWeb" xml:space="preserve">
<data name="CanDownloadMetadataFromWeb" xml:space="preserve">
<value>تنزيل البيانات الوصفية من الويب</value>
</data>
<data name="EBook" xml:space="preserve">
@@ -171,7 +171,7 @@
<data name="DescriptionDirectories" xml:space="preserve">
<value>Wählen Sie die Ordner mit den Mediendateien dieser Bibliothek aus</value>
</data>
<data name="DescriptionDownloadMetadataFromWeb" xml:space="preserve">
<data name="DescriptionCanDownloadMetadataFromWeb" xml:space="preserve">
<value>Ob diese Medienbibliothek die Metadaten ihrer Elemente aus dem Internet herunterladen soll oder nicht.</value>
</data>
<data name="DescriptionEnabled" xml:space="preserve">
@@ -198,7 +198,7 @@
<data name="Documentary" xml:space="preserve">
<value>Dokumentarfilm</value>
</data>
<data name="DownloadMetadataFromWeb" xml:space="preserve">
<data name="CanDownloadMetadataFromWeb" xml:space="preserve">
<value>Metadaten Aus Dem Web Herunterladen</value>
</data>
<data name="EBook" xml:space="preserve">
@@ -171,7 +171,7 @@
<data name="DescriptionDirectories" xml:space="preserve">
<value>Select the folders containing the media files of this library</value>
</data>
<data name="DescriptionDownloadMetadataFromWeb" xml:space="preserve">
<data name="DescriptionCanDownloadMetadataFromWeb" xml:space="preserve">
<value>Whether this media library should get the metadata of it elements by downloading it from the Internet, or not.</value>
</data>
<data name="DescriptionEnabled" xml:space="preserve">
@@ -198,7 +198,7 @@
<data name="Documentary" xml:space="preserve">
<value>Documentary</value>
</data>
<data name="DownloadMetadataFromWeb" xml:space="preserve">
<data name="CanDownloadMetadataFromWeb" xml:space="preserve">
<value>Download Metadata From The Web</value>
</data>
<data name="EBook" xml:space="preserve">
@@ -171,7 +171,7 @@
<data name="DescriptionDirectories" xml:space="preserve">
<value>Selecciona las carpetas que contienen los archivos multimedia de esta biblioteca</value>
</data>
<data name="DescriptionDownloadMetadataFromWeb" xml:space="preserve">
<data name="DescriptionCanDownloadMetadataFromWeb" xml:space="preserve">
<value>Si esta biblioteca multimedia debe obtener los metadatos de sus elementos descargándolos de Internet o no.</value>
</data>
<data name="DescriptionEnabled" xml:space="preserve">
@@ -198,7 +198,7 @@
<data name="Documentary" xml:space="preserve">
<value>Documental</value>
</data>
<data name="DownloadMetadataFromWeb" xml:space="preserve">
<data name="CanDownloadMetadataFromWeb" xml:space="preserve">
<value>Descargar Metadatos Desde La Web</value>
</data>
<data name="EBook" xml:space="preserve">
@@ -171,7 +171,7 @@
<data name="DescriptionDirectories" xml:space="preserve">
<value>Sélectionnez les dossiers contenant les fichiers multimédias de cette bibliothèque</value>
</data>
<data name="DescriptionDownloadMetadataFromWeb" xml:space="preserve">
<data name="DescriptionCanDownloadMetadataFromWeb" xml:space="preserve">
<value>Si cette médiathèque doit obtenir les métadonnées de ses éléments en les téléchargeant depuis Internet ou non.</value>
</data>
<data name="DescriptionEnabled" xml:space="preserve">
@@ -198,7 +198,7 @@
<data name="Documentary" xml:space="preserve">
<value>Documentaire</value>
</data>
<data name="DownloadMetadataFromWeb" xml:space="preserve">
<data name="CanDownloadMetadataFromWeb" xml:space="preserve">
<value>Télécharger Les Métadonnées Depuis Le Web</value>
</data>
<data name="EBook" xml:space="preserve">
@@ -171,7 +171,7 @@
<data name="DescriptionDirectories" xml:space="preserve">
<value>Seleziona le cartelle che contengono i file multimediali di questa biblioteca</value>
</data>
<data name="DescriptionDownloadMetadataFromWeb" xml:space="preserve">
<data name="DescriptionCanDownloadMetadataFromWeb" xml:space="preserve">
<value>Se questa libreria multimediale deve ottenere i metadati dei suoi elementi scaricandoli da Internet o meno.</value>
</data>
<data name="DescriptionEnabled" xml:space="preserve">
@@ -198,7 +198,7 @@
<data name="Documentary" xml:space="preserve">
<value>Documentario</value>
</data>
<data name="DownloadMetadataFromWeb" xml:space="preserve">
<data name="CanDownloadMetadataFromWeb" xml:space="preserve">
<value>Scarica I Metadati Dal Web</value>
</data>
<data name="EBook" xml:space="preserve">
@@ -171,7 +171,7 @@
<data name="DescriptionDirectories" xml:space="preserve">
<value>このライブラリのメディアファイルを含むフォルダを選択してください</value>
</data>
<data name="DescriptionDownloadMetadataFromWeb" xml:space="preserve">
<data name="DescriptionCanDownloadMetadataFromWeb" xml:space="preserve">
<value>このメディアライブラリの要素のメタデータをインターネットからダウンロードして取得するかどうか。</value>
</data>
<data name="DescriptionEnabled" xml:space="preserve">
@@ -198,7 +198,7 @@
<data name="Documentary" xml:space="preserve">
<value>ドキュメンタリー</value>
</data>
<data name="DownloadMetadataFromWeb" xml:space="preserve">
<data name="CanDownloadMetadataFromWeb" xml:space="preserve">
<value>ウェブからメタデータをダウンロード</value>
</data>
<data name="EBook" xml:space="preserve">
@@ -171,7 +171,7 @@
<data name="DescriptionDirectories" xml:space="preserve">
<value>Select the folders containing the media files of this library</value>
</data>
<data name="DescriptionDownloadMetadataFromWeb" xml:space="preserve">
<data name="DescriptionCanDownloadMetadataFromWeb" xml:space="preserve">
<value>Whether this media library should get the metadata of it elements by downloading it from the Internet, or not.</value>
</data>
<data name="DescriptionEnabled" xml:space="preserve">
@@ -198,7 +198,7 @@
<data name="Documentary" xml:space="preserve">
<value>Documentary</value>
</data>
<data name="DownloadMetadataFromWeb" xml:space="preserve">
<data name="CanDownloadMetadataFromWeb" xml:space="preserve">
<value>Download Metadata From The Web</value>
</data>
<data name="EBook" xml:space="preserve">
@@ -171,7 +171,7 @@
<data name="DescriptionDirectories" xml:space="preserve">
<value>Selectează dosarele care conțin fișierele media ale acestei biblioteci</value>
</data>
<data name="DescriptionDownloadMetadataFromWeb" xml:space="preserve">
<data name="DescriptionCanDownloadMetadataFromWeb" xml:space="preserve">
<value>Dacă această bibliotecă media ar trebui să obțină metadatele elementelor sale prin descărcare de pe Internet sau nu.</value>
</data>
<data name="DescriptionEnabled" xml:space="preserve">
@@ -198,7 +198,7 @@
<data name="Documentary" xml:space="preserve">
<value>Documentar</value>
</data>
<data name="DownloadMetadataFromWeb" xml:space="preserve">
<data name="CanDownloadMetadataFromWeb" xml:space="preserve">
<value>Descarcă Metadate De Pe Web</value>
</data>
<data name="EBook" xml:space="preserve">
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -171,7 +171,7 @@
<data name="DescriptionDirectories" xml:space="preserve">
<value>Виберіть папки, що містять медіафайли цієї бібліотеки</value>
</data>
<data name="DescriptionDownloadMetadataFromWeb" xml:space="preserve">
<data name="DescriptionCanDownloadMetadataFromWeb" xml:space="preserve">
<value>Чи повинна ця медіатека отримувати метадані своїх елементів шляхом завантаження з Інтернету чи ні.</value>
</data>
<data name="DescriptionEnabled" xml:space="preserve">
@@ -198,7 +198,7 @@
<data name="Documentary" xml:space="preserve">
<value>Документальний фільм</value>
</data>
<data name="DownloadMetadataFromWeb" xml:space="preserve">
<data name="CanDownloadMetadataFromWeb" xml:space="preserve">
<value>Завантажити метадані з Інтернету</value>
</data>
<data name="EBook" xml:space="preserve">
@@ -171,7 +171,7 @@
<data name="DescriptionDirectories" xml:space="preserve">
<value>选择包含该图书馆媒体文件的文件夹</value>
</data>
<data name="DescriptionDownloadMetadataFromWeb" xml:space="preserve">
<data name="DescriptionCanDownloadMetadataFromWeb" xml:space="preserve">
<value>此媒体库是否应该从互联网下载其元素的元数据。</value>
</data>
<data name="DescriptionEnabled" xml:space="preserve">
@@ -198,7 +198,7 @@
<data name="Documentary" xml:space="preserve">
<value>纪录片</value>
</data>
<data name="DownloadMetadataFromWeb" xml:space="preserve">
<data name="CanDownloadMetadataFromWeb" xml:space="preserve">
<value>从网络下载元数据</value>
</data>
<data name="EBook" xml:space="preserve">
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
@@ -21,7 +21,7 @@
<data name="ItemsPerPage" xml:space="preserve">
<value>عدد العناصر في كل صفحة</value>
</data>
<data name="IgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="ShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>تجاهل بادئة "The" في أداة الاختيار الأبجدية</value>
</data>
<data name="Save" xml:space="preserve">
@@ -36,7 +36,7 @@
<data name="DescriptionItemsPerPage" xml:space="preserve">
<value>عدد عناصر المكتبة المعروضة في كل صفحة عند تفعيل ترقيم الصفحات.</value>
</data>
<data name="DescriptionIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="DescriptionShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>عند التفعيل، يتم تجميع عناصر المكتبة التي يبدأ عنوانها بـ "The" تحت الحرف الأول من الكلمة التالية في أداة الاختيار الأبجدية، على سبيل المثال "The Rasmus" تُدرج تحت حرف R.</value>
</data>
<data name="EnableThemeCaching" xml:space="preserve">
@@ -21,7 +21,7 @@
<data name="ItemsPerPage" xml:space="preserve">
<value>Elemente pro Seite</value>
</data>
<data name="IgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="ShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>"The"-Präfix für die Alpha-Auswahl ignorieren</value>
</data>
<data name="Save" xml:space="preserve">
@@ -36,7 +36,7 @@
<data name="DescriptionItemsPerPage" xml:space="preserve">
<value>Die Anzahl der Bibliothekselemente, die bei aktivierter Seitennummerierung auf jeder Seite angezeigt werden.</value>
</data>
<data name="DescriptionIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="DescriptionShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>Wenn aktiviert, werden Bibliothekselemente, deren Titel mit "The" beginnt, in der Alpha-Auswahl unter dem ersten Buchstaben des folgenden Wortes gruppiert, z. B. wird "The Rasmus" unter R aufgeführt.</value>
</data>
<data name="EnableThemeCaching" xml:space="preserve">
@@ -21,7 +21,7 @@
<data name="ItemsPerPage" xml:space="preserve">
<value>Items per page</value>
</data>
<data name="IgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="ShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>Ignore "The" prefix for the alpha picker</value>
</data>
<data name="Save" xml:space="preserve">
@@ -36,7 +36,7 @@
<data name="DescriptionItemsPerPage" xml:space="preserve">
<value>The number of library items displayed on each page when pagination is enabled.</value>
</data>
<data name="DescriptionIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="DescriptionShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>When enabled, library items whose title begins with "The" are grouped under the first letter of the following word in the alpha picker, e.g. "The Rasmus" is listed under R.</value>
</data>
<data name="EnableThemeCaching" xml:space="preserve">
@@ -21,7 +21,7 @@
<data name="ItemsPerPage" xml:space="preserve">
<value>Elementos por página</value>
</data>
<data name="IgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="ShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>Ignorar el prefijo "The" en el selector alfabético</value>
</data>
<data name="Save" xml:space="preserve">
@@ -36,7 +36,7 @@
<data name="DescriptionItemsPerPage" xml:space="preserve">
<value>El número de elementos de la biblioteca mostrados en cada página cuando la paginación está habilitada.</value>
</data>
<data name="DescriptionIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="DescriptionShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>Cuando está habilitado, los elementos de la biblioteca cuyo título comienza con "The" se agrupan bajo la primera letra de la palabra siguiente en el selector alfabético, por ejemplo, "The Rasmus" se lista bajo R.</value>
</data>
<data name="EnableThemeCaching" xml:space="preserve">
@@ -21,7 +21,7 @@
<data name="ItemsPerPage" xml:space="preserve">
<value>Éléments par page</value>
</data>
<data name="IgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="ShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>Ignorer le préfixe "The" dans le sélecteur alphabétique</value>
</data>
<data name="Save" xml:space="preserve">
@@ -36,7 +36,7 @@
<data name="DescriptionItemsPerPage" xml:space="preserve">
<value>Le nombre d'éléments de la bibliothèque affichés sur chaque page lorsque la pagination est activée.</value>
</data>
<data name="DescriptionIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="DescriptionShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>Lorsque cette option est activée, les éléments de la bibliothèque dont le titre commence par "The" sont regroupés sous la première lettre du mot suivant dans le sélecteur alphabétique, par exemple "The Rasmus" est répertorié sous R.</value>
</data>
<data name="EnableThemeCaching" xml:space="preserve">
@@ -21,7 +21,7 @@
<data name="ItemsPerPage" xml:space="preserve">
<value>Elementi per pagina</value>
</data>
<data name="IgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="ShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>Ignora il prefisso "The" nel selettore alfabetico</value>
</data>
<data name="Save" xml:space="preserve">
@@ -36,7 +36,7 @@
<data name="DescriptionItemsPerPage" xml:space="preserve">
<value>Il numero di elementi della libreria visualizzati su ogni pagina quando la paginazione è abilitata.</value>
</data>
<data name="DescriptionIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="DescriptionShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>Se abilitato, gli elementi della libreria il cui titolo inizia con "The" vengono raggruppati sotto la prima lettera della parola successiva nel selettore alfabetico, ad esempio "The Rasmus" è elencato sotto R.</value>
</data>
<data name="EnableThemeCaching" xml:space="preserve">
@@ -21,7 +21,7 @@
<data name="ItemsPerPage" xml:space="preserve">
<value>ページあたりの項目数</value>
</data>
<data name="IgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="ShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>アルファピッカーで「The」の接頭辞を無視する</value>
</data>
<data name="Save" xml:space="preserve">
@@ -36,7 +36,7 @@
<data name="DescriptionItemsPerPage" xml:space="preserve">
<value>ページネーションが有効な場合に各ページに表示されるライブラリの項目数。</value>
</data>
<data name="DescriptionIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="DescriptionShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>有効にすると、タイトルが「The」で始まるライブラリの項目は、アルファピッカーで次の単語の最初の文字の下にグループ化されます。たとえば「The Rasmus」は「R」の下に表示されます。</value>
</data>
<data name="EnableThemeCaching" xml:space="preserve">
@@ -21,7 +21,7 @@
<data name="ItemsPerPage" xml:space="preserve">
<value>Items per page</value>
</data>
<data name="IgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="ShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>Ignore "The" prefix for the alpha picker</value>
</data>
<data name="Save" xml:space="preserve">
@@ -36,7 +36,7 @@
<data name="DescriptionItemsPerPage" xml:space="preserve">
<value>The number of library items displayed on each page when pagination is enabled.</value>
</data>
<data name="DescriptionIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="DescriptionShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>When enabled, library items whose title begins with "The" are grouped under the first letter of the following word in the alpha picker, e.g. "The Rasmus" is listed under R.</value>
</data>
<data name="EnableThemeCaching" xml:space="preserve">
@@ -21,7 +21,7 @@
<data name="ItemsPerPage" xml:space="preserve">
<value>Elemente pe pagină</value>
</data>
<data name="IgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="ShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>Ignorați prefixul "The" pentru selectorul alfabetic</value>
</data>
<data name="Save" xml:space="preserve">
@@ -36,7 +36,7 @@
<data name="DescriptionItemsPerPage" xml:space="preserve">
<value>Numărul de elemente ale bibliotecii afișate pe fiecare pagină atunci când paginarea este activată.</value>
</data>
<data name="DescriptionIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="DescriptionShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>Când este activată, elementele bibliotecii al căror titlu începe cu "The" sunt grupate sub prima literă a cuvântului următor în selectorul alfabetic, de exemplu "The Rasmus" este listat sub R.</value>
</data>
<data name="EnableThemeCaching" xml:space="preserve">
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
@@ -21,7 +21,7 @@
<data name="ItemsPerPage" xml:space="preserve">
<value>Елементів на сторінці</value>
</data>
<data name="IgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="ShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>Ігнорувати префікс "The" в алфавітному покажчику</value>
</data>
<data name="Save" xml:space="preserve">
@@ -36,7 +36,7 @@
<data name="DescriptionItemsPerPage" xml:space="preserve">
<value>Кількість елементів бібліотеки, що відображаються на кожній сторінці за увімкненої розбивки на сторінки.</value>
</data>
<data name="DescriptionIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="DescriptionShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>За увімкнення елементи бібліотеки, назва яких починається з "The", групуються в алфавітному покажчику під першою літерою наступного слова, наприклад "The Rasmus" відображається під літерою R.</value>
</data>
<data name="EnableThemeCaching" xml:space="preserve">
@@ -21,7 +21,7 @@
<data name="ItemsPerPage" xml:space="preserve">
<value>每页项目数</value>
</data>
<data name="IgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="ShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>在字母选择器中忽略“The”前缀</value>
</data>
<data name="Save" xml:space="preserve">
@@ -36,7 +36,7 @@
<data name="DescriptionItemsPerPage" xml:space="preserve">
<value>启用分页时每页显示的库项目数。</value>
</data>
<data name="DescriptionIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<data name="DescriptionShouldIgnoreThePrefixForAlphaPicker" xml:space="preserve">
<value>启用后,标题以"The"开头的库项目将在字母选择器中按后一个词的首字母分组,例如"The Rasmus"会列在R下。</value>
</data>
<data name="EnableThemeCaching" xml:space="preserve">
@@ -170,15 +170,15 @@
</div>
<div class="form-row">
<div class="form-label">
<label asp-for="DownloadMetadataFromWeb">@_localizer["DownloadMetadataFromWeb"]</label>:
<label asp-for="CanDownloadMetadataFromWeb">@_localizer["CanDownloadMetadataFromWeb"]</label>:
</div>
<div class="form-field">
<label class="enlightenment-checkbox-label">
<input type="checkbox" asp-for="DownloadMetadataFromWeb" class="enlightenment-checkbox-hidden"/>
<input type="checkbox" asp-for="CanDownloadMetadataFromWeb" class="enlightenment-checkbox-hidden"/>
<span class="enlightenment-checkbox"></span>
</label>
</div>
<small class="form-label text-disabled form-description">@_localizer["DescriptionDownloadMetadataFromWeb"]</small>
<small class="form-label text-disabled form-description">@_localizer["DescriptionCanDownloadMetadataFromWeb"]</small>
</div>
<div class="form-row">
<div class="form-label">
@@ -251,7 +251,7 @@
const mediaDirectoriesFormTable = document.getElementById('add-media-directory-form-table');
const chkIsEnabled = form.querySelector('[name="IsEnabled"]');
const chkIsLocked = form.querySelector('[name="IsLocked"]');
const chkDownloadMetadataFromWeb = form.querySelector('[name="DownloadMetadataFromWeb"]');
const chkCanDownloadMetadataFromWeb = form.querySelector('[name="CanDownloadMetadataFromWeb"]');
const chkShouldSaveMetadataInMediaDirectories = form.querySelector('[name="ShouldSaveMetadataInMediaDirectories"]');
const chkShouldSkipUnchangedDirectoriesDuringScan = form.querySelector('[name="ShouldSkipUnchangedDirectoriesDuringScan"]');
@@ -271,7 +271,7 @@
})(),
IsEnabled: chkIsEnabled.checked,
IsLocked: chkIsLocked.checked,
DownloadMetadataFromWeb: chkDownloadMetadataFromWeb.checked,
CanDownloadMetadataFromWeb: chkCanDownloadMetadataFromWeb.checked,
ShouldSaveMetadataInMediaDirectories: chkShouldSaveMetadataInMediaDirectories.checked,
ShouldSkipUnchangedDirectoriesDuringScan: chkShouldSkipUnchangedDirectoriesDuringScan.checked
};
@@ -55,15 +55,15 @@
<!-- Alpha picker -->
<div class="form-row">
<div class="form-label">
<label asp-for="IgnoreThePrefixForAlphaPicker">@_localizer["IgnoreThePrefixForAlphaPicker"]</label>:
<label asp-for="ShouldIgnoreThePrefixForAlphaPicker">@_localizer["ShouldIgnoreThePrefixForAlphaPicker"]</label>:
</div>
<div class="form-field">
<label class="enlightenment-checkbox-label">
<input type="checkbox" asp-for="IgnoreThePrefixForAlphaPicker" class="enlightenment-checkbox-hidden" />
<input type="checkbox" asp-for="ShouldIgnoreThePrefixForAlphaPicker" class="enlightenment-checkbox-hidden" />
<span class="enlightenment-checkbox"></span>
</label>
</div>
<small class="form-label text-disabled form-description">@_localizer["DescriptionIgnoreThePrefixForAlphaPicker"]</small>
<small class="form-label text-disabled form-description">@_localizer["DescriptionShouldIgnoreThePrefixForAlphaPicker"]</small>
</div>
<!-- Theme caching -->
<div class="form-row">
@@ -94,8 +94,9 @@
const form = document.getElementById('user-settings-form');
const checkboxIsPaginationEnabled = document.getElementById('IsPaginationEnabled');
const inputItemsPerPage = document.getElementById('ItemsPerPage');
const checkboxIgnoreThePrefixForAlphaPicker = document.getElementById('IgnoreThePrefixForAlphaPicker');
const checkboxShouldIgnoreThePrefixForAlphaPicker = document.getElementById('ShouldIgnoreThePrefixForAlphaPicker');
const checkboxIsThemeCachingEnabled = document.getElementById('IsThemeCachingEnabled');
let shouldAggregateMetadataWhenMissing = false;
// toggle the enabled state of the items per page input based on the pagination checkbox
function updateItemsPerPageEnabledState() {
@@ -108,8 +109,9 @@
if (data) {
checkboxIsPaginationEnabled.checked = data.isPaginationEnabled === true;
inputItemsPerPage.value = data.itemsPerPage;
checkboxIgnoreThePrefixForAlphaPicker.checked = data.ignoreThePrefixForAlphaPicker === true;
checkboxShouldIgnoreThePrefixForAlphaPicker.checked = data.shouldIgnoreThePrefixForAlphaPicker === true;
checkboxIsThemeCachingEnabled.checked = data.isThemeCachingEnabled === true;
shouldAggregateMetadataWhenMissing = data.shouldAggregateMetadataWhenMissing === true;
updateItemsPerPageEnabledState();
}
}
@@ -119,8 +121,9 @@
const formData = {
IsPaginationEnabled: checkboxIsPaginationEnabled.checked,
ItemsPerPage: Number(inputItemsPerPage.value),
IgnoreThePrefixForAlphaPicker: checkboxIgnoreThePrefixForAlphaPicker.checked,
IsThemeCachingEnabled: checkboxIsThemeCachingEnabled.checked
ShouldIgnoreThePrefixForAlphaPicker: checkboxShouldIgnoreThePrefixForAlphaPicker.checked,
IsThemeCachingEnabled: checkboxIsThemeCachingEnabled.checked,
ShouldAggregateMetadataWhenMissing: shouldAggregateMetadataWhenMissing
};
const data = await callApiPostAsync('@_urlService.GetAbsoluteUrl(WebRoutes.Settings.UPDATE_USER_SETTINGS)', formData);
if (data && data.isUpdated === true)