One self-hosted app for your shows, movies and music.
HolyArrs 1.0.18 (#247)
CoderLuiidbfca3be89be
diff --git a/.github/readme/README.ar.md b/.github/readme/README.ar.mdindex 732af51..1c0037d 100644--- a/.github/readme/README.ar.md+++ b/.github/readme/README.ar.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17: رتّب مكتبتك حسب التقييم.** تعرض كل طريقة عرض تقييم كل عنوان أثناء الترتيب، من الصفوف إلى الملصقات وعلى هاتفك. [ما الجديد](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18: مظهر Minimal الجديد**، بملصقات صغيرة ومن دون صور كبيرة أو تشغيل تلقائي. ومعه 8 إصلاحات، منها الأنمي الذي يقسمه TMDB إلى جزأين. [ما الجديد](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> كل ملصق وإعلان وتقييم في HolyArrs لديك يأتي من خادم أشغّله وأدفع تكلفته بنفسي، ليبقى مجانيًا للجميع. إذا جعل HolyArrs سهرة الأفلام عندك أجمل قليلًا، فرعايتك تُبقي الأنوار مضاءة لنا جميعًا 💛>@@ -224,7 +224,7 @@ docker compose up -d| الوسم | استخدمه لـ || :----: | --- || `latest` | أحدث إصدار. |-| `1.0.17` | إصدار واحد بعينه. لا يتحرك أبدًا. |+| `1.0.18` | إصدار واحد بعينه. لا يتحرك أبدًا. |## الاستخدامdiff --git a/.github/readme/README.de.md b/.github/readme/README.de.mdindex cdd7064..7ef51df 100644--- a/.github/readme/README.de.md+++ b/.github/readme/README.de.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17: Sortiere deine Bibliothek nach Wertung.** Jede Ansicht zeigt beim Sortieren die Wertung jedes Titels, von Zeilen über Poster bis aufs Handy. [Was ist neu](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18: der neue Minimal-Look**, mit kleinen Postern und ohne große Fotos oder Autoplay. Dazu 8 Fehlerbehebungen, unter anderem für Anime, die TMDB in zwei Teile teilt. [Was ist neu](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> Jedes Poster, jeder Trailer und jede Bewertung in deinem HolyArrs kommt von einem Server, den ich selbst betreibe und bezahle, damit es für alle kostenlos bleibt. Wenn HolyArrs deinen Filmabend ein bisschen schöner gemacht hat, hält ein Sponsoring für uns alle das Licht an 💛>@@ -222,7 +222,7 @@ Die Images liegen auf Docker Hub als [`holyarrs/holyarrs`](https://hub.docker.co| Tag | Dafür nutzen || :----: | --- || `latest` | Die neueste Version. |-| `1.0.17` | Eine genaue Version. Sie ändert sich nie. |+| `1.0.18` | Eine genaue Version. Sie ändert sich nie. |## Verwendungdiff --git a/.github/readme/README.es.md b/.github/readme/README.es.mdindex 7cf9283..943fb83 100644--- a/.github/readme/README.es.md+++ b/.github/readme/README.es.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17: ordena tu biblioteca por puntuación.** Cada vista muestra la puntuación de cada título mientras ordenas, de Filas a Pósters y en tu móvil. [Novedades](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18: el nuevo aspecto Minimal**, con pósters pequeños y sin fotos grandes ni reproducción automática. Además, 8 arreglos, como el del anime que TMDB divide en dos partes. [Novedades](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> Cada póster, tráiler y puntuación de tu HolyArrs viene de un servidor que mantengo y pago yo mismo, para que siga siendo gratis para todos. Si HolyArrs hizo tu noche de películas un poco mejor, patrocinarlo mantiene las luces encendidas para todos 💛>@@ -222,7 +222,7 @@ Las imágenes están en Docker Hub como [`holyarrs/holyarrs`](https://hub.docker| Etiqueta | Para qué sirve || :----: | --- || `latest` | La versión más reciente. |-| `1.0.17` | Una versión exacta. Nunca se mueve. |+| `1.0.18` | Una versión exacta. Nunca se mueve. |## Usodiff --git a/.github/readme/README.fr.md b/.github/readme/README.fr.mdindex a3efa2e..84e3c1b 100644--- a/.github/readme/README.fr.md+++ b/.github/readme/README.fr.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17 : trie ta bibliothèque par note.** Chaque vue affiche la note de chaque titre pendant le tri, des lignes aux affiches jusqu'à ton téléphone. [Quoi de neuf](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18 : le nouveau look Minimal**, avec de petites affiches, sans grandes photos ni lecture automatique. Et 8 correctifs, dont celui des animes que TMDB coupe en deux parties. [Quoi de neuf](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> Chaque affiche, bande-annonce et note de ton HolyArrs vient d'un serveur que je fais tourner et que je paie moi-même, pour qu'il reste gratuit pour tout le monde. Si HolyArrs a rendu ta soirée film un peu meilleure, un sponsor garde la lumière allumée pour nous tous 💛>@@ -222,7 +222,7 @@ Les images sont sur Docker Hub sous le nom [`holyarrs/holyarrs`](https://hub.doc| Étiquette | À utiliser pour || :----: | --- || `latest` | La version la plus récente. |-| `1.0.17` | Une version précise. Elle ne bouge jamais. |+| `1.0.18` | Une version précise. Elle ne bouge jamais. |## Utilisationdiff --git a/.github/readme/README.hi.md b/.github/readme/README.hi.mdindex 6a92899..8ddc771 100644--- a/.github/readme/README.hi.md+++ b/.github/readme/README.hi.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17: अपनी लाइब्रेरी को स्कोर से सॉर्ट करें।** सॉर्ट करते समय हर व्यू में हर टाइटल का स्कोर दिखता है, रोज़ से पोस्टर्स तक और आपके फ़ोन पर भी। [क्या नया है](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18: नया Minimal लुक**, छोटे पोस्टर, बिना बड़ी फ़ोटो और बिना ऑटोप्ले। साथ में 8 सुधार, जिनमें TMDB पर दो हिस्सों में बँटे एनीमे भी शामिल हैं। [क्या नया है](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> आपके HolyArrs का हर पोस्टर, ट्रेलर और स्कोर एक ऐसे सर्वर से आता है जिसे मैं खुद चलाता हूँ और जिसका खर्च खुद उठाता हूँ, ताकि यह सबके लिए मुफ़्त रहे। अगर HolyArrs ने आपकी मूवी नाइट थोड़ी बेहतर बनाई है, तो स्पॉन्सर बनकर हम सबके लिए यह रोशनी जलाए रखिए 💛>@@ -222,7 +222,7 @@ NAS पर चला रहे हैं? देखिए [Unraid, Synology औ| टैग | किसके लिए || :----: | --- || `latest` | नवीनतम रिलीज़। |-| `1.0.17` | एक तय वर्ज़न। यह कभी नहीं बदलता। |+| `1.0.18` | एक तय वर्ज़न। यह कभी नहीं बदलता। |## इस्तेमालdiff --git a/.github/readme/README.it.md b/.github/readme/README.it.mdindex a1c635d..3697292 100644--- a/.github/readme/README.it.md+++ b/.github/readme/README.it.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17: ordina la tua libreria per voto.** Ogni vista mostra il voto di ogni titolo mentre ordini, dalle righe ai poster fino al telefono. [Novità](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18: il nuovo aspetto Minimal**, con locandine piccole e senza foto grandi né riproduzione automatica. In più 8 correzioni, tra cui gli anime che TMDB divide in due parti. [Novità](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> Ogni locandina, trailer e voto del tuo HolyArrs arriva da un server che gestisco e pago di tasca mia, così resta gratis per tutti. Se HolyArrs ha reso la tua serata film un po' più bella, una sponsorizzazione tiene le luci accese per tutti noi 💛>@@ -222,7 +222,7 @@ Le immagini sono su Docker Hub come [`holyarrs/holyarrs`](https://hub.docker.com| Tag | A cosa serve || :----: | --- || `latest` | La versione più recente. |-| `1.0.17` | Una versione esatta. Non cambia mai. |+| `1.0.18` | Una versione esatta. Non cambia mai. |## Utilizzodiff --git a/.github/readme/README.ja.md b/.github/readme/README.ja.mdindex 0f0ae43..a4611c6 100644--- a/.github/readme/README.ja.md+++ b/.github/readme/README.ja.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17: ライブラリをスコア順に並べ替え。** 並べ替え中はすべての表示で各タイトルのスコアが見えます。行表示からポスター、スマホまで。 [新着情報](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18: 新しい Minimal 表示。** 小さなポスターで、大きな写真も自動再生もありません。ほかに、TMDB で 2 つに分かれたアニメなど 8 件の修正。 [新着情報](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> HolyArrs のポスター、予告編、スコアはすべて、私が自分で運営し費用を払っているサーバーから届いています。だから誰でも無料で使えます。HolyArrs で映画の夜が少しでも楽しくなったなら、スポンサーになってみんなの明かりを灯し続けてください 💛>@@ -222,7 +222,7 @@ NAS をお使いですか。[Unraid、Synology などの NAS](https://docs.HolyA| タグ | 用途 || :----: | --- || `latest` | 最新のリリース。 |-| `1.0.17` | 特定の1つのバージョンです。動くことはありません。 |+| `1.0.18` | 特定の1つのバージョンです。動くことはありません。 |## 使い方diff --git a/.github/readme/README.ko.md b/.github/readme/README.ko.mdindex d21b48e..57a2383 100644--- a/.github/readme/README.ko.md+++ b/.github/readme/README.ko.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17: 라이브러리를 평점순으로 정렬하세요.** 정렬하는 동안 모든 보기에서 각 작품의 평점이 보여요. 행 보기부터 포스터, 휴대폰까지. [새 소식](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18: 새로운 Minimal 보기.** 작은 포스터에 큰 사진과 자동 재생이 없어요. 그 밖에 TMDB에서 두 부분으로 나뉜 애니메이션 등 8가지 수정. [새 소식](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> HolyArrs의 모든 포스터, 예고편, 평점은 제가 직접 운영하고 비용을 내는 서버에서 와요. 그래서 모두에게 무료로 유지돼요. HolyArrs 덕분에 영화 보는 밤이 조금 더 즐거워졌다면, 후원으로 우리 모두의 불을 계속 밝혀 주세요 💛>@@ -222,7 +222,7 @@ NAS를 쓰세요? [Unraid, Synology 및 기타 NAS](https://docs.HolyArrs.com/ru| 태그 | 용도 || :----: | --- || `latest` | 최신 릴리스. |-| `1.0.17` | 정확히 한 버전이에요. 절대 움직이지 않아요. |+| `1.0.18` | 정확히 한 버전이에요. 절대 움직이지 않아요. |## 사용법diff --git a/.github/readme/README.nl.md b/.github/readme/README.nl.mdindex 36e70c1..433f9e6 100644--- a/.github/readme/README.nl.md+++ b/.github/readme/README.nl.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17: sorteer je bibliotheek op score.** Elke weergave toont de score van elke titel terwijl je sorteert, van rijen tot posters en op je telefoon. [Wat is er nieuw](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18: de nieuwe Minimal-look**, met kleine posters en zonder grote foto's of autoplay. Plus 8 oplossingen, zoals voor anime die TMDB in twee delen splitst. [Wat is er nieuw](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> Elke poster, trailer en score in je HolyArrs komt van een server die ik zelf draai en betaal, zodat het voor iedereen gratis blijft. Heeft HolyArrs je filmavond een beetje beter gemaakt? Met een sponsor blijven de lichten aan voor ons allemaal 💛>@@ -222,7 +222,7 @@ De images staan op Docker Hub als [`holyarrs/holyarrs`](https://hub.docker.com/r| Tag | Gebruik het voor || :----: | --- || `latest` | De nieuwste versie. |-| `1.0.17` | Eén exacte versie. Die verandert nooit. |+| `1.0.18` | Eén exacte versie. Die verandert nooit. |## Gebruikdiff --git a/.github/readme/README.pl.md b/.github/readme/README.pl.mdindex a2f5fde..4e6257c 100644--- a/.github/readme/README.pl.md+++ b/.github/readme/README.pl.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17: sortuj bibliotekę według oceny.** Każdy widok pokazuje ocenę każdego tytułu podczas sortowania, od wierszy po plakaty i telefon. [Co nowego](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18: nowy wygląd Minimal**, z małymi plakatami, bez dużych zdjęć i autoodtwarzania. Do tego 8 poprawek, m.in. dla anime, które TMDB dzieli na dwie części. [Co nowego](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> Każdy plakat, zwiastun i ocena w twoim HolyArrs pochodzą z serwera, który sam utrzymuję i opłacam, żeby był darmowy dla wszystkich. Jeśli HolyArrs choć trochę umilił ci wieczór z filmem, sponsoring pozwala utrzymać to światło dla nas wszystkich 💛>@@ -222,7 +222,7 @@ Image'e są na Docker Hub jako [`holyarrs/holyarrs`](https://hub.docker.com/r/ho| Tag | Do czego użyć || :----: | --- || `latest` | Najnowsza wersja. |-| `1.0.17` | Jedna dokładna wersja. Nigdy się nie zmienia. |+| `1.0.18` | Jedna dokładna wersja. Nigdy się nie zmienia. |## Użyciediff --git a/.github/readme/README.pt-BR.md b/.github/readme/README.pt-BR.mdindex 53353f8..3c128ce 100644--- a/.github/readme/README.pt-BR.md+++ b/.github/readme/README.pt-BR.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17: ordene sua biblioteca por nota.** Toda visualização mostra a nota de cada título enquanto você ordena, das linhas aos pôsteres e no celular. [Novidades](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18: o novo visual Minimal**, com pôsteres pequenos e sem fotos grandes nem reprodução automática. E mais 8 correções, como a dos animes que o TMDB divide em duas partes. [Novidades](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> Cada pôster, trailer e nota do seu HolyArrs vem de um servidor que eu mantenho e pago do meu bolso, para que continue grátis para todo mundo. Se o HolyArrs deixou sua noite de filme um pouco melhor, patrocinar mantém as luzes acesas para todos nós 💛>@@ -222,7 +222,7 @@ As imagens ficam no Docker Hub como [`holyarrs/holyarrs`](https://hub.docker.com| Tag | Use para || :----: | --- || `latest` | A versão mais recente. |-| `1.0.17` | Uma versão exata. Nunca muda. |+| `1.0.18` | Uma versão exata. Nunca muda. |## Usodiff --git a/.github/readme/README.ru.md b/.github/readme/README.ru.mdindex 36e757a..d2b0131 100644--- a/.github/readme/README.ru.md+++ b/.github/readme/README.ru.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17: сортируй библиотеку по оценке.** Каждый вид показывает оценку каждого тайтла во время сортировки, от строк до постеров и на телефоне. [Что нового](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18: новый вид Minimal**, с маленькими постерами, без больших фото и автовоспроизведения. И ещё 8 исправлений, в том числе для аниме, которое TMDB делит на две части. [Что нового](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> Каждый постер, трейлер и оценка в твоём HolyArrs приходят с сервера, который я держу и оплачиваю сам, чтобы он оставался бесплатным для всех. Если HolyArrs сделал твой киновечер чуть лучше, спонсорство помогает держать свет включённым для всех нас 💛>@@ -222,7 +222,7 @@ HolyArrs только читает ваши старые приложения и| Тег | Для чего || :----: | --- || `latest` | Самая новая версия. |-| `1.0.17` | Одна точная версия. Никогда не сдвигается. |+| `1.0.18` | Одна точная версия. Никогда не сдвигается. |## Использованиеdiff --git a/.github/readme/README.tr.md b/.github/readme/README.tr.mdindex 8da59e1..cd4931d 100644--- a/.github/readme/README.tr.md+++ b/.github/readme/README.tr.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17: Kitaplığını puana göre sırala.** Sıralarken her görünüm her başlığın puanını gösterir; satırlardan afişlere, telefonuna kadar. [Yenilikler](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18: yeni Minimal görünüm**; küçük afişler, büyük fotoğraf ve otomatik oynatma yok. Ayrıca TMDB'nin ikiye böldüğü animeler dahil 8 düzeltme. [Yenilikler](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> HolyArrs'ındaki her afiş, fragman ve puan, kendim çalıştırıp ödediğim bir sunucudan geliyor; böylece herkes için ücretsiz kalıyor. HolyArrs film gecene biraz güzellik kattıysa, sponsor olmak hepimiz için ışıkları açık tutar 💛>@@ -222,7 +222,7 @@ NAS mı kullanıyorsun? [Unraid, Synology ve diğer NAS cihazları](https://docs| Etiket | Ne için kullanılır || :----: | --- || `latest` | En yeni sürüm. |-| `1.0.17` | Tam olarak tek bir sürüm. Asla değişmez. |+| `1.0.18` | Tam olarak tek bir sürüm. Asla değişmez. |## Kullanımdiff --git a/.github/readme/README.uk.md b/.github/readme/README.uk.mdindex b14f7ba..1e0ceb9 100644--- a/.github/readme/README.uk.md+++ b/.github/readme/README.uk.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17: сортуй бібліотеку за оцінкою.** Кожен вигляд показує оцінку кожного тайтлу під час сортування, від рядків до постерів і на телефоні. [Що нового](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18: новий вигляд Minimal**, з маленькими постерами, без великих фото й автовідтворення. І ще 8 виправлень, зокрема для аніме, яке TMDB ділить на дві частини. [Що нового](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> Кожен постер, трейлер і оцінка у твоєму HolyArrs приходять із сервера, який я тримаю й оплачую сам, щоб він лишався безкоштовним для всіх. Якщо HolyArrs зробив твій кіновечір трохи кращим, спонсорство тримає світло увімкненим для всіх нас 💛>@@ -222,7 +222,7 @@ HolyArrs лише читає твої старі застосунки й ніч| Тег | Для чого || :----: | --- || `latest` | Найновіша версія. |-| `1.0.17` | Одна точна версія. Вона ніколи не змінюється. |+| `1.0.18` | Одна точна версія. Вона ніколи не змінюється. |## Використанняdiff --git a/.github/readme/README.zh-CN.md b/.github/readme/README.zh-CN.mdindex 31e64b9..a77a00d 100644--- a/.github/readme/README.zh-CN.md+++ b/.github/readme/README.zh-CN.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17:按评分排序你的媒体库。** 排序时,每种视图都会显示每个作品的评分,从列表到海报,再到手机。 [新功能](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18:全新的 Minimal 外观**,小海报,没有大图,也不自动播放。另有 8 项修复,包括被 TMDB 分成两部分的动画。 [新功能](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> 你的 HolyArrs 里每一张海报、每一段预告片和每一个评分,都来自我自己运营、自己付费的服务器,所以它对所有人都免费。如果 HolyArrs 让你的电影之夜更好了一点,赞助一下,就能为我们所有人留着这盏灯 💛>@@ -222,7 +222,7 @@ HolyArrs 只读取你的旧应用,不会改动它们里面的任何东西,| 标签 | 用途 || :----: | --- || `latest` | 最新版本。 |-| `1.0.17` | 固定的某一个版本,永远不会变。 |+| `1.0.18` | 固定的某一个版本,永远不会变。 |## 用法diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 65d46bd..469cebb 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,23 @@All notable changes to HolyArrs are listed here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow [Semantic Versioning](https://semver.org/).+## 1.0.18++### Added++- A Minimal look with small posters and no big photos or autoplay. ([#119](https://github.com/HolyArrs/HolyArrs/issues/119))++### Fixed++- Anime that TMDB keeps as one long season gets its second half too. ([#234](https://github.com/HolyArrs/HolyArrs/issues/234))+- Grabs from sites behind Cloudflare, like NZBFinder, go through. ([#231](https://github.com/HolyArrs/HolyArrs/issues/231))+- A Library folder can be removed once no title uses it. ([#235](https://github.com/HolyArrs/HolyArrs/issues/235))+- Changing good enough on a quality set re-checks your Library. ([#236](https://github.com/HolyArrs/HolyArrs/issues/236))+- The Home downloads card counts torrents your old apps added. ([#237](https://github.com/HolyArrs/HolyArrs/issues/237))+- Importing from old apps checks folder paths and brings over wanted titles. ([#238](https://github.com/HolyArrs/HolyArrs/issues/238))+- Rescan links files in a show's folder by season and episode. ([#241](https://github.com/HolyArrs/HolyArrs/issues/241))+- An empty Library shows the right add button on each page. ([#208](https://github.com/HolyArrs/HolyArrs/issues/208))+## 1.0.17### Addeddiff --git a/README.md b/README.mdindex 3e65855..7e5bde1 100644--- a/README.md+++ b/README.md@@ -21,9 +21,9 @@<p align="center"><a href="https://news.ycombinator.com/item?id=50439000"><img src="https://hackergit.org/badge/HolyArrs/HolyArrs.svg?style=rank" alt="#1 on Show HN" width="250" height="55"></a></p>> [!NOTE]-> **HolyArrs 1.0.17: sort your Library by Score.** Every view shows each title's score while you sort, from Rows to Posters to your phone. [See what's new](https://holyarrs.com/whats-new/)+> **HolyArrs 1.0.18: a new Minimal look**, with small posters and no big photos or autoplay. Plus 8 fixes, including anime that TMDB splits into two parts. [See what's new](https://holyarrs.com/whats-new/)>-> <img src="https://github.com/user-attachments/assets/497be538-df38-4325-ab63-5ac51c273528" alt="HolyArrs 1.0.17" width="100%">+> <img src="https://github.com/user-attachments/assets/f7e6987d-33eb-4fec-a8fe-ce2c2e264cdf" alt="HolyArrs 1.0.18" width="100%">> Every poster, trailer and score in your HolyArrs comes from a server I run and pay for myself, so it stays free for everyone. If HolyArrs made movie night a little better, a sponsor keeps the lights on for all of us 💛>@@ -222,7 +222,7 @@ Images live on Docker Hub as [`holyarrs/holyarrs`](https://hub.docker.com/r/holy| Tag | Use it for || :----: | --- || `latest` | The newest release. |-| `1.0.17` | One exact version. It never moves. |+| `1.0.18` | One exact version. It never moves. |## Usagediff --git a/VERSION b/VERSIONindex 8fc77d0..f8f3c08 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-1.0.17+1.0.18diff --git a/app/backend/cmd/holyarrs/pickrules_test.go b/app/backend/cmd/holyarrs/pickrules_test.goindex 09f8a1f..42d471a 100644--- a/app/backend/cmd/holyarrs/pickrules_test.go+++ b/app/backend/cmd/holyarrs/pickrules_test.go@@ -14,6 +14,7 @@ import ("github.com/HolyArrs/holyarrs/app/backend/internal/mediafiles""github.com/HolyArrs/holyarrs/app/backend/internal/core/database"+ domain "github.com/HolyArrs/holyarrs/app/backend/internal/core/model")type pickRulesDetail struct {@@ -56,13 +57,29 @@ func ruleByName(t *testing.T, base, name string) downloads.PickRulesView {return downloads.PickRulesView{}}+// recheckJobs counts the good enough re-check Jobs queued for a Pick rules set.+func recheckJobs(t *testing.T, s *database.Store, id int64) int {+ t.Helper()+ js, err := database.Select[domain.Job](context.Background(), s.Read(), "jobs", "kind = ?", library.KindRecheckPickRules)+ if err != nil {+ t.Fatal(err)+ }+ n := 0+ for _, j := range js {+ if j.Subject != nil && j.Subject.ID == id {+ n+++ }+ }+ return n+}+// route: POST /api/v1/pick-rules// route: GET /api/v1/pick-rules/{id}// route: PUT /api/v1/pick-rules/{id}// route: DELETE /api/v1/pick-rules/{id}func TestCreateEditDeletePickRules(t *testing.T) {t.Parallel()- srv, _, _ := libSetup(t)+ srv, s, _ := libSetup(t)var p pickRulesDetail_ = json.Unmarshal(do(t, "POST", srv.URL+"/api/v1/pick-rules", ruleJSON(t, "Small files", []string{"movie"}, mediafiles.GoodEveryday()), 201), &p)if p.ID == 0 || p.Name != "Small files" || p.Revision != 1 || p.Preset || len(p.Body.Steps) == 0 {@@ -83,6 +100,10 @@ func TestCreateEditDeletePickRules(t *testing.T) {if v := ruleByName(t, srv.URL, "Smaller files"); v.InUse != 0 {t.Fatalf("list in_use %+v", v)}+ // Saving queues the good enough re-check of the titles that use the set.+ if n := recheckJobs(t, s, p.ID); n != 1 {+ t.Fatalf("re-check jobs after a save: %d, want 1", n)+ }do(t, "DELETE", path, "", 204)do(t, "GET", path, "", 404)do(t, "PUT", path, ruleJSON(t, "x", []string{"movie"}, b), 404)diff --git a/app/backend/cmd/holyarrs/scale_combined_test.go b/app/backend/cmd/holyarrs/scale_combined_test.goindex 2d04b4d..6777a5f 100644--- a/app/backend/cmd/holyarrs/scale_combined_test.go+++ b/app/backend/cmd/holyarrs/scale_combined_test.go@@ -477,12 +477,13 @@ func TestCombinedScaleFixtureAndAuthenticatedRescan(t *testing.T) {if err := rows.Close(); err != nil {t.Fatal(err)}- wantFound := []string{- "Fixture Movie 0000/Own.Unmatched.Movie.Extra.mkv",- "Fixture Show 0000/Season 1/Fixture.Show.0000.S01E06.Own.Unknown.mkv",+ // The show file names an episode that is still empty, so the rescan links it.+ if len(foundPaths) != 1 || foundPaths[0] != "Fixture Movie 0000/Own.Unmatched.Movie.Extra.mkv" {+ t.Fatalf("found paths %q", foundPaths)}- if len(foundPaths) != len(wantFound) || foundPaths[0] != wantFound[0] || foundPaths[1] != wantFound[1] {- t.Fatalf("found paths %q, want %q", foundPaths, wantFound)+ var linked int+ if err := control.Store.Read().QueryRow(`SELECT count(*) FROM files WHERE origin = 'adopted' AND relative_path = 'Fixture Show 0000/Season 1/Fixture.Show.0000.S01E06.Own.Unknown.mkv'`).Scan(&linked); err != nil || linked != 1 {+ t.Fatalf("rescan did not link the S01E06 file: %d %v", linked, err)}if streams.Count() != 2 || streams.RescanEvents() != 2 {t.Fatalf("live clients=%d rescan events=%d", streams.Count(), streams.RescanEvents())diff --git a/app/backend/cmd/holyarrs/showroutes_test.go b/app/backend/cmd/holyarrs/showroutes_test.goindex 457ac76..e31c670 100644--- a/app/backend/cmd/holyarrs/showroutes_test.go+++ b/app/backend/cmd/holyarrs/showroutes_test.go@@ -41,7 +41,7 @@ func TestShowsAPI(t *testing.T) {_ = json.Unmarshal(do(t, "POST", u+"/shows", `{"id":"tmdb:100","seasons":"latest","new_seasons":"none"}`, 201), &add)sv := add.Title.Showif add.Title.Kind != "show" || add.JobID == 0 || len(add.Title.Slots) != 0 || sv.DetailsSource != "tmdb" || sv.EpisodeOrder != "aired" ||- sv.SeasonChoice != "latest" || sv.NewSeasons != "none" || sv.Episodes != 5 || len(sv.Seasons) != 3 || sv.NotOutYet != 2 {+ sv.SeasonChoice != "latest" || sv.NewSeasons != "none" || sv.Episodes != 4 || len(sv.Seasons) != 3 || sv.NotOutYet != 2 {t.Fatalf("added %+v", add)}id := add.Title.IDdiff --git a/app/backend/cmd/holyarrs/sources.go b/app/backend/cmd/holyarrs/sources.goindex 1a6ea12..be73712 100644--- a/app/backend/cmd/holyarrs/sources.go+++ b/app/backend/cmd/holyarrs/sources.go@@ -15,8 +15,8 @@ import ("github.com/HolyArrs/holyarrs/app/backend/internal/metadata")-// showSources are the show details sources: TMDB and TVmaze through the-// metadata server. TVDB is off; TVDB ids are still found through these two.+// showSources are the show details sources: TMDB (with anime release+// numbers) and TVmaze through the metadata server. TVDB is off; TVDB ids are still found through these two.// HOLYARRS_TVMAZE_URL points at a stand-in (tests); a// TVmaze stand-in is asked directly, and HOLYARRS_DIRECT_SOURCES=1// (developers only) keeps the real TVmaze behind the server for TVDB and@@ -31,7 +31,7 @@ func showSources(v *secrets.Vault, hosted *metadata.Hosted) metadata.ShowSourcesmaze = hosted.Service.Shows("tvmaze", direct)}return metadata.ShowSources{- "tmdb": hosted.TMDB(),+ "tmdb": hosted.Service.AnimeShows(hosted.TMDB()),"tvmaze": maze,}}diff --git a/app/backend/cmd/holyarrs/sources_test.go b/app/backend/cmd/holyarrs/sources_test.goindex bce83db..c90467e 100644--- a/app/backend/cmd/holyarrs/sources_test.go+++ b/app/backend/cmd/holyarrs/sources_test.go@@ -29,6 +29,9 @@ func TestShowSourcesHostedUnlessStandIn(t *testing.T) {if isDirect != c.wantDirect {t.Errorf("TVMAZE_URL=%q DIRECT_SOURCES=%q: direct TVmaze = %v, want %v", c.url, c.direct, isDirect, c.wantDirect)}+ if _, bare := src["tmdb"].(*metadata.TMDB); bare {+ t.Errorf("TVMAZE_URL=%q: the TMDB source skips anime release numbers", c.url)+ }if src["tmdb"] == nil || src["tvdb"] != nil {t.Errorf("TVMAZE_URL=%q: want tmdb and no tvdb source", c.url)}diff --git a/app/backend/cmd/holyarrs/trash_test.go b/app/backend/cmd/holyarrs/trash_test.goindex 657ce27..78e8d73 100644--- a/app/backend/cmd/holyarrs/trash_test.go+++ b/app/backend/cmd/holyarrs/trash_test.go@@ -17,7 +17,7 @@ import (// route: GET /api/v1/trash/profiles// route: POST /api/v1/pick-rules/{id}/trashfunc TestTrashProfileApplied(t *testing.T) {- srv, _, _ := lbLibSetup(t)+ srv, st, _ := lbLibSetup(t)t.Cleanup(func() { mediafiles.SetOwnTraits(nil) })old := downloads.TrashClientc := library.NewTrashGuides()@@ -53,6 +53,9 @@ func TestTrashProfileApplied(t *testing.T) {if res.Added != 3 || len(res.Scored) != 3 || len(res.Skipped) != 1 || res.Skipped[0].Kinds[0] != "language" {t.Fatalf("first sync: %+v", res)}+ if n := recheckJobs(t, st, p.ID); n != 1 {+ t.Fatalf("re-check jobs after applying a profile: %d, want 1", n)+ }_ = json.Unmarshal(lbDo(t, "POST", path, `{"app":"sonarr","profile_id":"p1"}`, 200), &res)if res.Added != 0 || res.Updated != 3 {t.Fatalf("second sync: %+v", res)diff --git a/app/backend/internal/core/jobs/pools.go b/app/backend/internal/core/jobs/pools.goindex 755d57f..9d61b0c 100644--- a/app/backend/internal/core/jobs/pools.go+++ b/app/backend/internal/core/jobs/pools.go@@ -53,6 +53,7 @@ var kindPools = map[string]Pool{"migrate_undo": PoolHeavy,"rescan_library": PoolHeavy,"subtitle_look": PoolHeavy,+ "recheck_pick_rules": PoolHeavy,}// Pool is a group of workers. Core work (health checks) never waits behinddiff --git a/app/backend/internal/core/parts/table_screens.go b/app/backend/internal/core/parts/table_screens.goindex 44a349b..e0bf314 100644--- a/app/backend/internal/core/parts/table_screens.go+++ b/app/backend/internal/core/parts/table_screens.go@@ -122,6 +122,7 @@ var jobOwners = map[string]Owner{"rename_files": Media,"clean_holding": Media,"rescan_library": Media,+ "recheck_pick_rules": Media,// The title (or Library folder) the Job is about decides."search_slot": ByTitle,"grab": ByTitle,diff --git a/app/backend/internal/core/releasename/show.go b/app/backend/internal/core/releasename/show.goindex e9f754c..14e58a5 100644--- a/app/backend/internal/core/releasename/show.go+++ b/app/backend/internal/core/releasename/show.go@@ -20,9 +20,12 @@ var (reComplete = regexp.MustCompile(`(?i)\bcomplete` + sep + `(?:series|show)\b`)reOVA = regexp.MustCompile(`(?i)\b(?:OVA|OAD|SP)` + sep + `?(\d{1,3})\b`)reSeasonDash = regexp.MustCompile(`(?i)\bS(\d{1,2})\s+-\s+(\d{1,4})\b`)- reAbsolute = regexp.MustCompile(`\s-\s(\d{1,4})(?:v(\d))?(?:\s?-\s?(\d{1,4}))?(?:\s|$|[\[(])`)- reSeason = regexp.MustCompile(`(?i)\b(?:S|Season` + sep + `?)(\d{1,2})\b`)- rePart = regexp.MustCompile(`(?i)\b(?:Part|Pt)` + sep + `?(\d{1,2}|[IVX]{1,5})\b`)+ // "Season 2 - 05" and "2nd Season - 05". The episode has two digits or+ // more, so "Season 1 - 2" (seasons) and "Season 2 - 1080p" stay out.+ reSeasonWordDash = regexp.MustCompile(`(?i)\b(?:Season` + sep + `?(\d{1,2})|(\d{1,2})(?:st|nd|rd|th)` + sep + `Season)\s+-\s+(\d{2,4})(?:v(\d))?(?:\s?[-~]\s?(\d{2,4}))?\b`)+ reAbsolute = regexp.MustCompile(`\s-\s(\d{1,4})(?:v(\d))?(?:\s?-\s?(\d{1,4}))?(?:\s|$|[\[(])`)+ reSeason = regexp.MustCompile(`(?i)\b(?:S|Season` + sep + `?)(\d{1,2})\b`)+ rePart = regexp.MustCompile(`(?i)\b(?:Part|Pt)` + sep + `?(\d{1,2}|[IVX]{1,5})\b`))var roman = map[string]int{"I": 1, "II": 2, "III": 3, "IV": 4, "V": 5, "VI": 6, "VII": 7, "VIII": 8, "IX": 9, "X": 10,@@ -114,6 +117,23 @@ func findShow(s string, anime, show bool) (showHit, int, int, bool) {season, ep := atoi(s[m[2]:m[3]]), atoi(s[m[4]:m[5]])return showHit{kind: KindEpisode, n: ShowNumbers{Seasons: []int{season}, Episodes: []int{ep}}}, m[0], m[1], true}+ if m := reSeasonWordDash.FindStringSubmatchIndex(s); m != nil {+ season := m[2:4]+ if m[2] < 0 {+ season = m[4:6]+ }+ h := showHit{kind: KindEpisode, n: ShowNumbers{Seasons: []int{atoi(s[season[0]:season[1]])}, Episodes: []int{atoi(s[m[6]:m[7]])}}}+ if m[8] >= 0 {+ h.fix = atoi(s[m[8]:m[9]]) - 1+ }+ // "Season 2 - 01-12" is a batch of that season.+ if m[10] >= 0 {+ if sp := span(h.n.Episodes[0], atoi(s[m[10]:m[11]])); len(sp) > 1 {+ h.kind, h.n.Episodes = KindMultiEpisode, sp+ }+ }+ return h, m[0], m[1], true+ }// A running number only for an anime name or a show search, never a year.if m := reAbsolute.FindStringSubmatchIndex(s); m != nil && (anime || show) && !isYearNum(s[m[2]:m[3]]) {a := atoi(s[m[2]:m[3]])diff --git a/app/backend/internal/core/releasename/show_test.go b/app/backend/internal/core/releasename/show_test.goindex 2d5e67f..c574c4a 100644--- a/app/backend/internal/core/releasename/show_test.go+++ b/app/backend/internal/core/releasename/show_test.go@@ -29,7 +29,7 @@ type ShowCase struct {func sn(seasons []int, eps ...int) ShowNumbers { return ShowNumbers{Seasons: seasons, Episodes: eps} }func s1(s int) []int { return []int{s} }-// ShowCases holds S01 to S36, A01 to A14 and T27.+// ShowCases holds S01 to S36, A01 to A18 and T27.var ShowCases = []ShowCase{{ID: "S01", Name: "Copper.Valley.S01E01.1080p.WEB-DL.DDP5.1.H.264-QUILL", Kind: KindEpisode, Title: "Copper Valley", Show: sn(s1(1), 1), Resolution: 1080, Source: "web_dl", Codec: "h264", Audio: "eac3 5.1", Group: "QUILL"},{ID: "S02", Name: "Copper.Valley.S01E02.720p.HDTV.x264-OXBOW", Kind: KindEpisode, Title: "Copper Valley", Show: sn(s1(1), 2), Resolution: 720, Source: "tv", Codec: "h264", Group: "OXBOW"},@@ -75,6 +75,9 @@ var ShowCases = []ShowCase{{ID: "A05", Name: "[Hoshizora] Starfall Kitchen - 101-112 [1080p] (Batch)", Kind: KindAbsolute, Title: "Starfall Kitchen", Show: ShowNumbers{Absolute: span(101, 112)}, Resolution: 1080, Source: "web_dl", SrcConf: Likely, Group: "Hoshizora"},{ID: "A06", Name: "[Hoshizora] Starfall Kitchen - OVA 02 [1080p]", Kind: KindSpecial, Title: "Starfall Kitchen", Show: ShowNumbers{Seasons: s1(0), Episodes: []int{2}, Special: true}, Resolution: 1080, Source: "web_dl", SrcConf: Likely, Group: "Hoshizora"},{ID: "A07", Name: "[Kumomaru] Starfall Kitchen S2 - 07 [720p]", Kind: KindEpisode, Title: "Starfall Kitchen", Show: sn(s1(2), 7), Resolution: 720, Source: "web_dl", SrcConf: Likely, Group: "Kumomaru"},+ {ID: "A16", Name: "[Erai-raws] Mashle 2nd Season - 05 [1080p]", Kind: KindEpisode, Title: "Mashle", Show: sn(s1(2), 5), Resolution: 1080, Source: "web_dl", SrcConf: Likely, Group: "Erai-raws"},+ {ID: "A17", Name: "[Kumomaru] Mashle Season 2 - 05 [1080p]", Kind: KindEpisode, Title: "Mashle", Show: sn(s1(2), 5), Resolution: 1080, Source: "web_dl", SrcConf: Likely, Group: "Kumomaru"},+ {ID: "A18", Name: "[Kumomaru] Starfall Kitchen 3rd Season - 12v2 [720p]", Kind: KindEpisode, Title: "Starfall Kitchen", Show: sn(s1(3), 12), Resolution: 720, Source: "web_dl", SrcConf: Likely, Group: "Kumomaru", Fix: 1},{ID: "A08", Name: "[Hoshizora] Kaze no Tsubasa - 03 [1080p][Dual Audio]", Kind: KindAbsolute, Title: "Kaze no Tsubasa", Show: ShowNumbers{Absolute: []int{3}}, Resolution: 1080, Source: "web_dl", SrcConf: Likely, Group: "Hoshizora", Flags: []string{"dual"}},{ID: "A09", Name: "[Kumomaru] 風の翼 - 04 [1080p]", Kind: KindAbsolute, Title: "風の翼", Show: ShowNumbers{Absolute: []int{4}}, Resolution: 1080, Source: "web_dl", SrcConf: Likely, Group: "Kumomaru"},{ID: "A10", Name: "[Hoshizora] Starfall Kitchen - 112 [1080p][HardSub]", Kind: KindAbsolute, Title: "Starfall Kitchen", Show: ShowNumbers{Absolute: []int{112}}, Resolution: 1080, Source: "web_dl", SrcConf: Likely, Group: "Hoshizora", Flags: []string{"hardcoded_subs"}},@@ -143,6 +146,35 @@ func TestShowNames(t *testing.T) {}}+// "Season 1 - 2" is a range of seasons and "Season 2 - 1080p" a quality, not+// an episode; a plain "- 17" stays a running number.+func TestSeasonDashNeedsEpisode(t *testing.T) {+ for _, c := range []struct {+ name, kind, title string+ show ShowNumbers+ }{+ {"[Kumomaru] Starfall Kitchen Season 1 - 2 [Batch]", KindAbsolute, "Starfall Kitchen Season 1", ShowNumbers{Absolute: []int{2}}},+ {"[Kumomaru] Starfall Kitchen Season 2 - 1080p", KindSeasonPack, "Starfall Kitchen", sn(s1(2))},+ {"[SubsPlease] Mashle - 17 (1080p)", KindAbsolute, "Mashle", ShowNumbers{Absolute: []int{17}}},+ // A batch of the season is every episode of it, not the first one.+ {"[Kumomaru] Mashle Season 2 - 01-12 [1080p]", KindMultiEpisode, "Mashle", sn(s1(2), span(1, 12)...)},+ {"[Kumomaru] Mashle Season 2 - 01 - 12 [1080p]", KindMultiEpisode, "Mashle", sn(s1(2), span(1, 12)...)},+ {"[Erai-raws] Mashle 2nd Season - 01 ~ 12 [1080p]", KindMultiEpisode, "Mashle", sn(s1(2), span(1, 12)...)},+ {"[Erai-raws] Mashle 2nd Season - 05 [1080p]", KindEpisode, "Mashle", sn(s1(2), 5)},+ } {+ p := Parse(c.name, Hints{Show: true})+ if p.Kind.Value != c.kind || p.Show == nil || p.Title.Value != c.title {+ t.Errorf("%s: kind %q title %q %+v", c.name, p.Kind.Value, p.Title.Value, p.Show)+ continue+ }+ got := *p.Show+ got.Conf = ""+ if !reflect.DeepEqual(got, c.show) {+ t.Errorf("%s: numbers %+v, want %+v", c.name, got, c.show)+ }+ }+}+// Names that look a little like shows but are movies.func TestShowLookalikesAreMovies(t *testing.T) {for _, n := range []string{diff --git a/app/backend/internal/downloads/fake_indexer_dns_test.go b/app/backend/internal/downloads/fake_indexer_dns_test.gonew file mode 100644index 0000000..ef1ba02--- /dev/null+++ b/app/backend/internal/downloads/fake_indexer_dns_test.go@@ -0,0 +1,17 @@+package downloads++import "net"++// The test Releases link to http://fake-indexer/, which no resolver knows. A+// qBittorrent grab reads that link first, and on Windows the failed lookup of a+// one-word name takes about 3 seconds, on nearly every test here. Pointing the+// name at a loopback address the grab dialer refuses gives the same failed read+// at once. fakeDNS swaps this out and puts it back.+func init() {+ grabDial = func(addr string) string {+ if host, _, err := net.SplitHostPort(addr); err == nil && host == "fake-indexer" {+ return "127.0.0.1:9"+ }+ return addr+ }+}diff --git a/app/backend/internal/downloads/grab_fetch.go b/app/backend/internal/downloads/grab_fetch.goindex 9fdffe9..2ea8ac3 100644--- a/app/backend/internal/downloads/grab_fetch.go+++ b/app/backend/internal/downloads/grab_fetch.go@@ -11,6 +11,7 @@ import ("time""github.com/HolyArrs/holyarrs/app/backend/internal/core/outbound"+ "github.com/HolyArrs/holyarrs/app/backend/internal/sources")var errLinkLocal = releaseRefused{`the Release link leads to a local or blocked address; if this Source is on your home network, turn on "May reach the local network" for it`}@@ -66,6 +67,9 @@ func fetchGrabLink(ctx context.Context, raw string, limit int64, rt http.RoundTrif err != nil {return nil, "", errors.New("the Release file address is invalid")}+ // Sites behind Cloudflare refuse Go's default User-Agent; a proxied+ // Source's transport would add this too, but a plain one would not.+ req.Header.Set("User-Agent", sources.UserAgent)resp, err := h.Do(req)if err != nil {if ctx.Err() != nil {diff --git a/app/backend/internal/downloads/payload.go b/app/backend/internal/downloads/payload.goindex b633bb1..b471430 100644--- a/app/backend/internal/downloads/payload.go+++ b/app/backend/internal/downloads/payload.go@@ -8,6 +8,7 @@ import ("net/url""github.com/HolyArrs/holyarrs/app/backend/internal/core/outbound"+ "github.com/HolyArrs/holyarrs/app/backend/internal/sources")// fetchRelease downloads a Release file for a client that cannot reach the Source. It takes web addresses only, with no sign-in part, and fetches through Client so the address rules apply to every redirect and connection. Error text is fixed so it never echoes the address, which may hold a key.@@ -21,6 +22,9 @@ func fetchRelease(ctx context.Context, raw string, allowLocal bool, limit int64)if err != nil {return nil, errors.New("the Release file address is invalid")}+ // Sites behind Cloudflare refuse Go's default User-Agent; send the one+ // Source searches use.+ req.Header.Set("User-Agent", sources.UserAgent)h := Client(raw, allowLocal)defer h.CloseIdleConnections()resp, err := h.Do(req)diff --git a/app/backend/internal/downloads/release_agent_test.go b/app/backend/internal/downloads/release_agent_test.gonew file mode 100644index 0000000..3508166--- /dev/null+++ b/app/backend/internal/downloads/release_agent_test.go@@ -0,0 +1,62 @@+package downloads++import (+ "context"+ "net/http"+ "net/http/httptest"+ "strings"+ "testing"++ "github.com/HolyArrs/holyarrs/app/backend/internal/sources"+)++// botWall answers like a site behind Cloudflare: Go's default User-Agent (or+// none) gets 403, anything else gets the file.+func botWall(t *testing.T, seen *[]string) *httptest.Server {+ t.Helper()+ srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {+ ua := r.Header.Get("User-Agent")+ *seen = append(*seen, ua)+ if ua == "" || strings.HasPrefix(ua, "Go-http-client") {+ w.WriteHeader(http.StatusForbidden)+ return+ }+ _, _ = w.Write(grabPayload)+ }))+ t.Cleanup(srv.Close)+ return srv+}++// The .nzb or .torrent fetch HolyArrs makes for NZBGet, Transmission, Deluge+// and qBittorrent links carries the HolyArrs User-Agent, like searches do.+func TestReleaseFetchSendsHolyArrsAgent(t *testing.T) {+ var seen []string+ srv := botWall(t, &seen)+ b, err := fetchRelease(context.Background(), srv.URL+"/getnzb/1.nzb", true, addFetchMax)+ if err != nil || string(b) != string(grabPayload) {+ t.Fatalf("fetch behind a bot wall: %q %v (User-Agents %q)", b, err, seen)+ }+ if len(seen) != 1 || seen[0] != sources.UserAgent {+ t.Fatalf("User-Agents %q, want [%q]", seen, sources.UserAgent)+ }+}++// The grab-time fetch without a Source proxy (qBittorrent and SABnzbd off the+// home network, and the torrent read for Transmission and Deluge) carries it too.+func TestGrabFetchWithoutProxySendsHolyArrsAgent(t *testing.T) {+ var seen []string+ srv := botWall(t, &seen)+ fakeDNS(t, map[string]string{"nzbsite.example": hostPort(t, srv)}, true)+ b, m, err := fetchGrabLink(context.Background(), "http://nzbsite.example/getnzb/1.nzb", addFetchMax, nil, "")+ if err != nil || string(b) != string(grabPayload) || m != "" {+ t.Fatalf("grab fetch behind a bot wall: %q %q %v (User-Agents %q)", b, m, err, seen)+ }+ if link, file := prefetchTorrent(context.Background(), "http://nzbsite.example/t/1.torrent", false, ""); string(file) != string(grabPayload) {+ t.Fatalf("torrent read behind a bot wall: %q %q (User-Agents %q)", link, file, seen)+ }+ for _, ua := range seen {+ if ua != sources.UserAgent {+ t.Fatalf("User-Agents %q, want only %q", seen, sources.UserAgent)+ }+ }+}diff --git a/app/backend/internal/downloads/routes_pick_rules.go b/app/backend/internal/downloads/routes_pick_rules.goindex 40bea3d..a664f30 100644--- a/app/backend/internal/downloads/routes_pick_rules.go+++ b/app/backend/internal/downloads/routes_pick_rules.go@@ -3,6 +3,7 @@ package downloadsimport ("errors""fmt"+ "log""net/http""strconv""strings"@@ -140,6 +141,7 @@ func (h *Handlers) editPickRules(w http.ResponseWriter, r *http.Request) {h.pickRulesError(w, r, id, err)return}+ h.recheckGoodEnough(r, p)u, err := library.PickRulesUse(r.Context(), h.Store, id)if err != nil {webserver.Internal(w, "downloads", err)@@ -148,6 +150,14 @@ func (h *Handlers) editPickRules(w http.ResponseWriter, r *http.Request) {webserver.WriteJSON(w, http.StatusOK, detailOfPickRules(p, u))}+// recheckGoodEnough queues the good enough re-check of the titles that use+// the saved set. The save already stands, so a failure is only logged.+func (h *Handlers) recheckGoodEnough(r *http.Request, p mediafiles.PickRules) {+ if err := h.Library.QueueRecheckPickRules(r.Context(), p, webserver.ActorOr(r, database.Actor{Kind: "user", ID: 1})); err != nil {+ log.Printf("downloads: queue the good enough re-check of pick rules %d: %v", p.ID, err)+ }+}+func (h *Handlers) deletePickRules(w http.ResponseWriter, r *http.Request) {id, ok := h.pickRulesID(w, r)if !ok {diff --git a/app/backend/internal/downloads/routes_trash.go b/app/backend/internal/downloads/routes_trash.goindex 0c52c0e..cd68429 100644--- a/app/backend/internal/downloads/routes_trash.go+++ b/app/backend/internal/downloads/routes_trash.go@@ -67,6 +67,7 @@ func (h *Handlers) applyTrash(w http.ResponseWriter, r *http.Request) {webserver.Fail(w, http.StatusBadGateway, err.Error())return}+ h.recheckGoodEnough(r, res.PickRules)u, err := library.PickRulesUse(r.Context(), h.Store, id)if err != nil {webserver.Internal(w, "downloads", err)diff --git a/app/backend/internal/importer/manual.go b/app/backend/internal/importer/manual.goindex ea8ff4d..caec141 100644--- a/app/backend/internal/importer/manual.go+++ b/app/backend/internal/importer/manual.go@@ -122,8 +122,11 @@ func libraryFile(ctx context.Context, db *sql.DB, folders []mediafiles.LibraryFocontinue}var n int+ // A found note whose episodes are all still empty does not count: the import links it.if db.QueryRowContext(ctx, `SELECT count(*) FROM files f JOIN versions v ON v.id = f.version_id- WHERE v.library_folder_id = ? AND f.relative_path = ? AND f.state = 'present' AND f.slot_ids != '[]'`, lf.ID, filepath.ToSlash(rel)).Scan(&n) == nil && n > 0 {+ WHERE v.library_folder_id = ? AND f.relative_path = ? AND f.state = 'present' AND f.slot_ids != '[]'+ AND NOT (f.origin = 'found' AND NOT EXISTS (SELECT 1 FROM json_each(f.slot_ids) j JOIN slots s ON s.id = j.value WHERE s.file_id IS NOT NULL))`,+ lf.ID, filepath.ToSlash(rel)).Scan(&n) == nil && n > 0 {return true}}@@ -180,6 +183,9 @@ func episodeRef(it mediafiles.Item) mediafiles.EpisodeRef {if it.Numbers.Absolute != nil {r.Absolute = *it.Numbers.Absolute}+ if it.Numbers.AltSeason != nil && it.Numbers.AltEpisode != nil {+ r.AltSeason, r.AltEpisode = *it.Numbers.AltSeason, *it.Numbers.AltEpisode+ }if it.AirDay != nil {r.AirDay = *it.AirDay}@@ -550,8 +556,19 @@ func (im *Importer) recordByHand(ctx context.Context, r *ByHandResult, src, targif g := p.Group.Value; g != "" {f.Group = &g}- // A library scan may have noted this file before its episodes were known; that unlinked note gives way.- if _, err := tx.Exec(`DELETE FROM files WHERE version_id = ? AND relative_path = ? AND slot_ids = '[]'`, ver.ID, f.RelativePath); err != nil {+ // A library scan may have noted this file as found, with or without its episodes; that note gives way.+ srcRel := f.RelativePath+ if r, err := filepath.Rel(lf.Path, src); err == nil && under(lf.Path, src) {+ srcRel = filepath.ToSlash(r)+ }+ // A protected note keeps its protection on the imported file.+ protected, err := mediafiles.ProtectedAt(ctx, tx, ver.ID, f.RelativePath, srcRel)+ if err != nil {+ return err+ }+ f.Protected = protected+ if _, err := tx.Exec(`DELETE FROM files WHERE version_id = ? AND relative_path IN (?, ?) AND (slot_ids = '[]' OR origin = 'found')`,+ ver.ID, f.RelativePath, srcRel); err != nil {return err}id, err := database.Insert(tx, "files", f, by)diff --git a/app/backend/internal/importer/manual_found_test.go b/app/backend/internal/importer/manual_found_test.gonew file mode 100644index 0000000..4ee3567--- /dev/null+++ b/app/backend/internal/importer/manual_found_test.go@@ -0,0 +1,110 @@+package importer++import (+ "context"+ "database/sql"+ "path/filepath"+ "strings"+ "testing"++ "github.com/HolyArrs/holyarrs/app/backend/internal/core/database"+ domain "github.com/HolyArrs/holyarrs/app/backend/internal/core/model"+ "github.com/HolyArrs/holyarrs/app/backend/internal/mediafiles"+)++// A library scan notes a file in a show's folder as found with the episode+// its name gives. While that episode is still empty, Import files takes the+// file and its import replaces the note; once the episode has a file, the+// note still counts as a file in the Library.+func TestByHandTakesFoundFileOfEmptyEpisode(t *testing.T) {+ w := showSetup(t, nil)+ ctx := context.Background()+ rel3 := w.folder + "/Season 1/Copper Valley (US) - S01E03.mkv"+ rel4 := w.folder + "/Season 1/Copper Valley (US) - S01E04.mkv"+ rel4b := w.folder + "/Season 1/Copper.Valley.S01E04.720p.mkv"+ for _, rel := range []string{rel3, rel4, rel4b} {+ write(t, filepath.Join(w.lib, filepath.FromSlash(rel)), 2048)+ }+ err := w.s.Write(ctx, func(tx *sql.Tx) error {+ note := func(rel string, slot int64, origin string) (int64, error) {+ f := &mediafiles.File{SlotIDs: []int64{slot}, VersionID: w.vID, RelativePath: rel, Size: 2048, Languages: []string{}, MediaInfo: map[string]any{},+ Origin: origin, PlacedBy: "none", Role: "main", State: "present"}+ return database.Insert(tx, "files", f, domain.System)+ }+ if _, err := note(rel3, w.slots[3], "found"); err != nil {+ return err+ }+ id, err := note(rel4b, w.slots[4], "imported")+ if err != nil {+ return err+ }+ if _, err := tx.Exec("UPDATE slots SET file_id = ?, state = 'in_library' WHERE id = ?", id, w.slots[4]); err != nil {+ return err+ }+ _, err = note(rel4, w.slots[4], "found")+ return err+ })+ if err != nil {+ t.Fatal(err)+ }+ im := &Importer{Store: w.s}+ sc, err := im.ScanByHand(ctx, w.lib)+ if err != nil {+ t.Fatal(err)+ }+ in := map[string]bool{}+ for _, f := range sc.Files {+ in[filepath.Base(f.Path)] = f.InLibrary+ }+ if in[filepath.Base(rel3)] || !in[filepath.Base(rel4)] {+ t.Fatalf("in library %v", in)+ }+ res, err := im.ImportByHand(ctx, []ByHandItem{+ {Path: filepath.Join(w.lib, filepath.FromSlash(rel3)), SlotID: w.slots[3], Mode: "move"},+ {Path: filepath.Join(w.lib, filepath.FromSlash(rel4)), SlotID: w.slots[4], Mode: "move"},+ }, domain.System)+ if err != nil {+ t.Fatal(err)+ }+ if res[0].Outcome != "placed" {+ t.Fatalf("found file of an empty episode: %+v", res[0])+ }+ if res[1].Outcome != "refused" || !strings.Contains(res[1].Error, "already a file in the Library") {+ t.Fatalf("found file of a filled episode: %+v", res[1])+ }+ sl := w.slot(t, 3)+ if sl.FileID == nil || w.file(t, *sl.FileID).Origin != "imported" {+ t.Fatalf("slot 3 %+v", sl)+ }+ var notes int+ _ = w.s.Read().QueryRow("SELECT count(*) FROM files f, json_each(f.slot_ids) j WHERE f.origin = 'found' AND j.value = ?", w.slots[3]).Scan(¬es)+ if notes != 0 {+ t.Fatalf("the found note stayed next to the import: %d", notes)+ }+}++// A found note the person protected stays protected once Import files takes it.+func TestByHandKeepsFoundNoteProtection(t *testing.T) {+ w := showSetup(t, nil)+ ctx := context.Background()+ rel3 := w.folder + "/Season 1/Copper Valley (US) - S01E03.mkv"+ write(t, filepath.Join(w.lib, filepath.FromSlash(rel3)), 2048)+ err := w.s.Write(ctx, func(tx *sql.Tx) error {+ f := &mediafiles.File{SlotIDs: []int64{w.slots[3]}, VersionID: w.vID, RelativePath: rel3, Size: 2048, Languages: []string{}, MediaInfo: map[string]any{},+ Origin: "found", PlacedBy: "none", Role: "main", State: "present", Protected: true}+ _, err := database.Insert(tx, "files", f, domain.System)+ return err+ })+ if err != nil {+ t.Fatal(err)+ }+ im := &Importer{Store: w.s}+ res, err := im.ImportByHand(ctx, []ByHandItem{{Path: filepath.Join(w.lib, filepath.FromSlash(rel3)), SlotID: w.slots[3], Mode: "move"}}, domain.System)+ if err != nil || res[0].Outcome != "placed" {+ t.Fatalf("import %+v %v", res, err)+ }+ sl := w.slot(t, 3)+ if sl.FileID == nil || !w.file(t, *sl.FileID).Protected {+ t.Fatalf("the imported file lost the note's protection: %+v", sl)+ }+}diff --git a/app/backend/internal/importer/showimport_test.go b/app/backend/internal/importer/showimport_test.goindex 1260fa0..9b62aa6 100644--- a/app/backend/internal/importer/showimport_test.go+++ b/app/backend/internal/importer/showimport_test.go@@ -571,3 +571,32 @@ func TestStrandedSweepNeverDoubleImports(t *testing.T) {t.Fatalf("swept an imported pack again: %v", queued)}}++// A file named the way releases number an anime part (S02E01) imports into+// the stored episode that carries those numbers, named by the stored ones.+func TestShowImportReleaseNumbers(t *testing.T) {+ w := showSetup(t, []int{3, 4}, "Copper.Valley.S02E01.1080p.WEB.H264-HOLYARRS.mkv", ep(4))+ sl := w.slot(t, 3)+ if err := w.s.Write(context.Background(), func(tx *sql.Tx) error {+ _, err := tx.Exec(`UPDATE items SET numbers = json_set(numbers, '$.alt_season', 2, '$.alt_episode', 1) WHERE id = ?`, sl.ItemID)+ return err+ }); err != nil {+ t.Fatal(err)+ }+ imp, err := (&Importer{Store: w.s}).Import(context.Background(), w.dlID, false, domain.System)+ if err != nil || imp.State != "done" {+ t.Fatalf("%v %+v", err, imp)+ }+ for n, want := range map[int]string{+ 3: "Copper Valley (2025)/Season 1/Copper Valley - S01E03 - Ash 1080p WEB.mkv",+ 4: "Copper Valley (2025)/Season 1/Copper Valley - S01E04 - Spring 1080p WEB.mkv",+ } {+ sl := w.slot(t, n)+ if sl.FileID == nil {+ t.Fatalf("E%d slot %+v", n, sl)+ }+ if f := w.file(t, *sl.FileID); f.RelativePath != want || len(f.SlotIDs) != 1 || f.SlotIDs[0] != w.slots[n] {+ t.Fatalf("E%d file %+v, want %s", n, f, want)+ }+ }+}diff --git a/app/backend/internal/importer/shows_import.go b/app/backend/internal/importer/shows_import.goindex 99583c2..4d25ddf 100644--- a/app/backend/internal/importer/shows_import.go+++ b/app/backend/internal/importer/shows_import.go@@ -133,6 +133,9 @@ func (im *Importer) importShow(ctx context.Context, d domain.Download, dr domainif it.Numbers.Absolute != nil {e.Ref.Absolute = *it.Numbers.Absolute}+ if it.Numbers.AltSeason != nil && it.Numbers.AltEpisode != nil {+ e.Ref.AltSeason, e.Ref.AltEpisode = *it.Numbers.AltSeason, *it.Numbers.AltEpisode+ }if it.AirDay != nil {e.Ref.AirDay = *it.AirDay}diff --git a/app/backend/internal/library/folder_delete_test.go b/app/backend/internal/library/folder_delete_test.gonew file mode 100644index 0000000..a337a2d--- /dev/null+++ b/app/backend/internal/library/folder_delete_test.go@@ -0,0 +1,196 @@+package library++import (+ "context"+ "database/sql"+ "errors"+ "os"+ "path/filepath"+ "testing"++ "github.com/HolyArrs/holyarrs/app/backend/internal/core/database"+ domain "github.com/HolyArrs/holyarrs/app/backend/internal/core/model"+ "github.com/HolyArrs/holyarrs/app/backend/internal/importer"+ "github.com/HolyArrs/holyarrs/app/backend/internal/mediafiles"+)++func rowCount(t *testing.T, s *database.Store, q string, args ...any) int {+ t.Helper()+ var n int+ if err := s.Read().QueryRow(q, args...).Scan(&n); err != nil {+ t.Fatal(err)+ }+ return n+}++// folderRows counts the folder row and the Version and File rows of title+// on it.+func folderRows(t *testing.T, s *database.Store, lf mediafiles.LibraryFolder, title int64) (folders, versions, files int) {+ t.Helper()+ return rowCount(t, s, "SELECT count(*) FROM library_folders WHERE id = ?", lf.ID),+ rowCount(t, s, "SELECT count(*) FROM versions WHERE title_id = ? AND library_folder_id = ?", title, lf.ID),+ rowCount(t, s, "SELECT count(*) FROM files WHERE version_id IN (SELECT id FROM versions WHERE title_id = ?)", title)+}++// Every title deleted from the Library, files left on disk: the folder can+// go, the deleted title stays in History, and nothing on disk is touched.+func TestDeleteFolderAfterTitlesRemoved(t *testing.T) {+ svc, s, lf, id, fs := deleteWorld(t)+ ctx := context.Background()+ if _, err := svc.Remove(ctx, id, RemoveChoice{}, true, domain.System); err != nil {+ t.Fatal(err)+ }+ if err := DeleteFolder(ctx, s, lf.ID); err != nil {+ t.Fatalf("delete folder after every title was removed: %v", err)+ }+ if f, v, n := folderRows(t, s, lf, id); f != 0 || v != 0 || n != 0 {+ t.Fatalf("left rows: folder %d versions %d files %d", f, v, n)+ }+ if n := rowCount(t, s, "SELECT count(*) FROM slots WHERE item_id IN (SELECT id FROM items WHERE title_id = ?)", id); n != 0 {+ t.Fatalf("%d slots left", n)+ }+ var ti mediafiles.Title+ if err := database.Get(ctx, s.Read(), "titles", id, &ti); err != nil || ti.State != "removed" {+ t.Fatalf("the removed title should stay in History: %+v %v", ti, err)+ }+ for _, f := range fs {+ if !onDisk(lf, f.RelativePath) {+ t.Fatalf("%s left the disk", f.RelativePath)+ }+ }+}++// The reported case: titles deleted with their files, then the folder's+// mount went away. Nothing there can be restored, so the folder can go.+func TestDeleteFolderMissingOnDisk(t *testing.T) {+ svc, s, lf, id, _ := deleteWorld(t)+ ctx := context.Background()+ if _, err := svc.Remove(ctx, id, RemoveChoice{DeleteFiles: true}, true, domain.System); err != nil {+ t.Fatal(err)+ }+ if err := os.RemoveAll(lf.Path); err != nil {+ t.Fatal(err)+ }+ if err := DeleteFolder(ctx, s, lf.ID); err != nil {+ t.Fatalf("delete a missing folder whose titles were removed: %v", err)+ }+ if f, v, n := folderRows(t, s, lf, id); f != 0 || v != 0 || n != 0 {+ t.Fatalf("left rows: folder %d versions %d files %d", f, v, n)+ }+}++// Deleted files still waiting in the folder's holding folder can be+// restored, so the folder stays until they are restored or emptied.+func TestDeleteFolderKeepsRestorableHeldFiles(t *testing.T) {+ svc, s, lf, id, _ := deleteWorld(t)+ ctx := context.Background()+ if _, err := svc.Remove(ctx, id, RemoveChoice{DeleteFiles: true}, true, domain.System); err != nil {+ t.Fatal(err)+ }+ held, err := svc.HeldFiles(ctx)+ if err != nil || len(held) == 0 {+ t.Fatalf("held %v %v", held, err)+ }+ f0, v0, n0 := folderRows(t, s, lf, id)+ if err := DeleteFolder(ctx, s, lf.ID); !errors.Is(err, ErrFolderHeld) {+ t.Fatalf("err = %v, want ErrFolderHeld", err)+ }+ if f, v, n := folderRows(t, s, lf, id); f != f0 || v != v0 || n != n0 {+ t.Fatalf("rows changed on a refused delete: %d/%d/%d, were %d/%d/%d", f, v, n, f0, v0, n0)+ }+ if again, _ := svc.HeldFiles(ctx); len(again) != len(held) {+ t.Fatalf("held files after a refused delete: %d, were %d", len(again), len(held))+ }+ if err := os.RemoveAll(filepath.Join(lf.Path, importer.HoldingDir)); err != nil {+ t.Fatal(err)+ }+ if err := DeleteFolder(ctx, s, lf.ID); err != nil {+ t.Fatalf("delete after holding was emptied by hand: %v", err)+ }+}++// An old copy an upgrade kept in holding cannot be restored from Recently+// deleted, so it does not keep the folder; it stays on disk like every file.+func TestDeleteFolderIgnoresReplacedCopies(t *testing.T) {+ svc, s, lf, id, fs := deleteWorld(t)+ ctx := context.Background()+ if _, err := svc.Remove(ctx, id, RemoveChoice{}, true, domain.System); err != nil {+ t.Fatal(err)+ }+ rel := importer.HoldingDir + "/2026-10-01/Dune - Part Two (2024)/old copy.mkv"+ if err := s.Write(ctx, func(tx *sql.Tx) error {+ _, err := tx.Exec("UPDATE files SET state = 'replaced', relative_path = ? WHERE id = ?", rel, fs[1].ID)+ return err+ }); err != nil {+ t.Fatal(err)+ }+ writeFile(t, filepath.Join(lf.Path, filepath.FromSlash(rel)), "x")+ if err := DeleteFolder(ctx, s, lf.ID); err != nil {+ t.Fatalf("an upgrade's old copy kept the folder: %v", err)+ }+ if !onDisk(lf, rel) {+ t.Fatal("the old copy left the disk")+ }+}++// A deleted title with Versions on two folders keeps a Main Version when+// the folder of its Main goes, so a later restore brings back a whole title.+func TestDeleteFolderKeepsAMainVersion(t *testing.T) {+ svc, s, lf, id, _ := deleteWorld(t)+ ctx := context.Background()+ other, err := AddFolder(ctx, s, FolderInput{Path: t.TempDir(), Kind: "movie", Label: "Movies 4K"}, nil, domain.System)+ if err != nil {+ t.Fatal(err)+ }+ if _, err := AddVersion(ctx, s, id, VersionInput{Label: "4K", LibraryFolderID: other.ID}, nil, now, domain.System); err != nil {+ t.Fatal(err)+ }+ if _, err := svc.Remove(ctx, id, RemoveChoice{}, true, domain.System); err != nil {+ t.Fatal(err)+ }+ if err := DeleteFolder(ctx, s, lf.ID); err != nil {+ t.Fatalf("delete the Main Version's folder: %v", err)+ }+ vs := versionsOf(t, s, id)+ if len(vs) != 1 || vs[0].LibraryFolderID != other.ID || !vs[0].IsMain {+ t.Fatalf("versions left %+v, want the 4K one on the other folder as Main", vs)+ }+}++// A title still in the Library keeps the folder, and the refusal leaves the+// removed title's rows as they were.+func TestDeleteFolderRefusesLiveTitleBesideRemoved(t *testing.T) {+ svc, s, lf, id, _ := deleteWorld(t)+ ctx := context.Background()+ if _, err := svc.Remove(ctx, id, RemoveChoice{}, true, domain.System); err != nil {+ t.Fatal(err)+ }+ if _, err := AddMovie(ctx, s, future, AddOptions{}, nil, now, domain.System); err != nil {+ t.Fatal(err)+ }+ f0, v0, n0 := folderRows(t, s, lf, id)+ if err := DeleteFolder(ctx, s, lf.ID); !errors.Is(err, ErrFolderInUse) {+ t.Fatalf("err = %v, want ErrFolderInUse", err)+ }+ if f, v, n := folderRows(t, s, lf, id); f != f0 || v != v0 || n != n0 {+ t.Fatalf("rows changed on a refused delete: %d/%d/%d, were %d/%d/%d", f, v, n, f0, v0, n0)+ }+}++// A folder an outside list adds to is refused with a clear answer, not a+// database error.+func TestDeleteFolderUsedByOutsideList(t *testing.T) {+ s := open(t)+ ctx := context.Background()+ lf := addFolder(t, s)+ if err := s.Write(ctx, func(tx *sql.Tx) error {+ _, err := tx.Exec(`INSERT INTO outside_lists(created_at, created_by, updated_at, updated_by, name, kind, ref, library_folder_id)+ VALUES ('x', '{}', 'x', '{}', 'L', 'tmdb_list', '1', ?)`, lf.ID)+ return err+ }); err != nil {+ t.Fatal(err)+ }+ if err := DeleteFolder(ctx, s, lf.ID); !errors.Is(err, ErrFolderListed) {+ t.Fatalf("err = %v, want ErrFolderListed", err)+ }+}diff --git a/app/backend/internal/library/folders.go b/app/backend/internal/library/folders.goindex d234d71..bfe8e2f 100644--- a/app/backend/internal/library/folders.go+++ b/app/backend/internal/library/folders.go@@ -117,6 +117,8 @@ var (ErrFolderKind = errors.New("kind must be movie, show or music")ErrFolderTaken = errors.New("that folder, or one inside or around it, is already a Library folder")ErrFolderInUse = errors.New("titles still use this Library folder; move them first")+ ErrFolderHeld = errors.New("deleted files in this Library folder can still be restored from Recently deleted; remove the folder once their holding days are over, or delete its .holyarrs-replaced folder on disk")+ ErrFolderListed = errors.New("an outside list adds to this Library folder; point it at another folder first")ErrFolderName = errors.New("another Library folder of this kind already has that name")ErrFolderAbsent = errors.New("the folder does not exist")ErrNoPickRules = errors.New("no Pick rules with that id")@@ -312,16 +314,95 @@ func freeLabel(all []mediafiles.LibraryFolder, kind, label string, skip int64, nreturn label, true}-// DeleteFolder removes a Library folder no Version uses. Nothing on disk is touched.+// DeleteFolder removes a Library folder no title in the Library uses. Titles+// deleted from the Library stay in History; their Version and File rows on+// this folder go with it, unless deleted files there can still be restored.+// Nothing on disk is touched.func DeleteFolder(ctx context.Context, s *database.Store, id int64) error {+ // Holding a file or restoring one waits, so nothing restorable lands+ // in the folder between the check and the delete.+ unlock := s.LockFiles()+ defer unlock()return s.Write(ctx, func(tx *sql.Tx) error {+ var root string+ if err := tx.QueryRow("SELECT path FROM library_folders WHERE id = ?", id).Scan(&root); err != nil {+ if errors.Is(err, sql.ErrNoRows) {+ return database.ErrNotFound+ }+ return err+ }var n int- if err := tx.QueryRow("SELECT count(*) FROM versions WHERE library_folder_id = ?", id).Scan(&n); err != nil {+ if err := tx.QueryRow(`SELECT count(*) FROM versions v JOIN titles t ON t.id = v.title_id+ WHERE v.library_folder_id = ? AND t.state != 'removed'`, id).Scan(&n); err != nil {return err}if n > 0 {return ErrFolderInUse}+ if err := tx.QueryRow("SELECT count(*) FROM outside_lists WHERE library_folder_id = ?", id).Scan(&n); err != nil {+ return err+ }+ if n > 0 {+ return ErrFolderListed+ }+ // A deleted file still in the holding folder can be restored from+ // Recently deleted; when the folder is gone from disk, none can.+ prefix := importer.HoldingDir + "/"+ rows, err := tx.Query(`SELECT f.relative_path FROM files f JOIN versions v ON v.id = f.version_id+ WHERE v.library_folder_id = ? AND f.state = 'gone' AND substr(f.relative_path, 1, ?) = ?`, id, len(prefix), prefix)+ if err != nil {+ return err+ }+ var held []string+ for rows.Next() {+ var rel string+ if err := rows.Scan(&rel); err != nil {+ _ = rows.Close()+ return err+ }+ held = append(held, rel)+ }+ if err := rows.Close(); err != nil {+ return err+ }+ for _, rel := range held {+ if st, err := os.Lstat(filepath.Join(root, filepath.FromSlash(rel))); err == nil && st.Mode().IsRegular() {+ return ErrFolderHeld+ }+ }+ var gone []int64+ trows, err := tx.Query(`SELECT DISTINCT v.title_id FROM versions v JOIN titles t ON t.id = v.title_id+ WHERE v.library_folder_id = ? AND t.state = 'removed'`, id)+ if err != nil {+ return err+ }+ for trows.Next() {+ var tid int64+ if err := trows.Scan(&tid); err != nil {+ _ = trows.Close()+ return err+ }+ gone = append(gone, tid)+ }+ if err := trows.Close(); err != nil {+ return err+ }+ if _, err := tx.Exec(`DELETE FROM files WHERE version_id IN (SELECT v.id FROM versions v JOIN titles t ON t.id = v.title_id+ WHERE v.library_folder_id = ? AND t.state = 'removed')`, id); err != nil {+ return err+ }+ if _, err := tx.Exec(`DELETE FROM versions WHERE library_folder_id = ? AND title_id IN (SELECT id FROM titles WHERE state = 'removed')`, id); err != nil {+ return err+ }+ // A deleted title whose Main Version was here but has another on+ // a second folder gets that one as Main, so a restore brings back+ // a whole title.+ for _, tid := range gone {+ if _, err := tx.Exec(`UPDATE versions SET is_main = 1 WHERE id = (SELECT min(id) FROM versions WHERE title_id = ?)+ AND NOT EXISTS (SELECT 1 FROM versions WHERE title_id = ? AND is_main = 1)`, tid, tid); err != nil {+ return err+ }+ }res, err := tx.Exec("DELETE FROM library_folders WHERE id = ?", id)if err != nil {return errdiff --git a/app/backend/internal/library/recheck_pick_rules.go b/app/backend/internal/library/recheck_pick_rules.gonew file mode 100644index 0000000..65e5121--- /dev/null+++ b/app/backend/internal/library/recheck_pick_rules.go@@ -0,0 +1,74 @@+package library++import (+ "context"+ "database/sql"+ "errors"+ "strconv"++ "github.com/HolyArrs/holyarrs/app/backend/internal/core/database"+ "github.com/HolyArrs/holyarrs/app/backend/internal/core/jobs"+ domain "github.com/HolyArrs/holyarrs/app/backend/internal/core/model"+ "github.com/HolyArrs/holyarrs/app/backend/internal/mediafiles"+)++// KindRecheckPickRules re-checks the good enough state of every file whose+// Version uses a Pick rules set, after the set changed.+const KindRecheckPickRules = "recheck_pick_rules"++// QueueRecheckPickRules queues the re-check for a saved Pick rules set. Each+// revision gets its own Job, so a save during a running re-check is judged+// again with the newest rules.+func (s *Service) QueueRecheckPickRules(ctx context.Context, p mediafiles.PickRules, by domain.Actor) error {+ if s == nil || s.Queue == nil {+ return nil+ }+ key := KindRecheckPickRules + ":" + strconv.FormatInt(p.ID, 10) + ":" + strconv.Itoa(p.Revision)+ _, _, err := s.Queue.Enqueue(ctx, KindRecheckPickRules, &domain.Subject{Type: "pick_rules", ID: p.ID}, nil, key, by)+ return err+}++func (s *Service) handleRecheckPickRules(ctx context.Context, r *jobs.Run) error {+ if r.Job.Subject == nil {+ return errors.New("recheck_pick_rules needs a pick_rules subject")+ }+ n, err := RecheckPickRules(ctx, s.Store, r.Job.Subject.ID, JobActor(r))+ r.SetResult(map[string]any{"slot_changes": n})+ return err+}++// RecheckPickRules works out the good enough state of the files of every+// Version that uses the Pick rules set, in small writes so a large Library+// stays responsive. It returns how many Slots changed.+func RecheckPickRules(ctx context.Context, st *database.Store, pickRulesID int64, by domain.Actor) (int, error) {+ ids, err := mediafiles.VersionIDsWithPickRules(ctx, st.Read(), pickRulesID)+ if err != nil {+ return 0, err+ }+ changed := 0+ for start := 0; start < len(ids); start += 50 {+ batch := ids[start:min(start+50, len(ids))]+ err := st.Write(ctx, func(tx *sql.Tx) error {+ for _, id := range batch {+ var v mediafiles.Version+ if err := database.Get(ctx, tx, "versions", id, &v); err != nil || v.PickRulesID != pickRulesID {+ continue+ }+ var t mediafiles.Title+ if err := database.Get(ctx, tx, "titles", v.TitleID, &t); err != nil {+ continue+ }+ ch, err := goodEnoughTx(ctx, tx, v, t.KeepUpToDate && v.KeepUpToDate, by)+ if err != nil {+ return err+ }+ changed += len(ch)+ }+ return nil+ })+ if err != nil {+ return changed, err+ }+ }+ return changed, nil+}diff --git a/app/backend/internal/library/recheck_pick_rules_test.go b/app/backend/internal/library/recheck_pick_rules_test.gonew file mode 100644index 0000000..5d61d1e--- /dev/null+++ b/app/backend/internal/library/recheck_pick_rules_test.go@@ -0,0 +1,97 @@+package library++import (+ "context"+ "database/sql"+ "testing"+ "time"++ "github.com/HolyArrs/holyarrs/app/backend/internal/core/database"+ domain "github.com/HolyArrs/holyarrs/app/backend/internal/core/model"+ "github.com/HolyArrs/holyarrs/app/backend/internal/mediafiles"+ "github.com/HolyArrs/holyarrs/app/backend/internal/metadata"+)++// TestSavingPickRulesRechecksGoodEnough: saving a Pick rules set re-checks+// the files of every title that uses it, the way a title edit does. Raising+// good enough makes a file want a better copy, lowering it (or clearing the+// points) puts the file back in the Library.+func TestSavingPickRulesRechecksGoodEnough(t *testing.T) {+ s := open(t)+ ctx := context.Background()+ addFolder(t, s)+ svc, _, _ := runQueue(t, s, &metadata.Static{Movies: []metadata.Movie{dune}})+ id, err := AddMovie(ctx, s, dune, AddOptions{}, nil, now, domain.System)+ if err != nil {+ t.Fatal(err)+ }+ sl := slotsOf(t, s, id)[0]+ err = s.Write(ctx, func(tx *sql.Tx) error {+ name := "Dune.Part.Two.2024.1080p.WEB-DL.DDP5.1.H.264-GRP"+ f := &mediafiles.File{SlotIDs: []int64{sl.ID}, VersionID: sl.VersionID, RelativePath: name + ".mkv", Size: 1, AddedAt: now,+ Languages: []string{}, MediaInfo: map[string]any{}, ReleaseName: &name, Origin: "imported", PlacedBy: "hardlink", Role: "main", State: "present"}+ if _, err := database.Insert(tx, "files", f, domain.System); err != nil {+ return err+ }+ _, err := tx.Exec("UPDATE slots SET state = 'in_library', file_id = ?, good_enough = 1 WHERE id = ?", f.ID, sl.ID)+ return err+ })+ if err != nil {+ t.Fatal(err)+ }+ in := PickRulesInput{Name: "Mine", Kinds: []string{"movie"}, Body: mediafiles.GoodEveryday()}+ p, err := CreatePickRules(ctx, s, in, domain.System)+ if err != nil {+ t.Fatal(err)+ }+ if _, err := svc.Edit(ctx, id, TitleChange{PickRulesID: &p.ID}, false, domain.System); err != nil {+ t.Fatal(err)+ }+ waitSlot := func(state mediafiles.SlotState, ge bool) {+ t.Helper()+ deadline := time.Now().Add(5 * time.Second)+ for time.Now().Before(deadline) {+ if got := slotsOf(t, s, id)[0]; got.State == state && got.GoodEnough == ge {+ return+ }+ time.Sleep(10 * time.Millisecond)+ }+ t.Fatalf("slot %+v, want %s good enough %v", slotsOf(t, s, id)[0], state, ge)+ }+ save := func(b mediafiles.PickRulesBody) {+ t.Helper()+ in.Body = b+ p, err = UpdatePickRules(ctx, s, p.ID, in, domain.System)+ if err != nil {+ t.Fatal(err)+ }+ if err := svc.QueueRecheckPickRules(ctx, p, domain.System); err != nil {+ t.Fatal(err)+ }+ }+ waitSlot(mediafiles.SlotInLibrary, true)++ // Raise good enough to 4K web: the 1080p copy now wants a better one.+ higher := mediafiles.GoodEveryday()+ for i := range higher.Steps {+ if higher.Steps[i].Quality == "2160p_web" {+ higher.Steps[i].Allowed = true+ }+ }+ higher.GoodEnoughAt = "2160p_web"+ save(higher)+ waitSlot(mediafiles.SlotBetterWanted, false)++ // Lower it again: back in the Library.+ save(mediafiles.GoodEveryday())+ waitSlot(mediafiles.SlotInLibrary, true)++ // Good enough points out of reach (a TRaSH cutoff), then cleared.+ points := 10000+ far := mediafiles.GoodEveryday()+ far.GoodEnoughPoints = &points+ save(far)+ waitSlot(mediafiles.SlotBetterWanted, false)+ save(mediafiles.GoodEveryday())+ waitSlot(mediafiles.SlotInLibrary, true)+}diff --git a/app/backend/internal/library/service.go b/app/backend/internal/library/service.goindex 9060cef..174eeb7 100644--- a/app/backend/internal/library/service.go+++ b/app/backend/internal/library/service.go@@ -102,6 +102,7 @@ func (s *Service) Register(q *jobs.Queue) {q.Handle(KindScanLibrary, s.handleScanLibrary)q.Handle(KindAdopt, s.handleAdopt)q.Handle(KindRescan, s.handleRescan)+ q.Handle(KindRecheckPickRules, s.handleRecheckPickRules)}func (s *Service) Publish(topic string, v any) {diff --git a/app/backend/internal/library/write_error.go b/app/backend/internal/library/write_error.goindex fca37b9..d354021 100644--- a/app/backend/internal/library/write_error.go+++ b/app/backend/internal/library/write_error.go@@ -21,7 +21,7 @@ func WriteError(w http.ResponseWriter, err error) {webserver.WriteJSON(w, http.StatusConflict, map[string]any{"error": err.Error(), "title_id": dup.TitleID})case errors.As(err, &fe):webserver.WriteJSON(w, http.StatusConflict, map[string]any{"error": err.Error(), "health": fe.Health.State, "reason": fe.Health.Reason})- case errors.Is(err, ErrNeverAdd), errors.Is(err, ErrNoFolder), errors.Is(err, ErrFolderInUse),+ case errors.Is(err, ErrNeverAdd), errors.Is(err, ErrNoFolder), errors.Is(err, ErrFolderInUse), errors.Is(err, ErrFolderHeld), errors.Is(err, ErrFolderListed),errors.Is(err, ErrFolderTaken), errors.Is(err, ErrFolderName), errors.Is(err, ErrMainVersion), errors.Is(err, ErrVersionHasFiles), errors.Is(err, ErrVersionBusy),errors.Is(err, ErrVersionFolder), errors.Is(err, ErrProtectedCopy):webserver.Fail(w, http.StatusConflict, err.Error())diff --git a/app/backend/internal/mediafiles/judge_show.go b/app/backend/internal/mediafiles/judge_show.goindex 467b5d6..3ad3dda 100644--- a/app/backend/internal/mediafiles/judge_show.go+++ b/app/backend/internal/mediafiles/judge_show.go@@ -32,11 +32,23 @@ type EpisodeRef struct {Episode intAbsolute int // 0: noneAirDay string // YYYY-MM-DD, "" when unknown+ // AltSeason and AltEpisode are how release names number the episode+ // when that differs (an anime part TMDB keeps inside one season); 0: none.+ AltSeason int+ AltEpisode int}// Label names an episode the way people write it: S01E02.func (e EpisodeRef) Label() string { return fmt.Sprintf("S%02dE%02d", e.Season, e.Episode) }+// Named is the season and episode release names use for the episode.+func (e EpisodeRef) Named() (int, int) {+ if e.AltSeason > 0 {+ return e.AltSeason, e.AltEpisode+ }+ return e.Season, e.Episode+}+// isPack says the Release holds whole seasons.func isPack(p releasename.Result) bool {switch p.Kind.Value {@@ -70,7 +82,12 @@ func MatchEpisodes(p releasename.Result, order string, eps []EpisodeRef) ([]Epis}switch p.Kind.Value {case releasename.KindSeasonPack, releasename.KindMultiSeason:- find(func(e EpisodeRef) bool { return slices.Contains(sh.Seasons, e.Season) })+ // An episode sits in the season release names give it; the stored+ // season counts only when that finds nothing.+ find(func(e EpisodeRef) bool { s, _ := e.Named(); return slices.Contains(sh.Seasons, s) })+ if len(out) == 0 {+ find(func(e EpisodeRef) bool { return slices.Contains(sh.Seasons, e.Season) })+ }if len(out) == 0 {return nil, fmt.Sprintf("the show has no episodes in season %s", seasonList(sh.Seasons))}@@ -108,7 +125,12 @@ func MatchEpisodes(p releasename.Result, order string, eps []EpisodeRef) ([]Epis}var missing []stringfor _, n := range sh.Episodes {- i := slices.IndexFunc(eps, func(e EpisodeRef) bool { return e.Season == sh.Seasons[0] && e.Episode == n })+ // Release-name numbers first, as the old apps read scene numbers;+ // then the stored ones.+ i := slices.IndexFunc(eps, func(e EpisodeRef) bool { s, x := e.Named(); return s == sh.Seasons[0] && x == n })+ if i < 0 {+ i = slices.IndexFunc(eps, func(e EpisodeRef) bool { return e.Season == sh.Seasons[0] && e.Episode == n })+ }if i < 0 {missing = append(missing, fmt.Sprintf("S%02dE%02d", sh.Seasons[0], n))continuediff --git a/app/backend/internal/mediafiles/judge_show_test.go b/app/backend/internal/mediafiles/judge_show_test.goindex f499c44..4ed71b9 100644--- a/app/backend/internal/mediafiles/judge_show_test.go+++ b/app/backend/internal/mediafiles/judge_show_test.go@@ -213,3 +213,54 @@ func TestGainsPerEpisode(t *testing.T) {t.Fatal("the same copy does not gain")}}++// A TMDB season that holds two parts: release names number the second part+// as season 2, and those names find the stored season 1 episodes.+func TestMatchEpisodesReleaseNumbers(t *testing.T) {+ var eps []EpisodeRef+ for e := 1; e <= 15; e++ {+ eps = append(eps, EpisodeRef{ItemID: int64(e), Season: 0, Episode: e})+ }+ for e := 1; e <= 25; e++ {+ r := EpisodeRef{ItemID: int64(100 + e), Season: 1, Episode: e, Absolute: e}+ if e > 12 {+ r.AltSeason, r.AltEpisode = 2, e-12+ }+ eps = append(eps, r)+ }+ labels := func(rs []EpisodeRef) []string {+ var out []string+ for _, r := range rs {+ out = append(out, r.Label())+ }+ return out+ }+ run := func(from, to int) []string {+ var out []string+ for e := from; e <= to; e++ {+ out = append(out, EpisodeRef{Season: 1, Episode: e}.Label())+ }+ return out+ }+ for _, c := range []struct {+ name string+ want []string+ why string+ }{+ {"Mashle S02E05 1080p WEB-DL", []string{"S01E17"}, ""},+ {"[SubsPlease] Mashle S2 - 05 (1080p)", []string{"S01E17"}, ""},+ {"[Erai-raws] Mashle 2nd Season - 05 [1080p]", []string{"S01E17"}, ""},+ {"Mashle S01E05 1080p WEB-DL", []string{"S01E05"}, ""},+ {"Mashle S01E17 1080p WEB-DL", []string{"S01E17"}, ""},+ {"Mashle S01 1080p WEB-DL", run(1, 12), ""},+ {"Mashle S02 1080p WEB-DL", run(13, 25), ""},+ {"Mashle S01-S02 1080p WEB-DL", run(1, 25), ""},+ {"[SubsPlease] Mashle - 17 (1080p)", []string{"S01E17"}, ""},+ {"Mashle S03E01 1080p WEB-DL", nil, "the show has no episode S03E01"},+ } {+ got, why := MatchEpisodes(releasename.Parse(c.name, releasename.Hints{Show: true}), "absolute", eps)+ if !slices.Equal(labels(got), c.want) || why != c.why {+ t.Errorf("%s: %v %q, want %v %q", c.name, labels(got), why, c.want, c.why)+ }+ }+}diff --git a/app/backend/internal/mediafiles/store_file_protection.go b/app/backend/internal/mediafiles/store_file_protection.gonew file mode 100644index 0000000..8c25a59--- /dev/null+++ b/app/backend/internal/mediafiles/store_file_protection.go@@ -0,0 +1,25 @@+package mediafiles++import (+ "context"++ "github.com/HolyArrs/holyarrs/app/backend/internal/core/database"+)++// ProtectedAt reports whether a File of the Version at one of the paths is+// protected, so the File that replaces it can keep that choice.+func ProtectedAt(ctx context.Context, q database.Querier, versionID int64, paths ...string) (bool, error) {+ var n int+ for _, p := range paths {+ if err := q.QueryRowContext(ctx, "SELECT count(*) FROM files WHERE version_id = ? AND relative_path = ? AND protected = 1", versionID, p).Scan(&n); err != nil || n > 0 {+ return n > 0, err+ }+ }+ return false, nil+}++// ProtectAt marks the present Files of the Version at the path protected.+func ProtectAt(ctx context.Context, q database.Execer, versionID int64, path string) error {+ _, err := q.ExecContext(ctx, "UPDATE files SET protected = 1 WHERE version_id = ? AND relative_path = ? AND state = 'present'", versionID, path)+ return err+}diff --git a/app/backend/internal/mediafiles/store_pick_rules_versions.go b/app/backend/internal/mediafiles/store_pick_rules_versions.gonew file mode 100644index 0000000..768dd57--- /dev/null+++ b/app/backend/internal/mediafiles/store_pick_rules_versions.go@@ -0,0 +1,25 @@+package mediafiles++import (+ "context"++ "github.com/HolyArrs/holyarrs/app/backend/internal/core/database"+)++// VersionIDsWithPickRules lists the Versions that use the Pick rules set.+func VersionIDsWithPickRules(ctx context.Context, q database.Lister, pickRulesID int64) ([]int64, error) {+ rows, err := q.QueryContext(ctx, "SELECT id FROM versions WHERE pick_rules_id = ? ORDER BY id", pickRulesID)+ if err != nil {+ return nil, err+ }+ defer rows.Close()+ var ids []int64+ for rows.Next() {+ var id int64+ if err := rows.Scan(&id); err != nil {+ return nil, err+ }+ ids = append(ids, id)+ }+ return ids, rows.Err()+}diff --git a/app/backend/internal/metadata/server_anime.go b/app/backend/internal/metadata/server_anime.goindex faafb69..c8d450e 100644--- a/app/backend/internal/metadata/server_anime.go+++ b/app/backend/internal/metadata/server_anime.go@@ -4,9 +4,11 @@ import ("context""encoding/json""io"+ "maps""net/http""net/url""slices"+ "strconv""strings""time")@@ -234,3 +236,110 @@ func (m AnimeMap) Seasons(counts map[int]int) []AnimeSeason {}return out}++// SetReleaseNumbers gives the episodes of TMDB show tmdbID the TVDB-style+// season and episode that release names use, when a TMDB season holds+// several parts: in Mashle's TMDB season 1, episode 17 is S02E05. Only+// entries of this show with a regular TMDB and TVDB season count; a map+// with one part per season changes nothing. seasons is TMDB's own season+// list. It reports whether the map knows the show and is current, even+// when it changes nothing.+func (m AnimeMap) SetReleaseNumbers(tmdbID string, seasons []Season, eps []Episode) bool {+ have := map[int]bool{}+ for _, s := range seasons {+ have[s.Number] = true+ }+ for _, ep := range eps {+ have[ep.Season] = true+ }+ by := map[int][]AnimeEntry{}+ for _, e := range m.Entries {+ if strconv.FormatInt(e.TMDBTV, 10) == tmdbID && e.TMDBSeason != nil && *e.TMDBSeason > 0 && !have[*e.TMDBSeason] {+ // The map names a season TMDB no longer has: it is out of date.+ return false+ }+ if strconv.FormatInt(e.TMDBTV, 10) != tmdbID || e.Absolute || e.TMDBSeason == nil || e.TVDBSeason == nil || *e.TMDBSeason < 1 || *e.TVDBSeason < 1 {+ continue+ }+ by[*e.TMDBSeason] = append(by[*e.TMDBSeason], e)+ }+ if !slices.ContainsFunc(slices.Collect(maps.Values(by)), func(es []AnimeEntry) bool { return len(es) > 1 }) {+ return len(by) > 0+ }+ for i := range eps {+ ep := &eps[i]+ if ep.Season < 1 {+ continue+ }+ var part *AnimeEntry+ for j, e := range by[ep.Season] {+ if e.TMDBOffset < ep.Number && (part == nil || e.TMDBOffset > part.TMDBOffset) {+ part = &by[ep.Season][j]+ }+ }+ if part == nil {+ continue+ }+ season, number := *part.TVDBSeason, ep.Number-part.TMDBOffset+part.TVDBOffset+ if season != ep.Season || number != ep.Number {+ ep.AltSeason, ep.AltEpisode = season, number+ }+ }+ return true+}++// setSeasonSizes numbers TMDB's regular episodes the way release names do+// when sizes, the episode counts of release seasons 1, 2, ..., split TMDB's+// seasons in order: each TMDB season but the last holds whole release+// seasons, and the last reaches into each of the rest and covers its dated+// episodes. Episodes past the end stay in the last release season, as with+// the anime map. Layouts that agree or do not fit change nothing.+func setSeasonSizes(eps []Episode, sizes []int) {+ count, dated, seasons := map[int]int{}, map[int]int{}, 0+ for _, e := range eps {+ if e.Season > 0 {+ count[e.Season]+++ if e.AirDay != "" {+ dated[e.Season]+++ }+ seasons = max(seasons, e.Season)+ }+ }+ if seasons == 0 || len(sizes) <= seasons || slices.ContainsFunc(sizes, func(n int) bool { return n < 1 }) {+ return+ }+ first, j := map[int]int{}, 0+ for s := 1; s < seasons; s++ {+ first[s] = j+ sum := 0+ for sum < count[s] && j < len(sizes) {+ sum += sizes[j]+ j+++ }+ if sum != count[s] {+ return+ }+ }+ first[seasons] = j+ rest, total := sizes[j:], 0+ for _, n := range rest {+ total += n+ }+ if len(rest) == 0 || total < dated[seasons] || total-rest[len(rest)-1] >= count[seasons] {+ return+ }+ for i := range eps {+ ep := &eps[i]+ if ep.Season < 1 {+ continue+ }+ k, n := first[ep.Season], ep.Number+ for k < len(sizes)-1 && n > sizes[k] {+ n -= sizes[k]+ k+++ }+ if k+1 != ep.Season || n != ep.Number {+ ep.AltSeason, ep.AltEpisode = k+1, n+ }+ }+}diff --git a/app/backend/internal/metadata/server_anime_test.go b/app/backend/internal/metadata/server_anime_test.goindex 64acb5d..9c7e564 100644--- a/app/backend/internal/metadata/server_anime_test.go+++ b/app/backend/internal/metadata/server_anime_test.go@@ -107,3 +107,176 @@ func TestAnimeSeasonsBounded(t *testing.T) {t.Fatalf("%+v", ss)}}++// A TMDB season that holds several cours gets the TVDB-style numbers the+// releases use; specials, absolute entries and other shows are left alone.+func TestAnimeReleaseNumbers(t *testing.T) {+ n := func(v int) *int { return &v }+ entry := func(tmdbID int64, tmdbSeason, tmdbOff, tvdbSeason, tvdbOff int) AnimeEntry {+ return AnimeEntry{TMDBTV: tmdbID, TMDBSeason: n(tmdbSeason), TMDBOffset: tmdbOff, TVDBSeason: n(tvdbSeason), TVDBOffset: tvdbOff}+ }+ eps := func(season, count int) []Episode {+ out := []Episode{}+ for i := 1; i <= count; i++ {+ out = append(out, Episode{Season: season, Number: i})+ }+ return out+ }+ alt := func(eps []Episode, season, number int) [2]int {+ for _, e := range eps {+ if e.Season == season && e.Number == number {+ return [2]int{e.AltSeason, e.AltEpisode}+ }+ }+ t.Fatalf("no S%02dE%02d", season, number)+ return [2]int{}+ }+ mashle := []AnimeEntry{entry(204832, 1, 0, 1, 0), entry(204832, 1, 12, 2, 0)}++ got := append(eps(0, 1), eps(1, 25)...)+ AnimeMap{Entries: mashle}.SetReleaseNumbers("204832", []Season{{Number: 0}, {Number: 1}}, got)+ for _, c := range []struct{ season, number, altS, altE int }{+ {1, 5, 0, 0}, {1, 12, 0, 0}, {1, 13, 2, 1}, {1, 17, 2, 5}, {1, 25, 2, 13}, {0, 1, 0, 0},+ } {+ if a := alt(got, c.season, c.number); a != [2]int{c.altS, c.altE} {+ t.Errorf("S%02dE%02d: alt %v, want %d/%d", c.season, c.number, a, c.altS, c.altE)+ }+ }++ three := eps(1, 36)+ AnimeMap{Entries: []AnimeEntry{entry(5, 1, 0, 1, 0), entry(5, 1, 12, 2, 0), entry(5, 1, 24, 3, 0)}}.SetReleaseNumbers("5", []Season{{Number: 1}}, three)+ if a := alt(three, 1, 30); a != [2]int{3, 6} {+ t.Errorf("three cours: S01E30 alt %v", a)+ }++ for name, entries := range map[string][]AnimeEntry{+ "one entry per season": {entry(5, 1, 0, 1, 0), entry(5, 2, 0, 2, 0)},+ "absolute entry": {entry(5, 1, 0, 1, 0), {TMDBTV: 5, TMDBSeason: n(1), TMDBOffset: 12, TVDBSeason: n(2), Absolute: true}},+ "tvdb season 0": {entry(5, 1, 0, 1, 0), entry(5, 1, 12, 0, 0)},+ "other show": {entry(5, 1, 0, 1, 0), entry(6, 1, 12, 2, 0)},+ } {+ list := eps(1, 24)+ AnimeMap{Entries: entries}.SetReleaseNumbers("5", []Season{{Number: 1}, {Number: 2}}, list)+ for _, e := range list {+ if e.AltSeason != 0 || e.AltEpisode != 0 {+ t.Errorf("%s: S%02dE%02d got alt %d/%d", name, e.Season, e.Number, e.AltSeason, e.AltEpisode)+ }+ }+ }+}++// A map that names TMDB seasons the show no longer has is out of date, so+// it numbers nothing, even inside the seasons TMDB still has.+func TestAnimeReleaseNumbersStaleSeasons(t *testing.T) {+ n := func(v int) *int { return &v }+ entry := func(tmdbSeason, tmdbOff, tvdbSeason int) AnimeEntry {+ return AnimeEntry{TMDBTV: 5, TMDBSeason: n(tmdbSeason), TMDBOffset: tmdbOff, TVDBSeason: n(tvdbSeason)}+ }+ list := []Episode{}+ for i := 1; i <= 36; i++ {+ list = append(list, Episode{Season: 1, Number: i})+ }+ stale := AnimeMap{Entries: []AnimeEntry{entry(1, 0, 1), entry(1, 12, 2), entry(2, 0, 3)}}+ if stale.SetReleaseNumbers("5", []Season{{Number: 1}}, list) {+ t.Error("stale map reported as used")+ }+ for _, e := range list {+ if e.AltSeason != 0 || e.AltEpisode != 0 {+ t.Fatalf("S%02dE%02d got alt %d/%d", e.Season, e.Number, e.AltSeason, e.AltEpisode)+ }+ }++ // A season TMDB lists but has no episodes in yet (an announced next+ // part) still exists, so the map stays good.+ list = list[:24]+ if !stale.SetReleaseNumbers("5", []Season{{Number: 0}, {Number: 1}, {Number: 2}}, list) {+ t.Error("map with an empty listed season reported as unused")+ }+ if e := list[16]; e.AltSeason != 2 || e.AltEpisode != 5 {+ t.Errorf("empty listed season: S01E17 alt %d/%d, want 2/5", e.AltSeason, e.AltEpisode)+ }+}++// A map that knows the show reports itself used, even when its layout+// agrees with TMDB's and it numbers nothing; one that does not know it+// does not.+func TestAnimeReleaseNumbersUsed(t *testing.T) {+ n := func(v int) *int { return &v }+ list := []Episode{}+ for i := 1; i <= 24; i++ {+ list = append(list, Episode{Season: 1, Number: i})+ }+ seasons := []Season{{Number: 1}}+ agree := AnimeMap{Entries: []AnimeEntry{+ {TMDBTV: 5, TMDBSeason: n(1), TVDBSeason: n(1)},+ {TMDBTV: 5, TMDBSeason: n(1), TMDBOffset: 12, TVDBSeason: n(1), TVDBOffset: 12},+ }}+ if !agree.SetReleaseNumbers("5", seasons, list) || list[16].AltSeason != 0 {+ t.Errorf("agreeing map: alt %d/%d", list[16].AltSeason, list[16].AltEpisode)+ }+ if !(AnimeMap{Entries: []AnimeEntry{{TMDBTV: 5, TMDBSeason: n(1), TVDBSeason: n(1)}}}).SetReleaseNumbers("5", seasons, list) {+ t.Error("one part per season reported as unused")+ }+ if (AnimeMap{Entries: []AnimeEntry{{TMDBTV: 6, TMDBSeason: n(1), TVDBSeason: n(1)}}}).SetReleaseNumbers("5", seasons, list) {+ t.Error("other show's map reported as used")+ }+}++// TVMaze's season sizes split one long TMDB season the way release names+// do; layouts that agree or do not fit are left alone.+func TestSeasonSizeReleaseNumbers(t *testing.T) {+ eps := func(counts ...int) []Episode {+ out := []Episode{{Season: 0, Number: 1, AirDay: "2023-01-01"}}+ for s, c := range counts {+ for i := 1; i <= c; i++ {+ out = append(out, Episode{Season: s + 1, Number: i, AirDay: "2023-04-01"})+ }+ }+ return out+ }+ alt := func(list []Episode, season, number int) [2]int {+ for _, e := range list {+ if e.Season == season && e.Number == number {+ return [2]int{e.AltSeason, e.AltEpisode}+ }+ }+ t.Fatalf("no S%02dE%02d", season, number)+ return [2]int{}+ }++ mashle := eps(25)+ mashle[len(mashle)-1].AirDay = ""+ setSeasonSizes(mashle, []int{12, 12})+ for _, c := range []struct{ season, number, altS, altE int }{+ {1, 5, 0, 0}, {1, 12, 0, 0}, {1, 13, 2, 1}, {1, 17, 2, 5}, {1, 24, 2, 12}, {1, 25, 2, 13}, {0, 1, 0, 0},+ } {+ if a := alt(mashle, c.season, c.number); a != [2]int{c.altS, c.altE} {+ t.Errorf("S%02dE%02d: alt %v, want %d/%d", c.season, c.number, a, c.altS, c.altE)+ }+ }++ two := eps(12, 24)+ setSeasonSizes(two, []int{12, 12, 12})+ if a, b := alt(two, 2, 1), alt(two, 2, 13); a != [2]int{} || b != [2]int{3, 1} {+ t.Errorf("two TMDB seasons: S02E01 %v, S02E13 %v", a, b)+ }++ for name, c := range map[string]struct {+ counts []int+ sizes []int+ }{+ "layouts agree": {[]int{24}, []int{24}},+ "too few episodes": {[]int{24}, []int{12, 6}},+ "split misaligned": {[]int{10, 14}, []int{12, 6, 6}},+ "empty last season": {[]int{24}, []int{12, 12, 12}},+ "no sizes": {[]int{24}, nil},+ } {+ list := eps(c.counts...)+ setSeasonSizes(list, c.sizes)+ for _, e := range list {+ if e.AltSeason != 0 || e.AltEpisode != 0 {+ t.Errorf("%s: S%02dE%02d got alt %d/%d", name, e.Season, e.Number, e.AltSeason, e.AltEpisode)+ }+ }+ }+}diff --git a/app/backend/internal/metadata/service_shows.go b/app/backend/internal/metadata/service_shows.goindex 3bb1585..94a7cb4 100644--- a/app/backend/internal/metadata/service_shows.go+++ b/app/backend/internal/metadata/service_shows.go@@ -82,6 +82,9 @@ func (p *serviceShows) Show(ctx context.Context, id string) (Show, error) {var out Showif p.provider == "tmdb" {out, err = p.tmdbDetail(ctx, value, item)+ if err == nil && out.OriginalLanguage == "ja" {+ p.releaseNumbers(ctx, value, &out)+ }} else {out, err = serviceTVMazeDetail(item)}@@ -93,11 +96,109 @@ func (p *serviceShows) Show(ctx context.Context, id string) (Show, error) {return Show{}, ErrShowNotFound}if p.direct != nil && serviceFallback(ctx, err) {- return p.direct.Show(ctx, id)+ out, err := p.direct.Show(ctx, id)+ // The anime map was not read, so the stored release numbers stay.+ out.AltStale = p.provider == "tmdb" && out.OriginalLanguage == "ja"+ return out, err}return Show{}, err}+// AnimeShows wraps the live TMDB show source, which reads TMDB through+// the server's /v1/tmdb and so never passes serviceShows.Show: Japanese+// TMDB shows it returns get their release-name numbers here.+func (s *Service) AnimeShows(direct ShowProvider) ShowProvider {+ return animeShows{ShowProvider: direct, numbers: &serviceShows{service: s, provider: "tmdb"}}+}++type animeShows struct {+ ShowProvider+ numbers *serviceShows+}++func (a animeShows) Show(ctx context.Context, id string) (Show, error) {+ out, err := a.ShowProvider.Show(ctx, id)+ if err == nil && out.Source == "tmdb" && out.OriginalLanguage == "ja" && out.IDs["tmdb"] != "" {+ ctx, cancel := serviceContext(ctx)+ defer cancel()+ a.numbers.releaseNumbers(ctx, out.IDs["tmdb"], &out)+ }+ return out, err+}++// releaseNumbers adds the release-name numbers from the server's anime+// map, or for an anime the map does not know or has out of date, from+// TVMaze's season sizes. A show neither knows keeps none; a failed call+// marks them stale so the stored ones stay.+func (p *serviceShows) releaseNumbers(ctx context.Context, tmdbID string, out *Show) {+ m, err := p.service.AnimeMap(ctx, "tmdb_tv", tmdbID)+ switch {+ case err == nil:+ if m.SetReleaseNumbers(tmdbID, out.Seasons, out.Episodes) {+ return+ }+ case !errors.Is(err, ErrNotFound):+ out.AltStale = true+ return+ }+ if !LooksAnime(out.Genres, nil, out.OriginalLanguage) {+ return+ }+ sizes, err := p.mazeSeasonSizes(ctx, out)+ if err != nil {+ out.AltStale = true+ return+ }+ setSeasonSizes(out.Episodes, sizes)+}++// mazeSeasonSizes reads the episode counts of TVMaze's regular seasons for+// the show with out's TVDB id, through the server's TVMaze search (by name,+// then original name) and detail. None when no TVMaze show has that id.+func (p *serviceShows) mazeSeasonSizes(ctx context.Context, out *Show) ([]int, error) {+ tvdb := out.IDs["tvdb"]+ if tvdb == "" {+ return nil, nil+ }+ names := append([]string{out.Name}, out.OtherNames...)+ for _, name := range names[:min(2, len(names))] {+ if strings.TrimSpace(name) == "" {+ continue+ }+ res, err := p.service.search(ctx, "tvmaze", "show", name, 1, 20)+ if err != nil {+ return nil, err+ }+ for _, item := range res.Items {+ if show, _, err := serviceTVMazeShowItem(item); err != nil || show.IDs["tvdb"] != tvdb {+ continue+ }+ detail, err := p.service.detail(ctx, "tvmaze", "show", item.SourceID)+ if err != nil {+ return nil, err+ }+ maze, err := serviceTVMazeDetail(detail)+ if err != nil {+ return nil, err+ }+ var sizes []int+ for _, e := range maze.Episodes {+ if e.Season > serviceMaxSeasons {+ return nil, nil+ }+ for e.Season > len(sizes) {+ sizes = append(sizes, 0)+ }+ if e.Season > 0 {+ sizes[e.Season-1]+++ }+ }+ return sizes, nil+ }+ }+ return nil, nil+}+type serviceTMDBShowCounts struct {NumberOfSeasons *int `json:"number_of_seasons"`NumberOfEpisodes *int `json:"number_of_episodes"`diff --git a/app/backend/internal/metadata/service_test.go b/app/backend/internal/metadata/service_test.goindex 9410817..00ac26f 100644--- a/app/backend/internal/metadata/service_test.go+++ b/app/backend/internal/metadata/service_test.go@@ -8,6 +8,7 @@ import ("net/http/cookiejar""net/http/httptest""net/url"+ "slices""strings""sync/atomic""testing"@@ -227,3 +228,196 @@ func TestServiceClearsCookieJarAndRedactsPrivateErrors(t *testing.T) {t.Fatalf("callback leak: %v", err)}}++// A Japanese show reads the anime map, so a TMDB season of two cours+// carries the release-name numbers; a failed map call says so.+func TestServiceShowReleaseNumbers(t *testing.T) {+ for _, tc := range []struct {+ name, lang string+ mapStatus int+ alt [2]int+ stale bool+ mapAsked bool+ }{+ {"mapped", "ja", 200, [2]int{2, 5}, false, true},+ {"not anime", "ja", 404, [2]int{}, false, true},+ {"server error", "ja", 500, [2]int{}, true, true},+ {"not Japanese", "en", 200, [2]int{}, false, false},+ } {+ t.Run(tc.name, func(t *testing.T) {+ var asked atomic.Int32+ s := testService(t, func(w http.ResponseWriter, r *http.Request) {+ switch r.URL.Path {+ case "/v1/anime/map":+ asked.Add(1)+ if r.URL.Query().Get("tmdb") != "42" {+ t.Errorf("map query %s", r.URL.RawQuery)+ }+ if tc.mapStatus != 200 {+ w.WriteHeader(tc.mapStatus)+ return+ }+ _, _ = w.Write([]byte(`{"entries":[{"tmdb_tv":42,"tmdb_season":1,"tvdb_season":1},{"tmdb_tv":42,"tmdb_season":1,"tmdb_offset":12,"tvdb_season":2}]}`))+ case "/v1/shows/tmdb/42":+ serviceReply(w, "tmdb", "42", normalizedItem("tmdb", "42", "show", map[string]any{+ "id": 42, "name": "Series", "original_language": tc.lang, "number_of_seasons": 1, "number_of_episodes": 24,+ "seasons": []any{map[string]any{"id": 421, "season_number": 1, "episode_count": 24}},+ }))+ case "/v1/shows/tmdb/42/seasons/1":+ eps := []any{}+ for i := 1; i <= 24; i++ {+ eps = append(eps, map[string]any{"id": 1000 + i, "season_number": 1, "episode_number": i})+ }+ serviceReply(w, "tmdb", "42", normalizedItem("tmdb", "421", "show", map[string]any{"id": 421, "season_number": 1, "episodes": eps}))+ default:+ http.NotFound(w, r)+ }+ })+ got, err := s.Shows("tmdb", nil).Show(context.Background(), "tmdb:42")+ if err != nil || len(got.Episodes) != 24 {+ t.Fatalf("show: %+v, %v", got, err)+ }+ e17 := got.Episodes[16]+ if e17.Number != 17 || [2]int{e17.AltSeason, e17.AltEpisode} != tc.alt || got.AltStale != tc.stale || (asked.Load() > 0) != tc.mapAsked {+ t.Fatalf("E17 %+v, stale %v, map asked %d", e17, got.AltStale, asked.Load())+ }+ })+ }+}++// When the server fails and TMDB is asked directly, no map was read, so a+// Japanese show's stored release numbers are kept.+func TestServiceShowFallbackKeepsReleaseNumbers(t *testing.T) {+ direct := &titleDirect{show: Show{Name: "direct", OriginalLanguage: "ja", IDs: map[string]string{"tmdb": "42"}}}+ s := testService(t, func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusBadGateway) })+ got, err := s.Shows("tmdb", direct).Show(context.Background(), "tmdb:42")+ if err != nil || got.Name != "direct" || !got.AltStale {+ t.Fatalf("fallback: %+v, %v", got, err)+ }+}++// An anime the map cannot number takes TVMaze's season sizes from the+// server, found by the show's TVDB id; a failed call keeps stored numbers.+func TestServiceShowReleaseNumbersFromTVMaze(t *testing.T) {+ for _, tc := range []struct {+ name string+ searchStatus int+ tvdb int+ alt [2]int+ stale bool+ animeMap string+ }{+ {"split", 200, 999, [2]int{2, 5}, false, ""},+ {"other show", 200, 1000, [2]int{}, false, ""},+ {"server error", 500, 999, [2]int{}, true, ""},+ {"map agrees", 200, 999, [2]int{}, false, `{"entries":[{"tmdb_tv":42,"tmdb_season":1,"tvdb_season":1}]}`},+ } {+ t.Run(tc.name, func(t *testing.T) {+ s := testService(t, func(w http.ResponseWriter, r *http.Request) {+ switch r.URL.Path {+ case "/v1/anime/map":+ if tc.animeMap == "" {+ http.NotFound(w, r)+ return+ }+ w.Header().Set("Content-Type", "application/json")+ _, _ = w.Write([]byte(tc.animeMap))+ case "/v1/search":+ if tc.animeMap != "" {+ t.Error("TVMaze searched although the anime map knows the show")+ }+ if q := r.URL.Query(); q.Get("provider") != "tvmaze" || q.Get("kind") != "show" {+ t.Errorf("search query %s", r.URL.RawQuery)+ }+ if tc.searchStatus != 200 {+ w.WriteHeader(tc.searchStatus)+ return+ }+ serviceReply(w, "tvmaze", "", map[string]any{"items": []any{+ normalizedItem("tvmaze", "77", "show", map[string]any{"id": 77, "name": "Series", "externals": map[string]any{"thetvdb": tc.tvdb}}),+ }, "pagination": map[string]any{"page": 1, "total_pages": 1, "total_results": 1}})+ case "/v1/shows/tvmaze/77":+ eps := []any{}+ for i := 1; i <= 24; i++ {+ eps = append(eps, map[string]any{"id": 5000 + i, "season": 1 + (i-1)/12, "number": 1 + (i-1)%12, "airdate": "2023-04-01"})+ }+ serviceReply(w, "tvmaze", "77", normalizedItem("tvmaze", "77", "show", map[string]any{"id": 77, "name": "Series", "_embedded": map[string]any{"episodes": eps}}))+ case "/v1/shows/tmdb/42":+ serviceReply(w, "tmdb", "42", normalizedItem("tmdb", "42", "show", map[string]any{+ "id": 42, "name": "Series", "original_language": "ja", "number_of_seasons": 1, "number_of_episodes": 24,+ "genres": []any{map[string]any{"id": 16, "name": "Animation"}}, "external_ids": map[string]any{"tvdb_id": 999},+ "seasons": []any{map[string]any{"id": 421, "season_number": 1, "episode_count": 24}},+ }))+ case "/v1/shows/tmdb/42/seasons/1":+ eps := []any{}+ for i := 1; i <= 24; i++ {+ eps = append(eps, map[string]any{"id": 1000 + i, "season_number": 1, "episode_number": i, "air_date": "2023-04-01"})+ }+ serviceReply(w, "tmdb", "42", normalizedItem("tmdb", "421", "show", map[string]any{"id": 421, "season_number": 1, "episodes": eps}))+ default:+ http.NotFound(w, r)+ }+ })+ got, err := s.Shows("tmdb", nil).Show(context.Background(), "tmdb:42")+ if err != nil || len(got.Episodes) != 24 {+ t.Fatalf("show: %+v, %v", got, err)+ }+ e17 := got.Episodes[16]+ if [2]int{e17.AltSeason, e17.AltEpisode} != tc.alt || got.AltStale != tc.stale {+ t.Fatalf("E17 %+v, stale %v", e17, got.AltStale)+ }+ })+ }+}++type fakeShowSource struct{ show Show }++func (f fakeShowSource) SearchShows(context.Context, string) ([]Show, error) { return nil, nil }+func (f fakeShowSource) Show(context.Context, string) (Show, error) {+ f.show.Episodes = slices.Clone(f.show.Episodes)+ return f.show, nil+}++// The live TMDB source reads TMDB itself (through /v1/tmdb), not the+// server's show detail, so release numbers are added around it. Mashle's+// live shape: TMDB season 1 holds 25 episodes (the last undated), the map+// names TMDB seasons 2 and 3 that TMDB no longer has, TVMaze lists 12 + 12.+func TestAnimeShowsNumbersTheTMDBSource(t *testing.T) {+ s := testService(t, func(w http.ResponseWriter, r *http.Request) {+ w.Header().Set("Content-Type", "application/json")+ switch r.URL.Path {+ case "/v1/anime/map":+ _, _ = w.Write([]byte(`{"entries":[{"tmdb_tv":204832,"tmdb_season":1,"tvdb_season":1,"tvdb":421737},{"tmdb_tv":204832,"tmdb_season":2,"tvdb_season":2,"tvdb":421737},{"tmdb_tv":204832,"tmdb_season":3,"tvdb_season":3,"tvdb":421737}]}`))+ case "/v1/search":+ serviceReply(w, "tvmaze", "", map[string]any{"items": []any{+ normalizedItem("tvmaze", "67396", "show", map[string]any{"id": 67396, "name": "Mashle: Magic and Muscles", "externals": map[string]any{"thetvdb": 421737}}),+ }, "pagination": map[string]any{"page": 1, "total_pages": 1, "total_results": 1}})+ case "/v1/shows/tvmaze/67396":+ eps := []any{}+ for i := 1; i <= 24; i++ {+ eps = append(eps, map[string]any{"id": 5000 + i, "season": 1 + (i-1)/12, "number": 1 + (i-1)%12, "airdate": "2023-04-08"})+ }+ serviceReply(w, "tvmaze", "67396", normalizedItem("tvmaze", "67396", "show", map[string]any{"id": 67396, "name": "Mashle: Magic and Muscles", "_embedded": map[string]any{"episodes": eps}}))+ default:+ http.NotFound(w, r)+ }+ })+ show := Show{Source: "tmdb", Name: "MASHLE: MAGIC AND MUSCLES", OriginalLanguage: "ja", Genres: []string{"Animation", "Comedy"},+ IDs: map[string]string{"tmdb": "204832", "tvdb": "421737"}, Seasons: []Season{{Number: 0}, {Number: 1}}}+ for i := 1; i <= 25; i++ {+ e := Episode{Season: 1, Number: i, AirDay: "2023-04-08"}+ if i == 25 {+ e.AirDay = ""+ }+ show.Episodes = append(show.Episodes, e)+ }+ got, err := s.AnimeShows(fakeShowSource{show}).Show(context.Background(), "tmdb:204832")+ if err != nil || len(got.Episodes) != 25 || got.AltStale {+ t.Fatalf("show: %+v, %v", got, err)+ }+ for _, c := range []struct{ i, season, number int }{{11, 0, 0}, {16, 2, 5}, {24, 2, 13}} {+ if e := got.Episodes[c.i]; e.AltSeason != c.season || e.AltEpisode != c.number {+ t.Errorf("E%d: %+v", c.i+1, e)+ }+ }+}diff --git a/app/backend/internal/metadata/shows.go b/app/backend/internal/metadata/shows.goindex 05f0058..2d3313b 100644--- a/app/backend/internal/metadata/shows.go+++ b/app/backend/internal/metadata/shows.go@@ -53,6 +53,9 @@ type Show struct {OtherNames []string `json:"other_names,omitempty"` // original, alternative and translated namesSeasons []Season `json:"seasons,omitempty"`Episodes []Episode `json:"episodes,omitempty"`+ // AltStale says the release-name numbers could not be read this time+ // (the metadata server failed), so stored ones are kept.+ AltStale bool `json:"-"`}// Season is one season of a looked-up show; 0 holds the specials.@@ -77,6 +80,11 @@ type Episode struct {Runtime int `json:"runtime,omitempty"`ID string `json:"id,omitempty"` // the source's episode idStill string `json:"still,omitempty"` // still picture URL (w780), "" when none+ // AltSeason and AltEpisode are how release names number the episode+ // when that differs (an anime part TMDB keeps inside one season); 0 when+ // they agree or nothing is known.+ AltSeason int `json:"alt_season,omitempty"`+ AltEpisode int `json:"alt_episode,omitempty"`}// ShowProvider finds shows. Show takes "<kind>:<id>": the source's own iddiff --git a/app/backend/internal/migrate/apply_titles.go b/app/backend/internal/migrate/apply_titles.goindex bfb164f..b14d246 100644--- a/app/backend/internal/migrate/apply_titles.go+++ b/app/backend/internal/migrate/apply_titles.go@@ -6,6 +6,7 @@ import ("encoding/json""errors""fmt"+ "io/fs""os""path/filepath""reflect"@@ -80,23 +81,44 @@ func (r *run) title(it Item) (string, string) {if !filepath.IsLocal(t.Folder) || strings.ContainsAny(t.Folder, `/\`) {return ResFailed, "its folder name is not one folder"}+ // A title whose own folder is missing (wanted, never downloaded) still+ // comes over, with no files, as Radarr and Sonarr keep it; only a+ // missing Library folder means the paths are wrong.+ noFiles := falseif fi, err := os.Lstat(dir); err != nil || !fi.IsDir() {- return ResNotFound, "no folder at " + filepath.ToSlash(dir) + " on this server; add a path rule"+ if !errors.Is(err, fs.ErrNotExist) {+ return ResNotFound, "no folder at " + filepath.ToSlash(dir) + " on this server; add a path rule"+ }+ if !isDir(lib) {+ return ResNotFound, "no folder at " + filepath.ToSlash(lib) + " on this server; add a path rule"+ }+ noFiles = true}if r.dry {+ if noFiles {+ return ResCreate, "will be added with no files yet; there is no folder at " + filepath.ToSlash(dir)+ }return ResAdopt, "uses the folder " + filepath.ToSlash(dir) + " where it is; no file is moved or renamed"}lfID := r.id("SELECT id FROM library_folders WHERE path = ?", filepath.Clean(lib))if lfID == 0 {return ResNotFound, "its Library folder " + t.Library + " is not here (not imported, or left out)"}- c := library.AdoptChoice{Folder: t.Folder, ID: t.ID}- if t.Kind == "movie" {- c = library.AdoptChoice{Folder: t.Folder, TMDB: strings.TrimPrefix(t.ID, "tmdb:"), ReleaseGate: t.ReleaseGate, GateDelayDays: t.GateDelayDays}- }- res, err := r.m.Library.Adopt(r.ctx, lfID, []library.AdoptChoice{c}, r.by)- if err == nil && len(res) == 1 && res[0].Error != "" {- err = errors.New(res[0].Error)+ var res []library.AdoptResult+ var err error+ if noFiles {+ var id int64+ id, err = r.addNoFiles(lfID, t)+ res = []library.AdoptResult{{TitleID: id}}+ } else {+ c := library.AdoptChoice{Folder: t.Folder, ID: t.ID}+ if t.Kind == "movie" {+ c = library.AdoptChoice{Folder: t.Folder, TMDB: strings.TrimPrefix(t.ID, "tmdb:"), ReleaseGate: t.ReleaseGate, GateDelayDays: t.GateDelayDays}+ }+ res, err = r.m.Library.Adopt(r.ctx, lfID, []library.AdoptChoice{c}, r.by)+ if err == nil && len(res) == 1 && res[0].Error != "" {+ err = errors.New(res[0].Error)+ }}if err != nil {return ResFailed, err.Error()@@ -152,15 +174,57 @@ func (r *run) title(it Item) (string, string) {_ = shows.New(r.m.Library).SetSeason(r.ctx, id, n, false, r.by) // a season the show does not have is fine}d := "uses the folder " + filepath.ToSlash(dir) + " where it is"+ if noFiles {+ d = "added with no files yet; there is no folder at " + filepath.ToSlash(dir)+ }if res[0].File != "" {d += ", with " + res[0].File}if !t.KeepUpToDate {d += "; Keep up to date off"}+ if noFiles {+ return ResCreated, d+ }return ResAdopted, d}+// addNoFiles adds a title whose folder is not on disk the way a request+// adds one: its ids, its folder name from the old app, and no files.+func (r *run) addNoFiles(lfID int64, t *TitlePlan) (int64, error) {+ switch t.Kind {+ case "movie":+ if r.m.Library.Metadata == nil {+ return 0, errors.New("no metadata source")+ }+ tmdb := strings.TrimPrefix(t.ID, "tmdb:")+ m, err := r.m.Library.Metadata.Movie(r.ctx, "tmdb:"+tmdb)+ if err != nil {+ return 0, fmt.Errorf("TMDB %s: %w", tmdb, err)+ }+ id, _, err := r.m.Library.Add(r.ctx, m, library.AddOptions{LibraryFolderID: lfID, WhyAdded: "import",+ ReleaseGate: t.ReleaseGate, GateDelayDays: t.GateDelayDays, Adopt: &library.Adoption{FolderName: t.Folder}}, r.by)+ return id, err+ case "show":+ id, _, err := shows.New(r.m.Library).AddShow(r.ctx, t.ID, shows.ShowAddOptions{LibraryFolderID: lfID, WhyAdded: "import",+ Adopt: &shows.ShowAdoption{FolderName: t.Folder, LibraryPath: filepath.FromSlash(t.Library)}}, r.by)+ return id, err+ case "artist":+ id, _, err := r.m.Library.AddArtist(r.ctx, t.ID, library.ArtistAddOptions{LibraryFolderID: lfID, WhyAdded: "import",+ Adopt: &library.MusicAdoption{FolderName: t.Folder}}, r.by)+ if err != nil {+ return 0, err+ }+ // The albums are read now, so the old app's album choices apply.+ if _, err := r.m.Library.RefreshArtist(r.ctx, id, r.by, nil); err != nil {+ _, _ = r.m.Library.Remove(context.WithoutCancel(r.ctx), id, library.RemoveChoice{}, true, r.by)+ return 0, fmt.Errorf("its albums could not be read: %w", err)+ }+ return id, nil+ }+ return 0, errors.New("unknown title kind " + t.Kind)+}+type musicPartState struct {PartID int64 `json:"part_id"`PartFingerprint string `json:"part_fingerprint"`diff --git a/app/backend/internal/migrate/folders_seen.go b/app/backend/internal/migrate/folders_seen.gonew file mode 100644index 0000000..f12b41e--- /dev/null+++ b/app/backend/internal/migrate/folders_seen.go@@ -0,0 +1,63 @@+package migrate++import (+ "os"+ "path/filepath"+ "sort"+ "strings"++ "github.com/HolyArrs/holyarrs/app/backend/internal/core/startup"+)++// systemMounts are mount roots that never hold media.+var systemMounts = []string{"/proc", "/sys", "/dev", "/etc", "/run", "/boot", "/snap", "/usr", "/var", "/tmp", "/config"}++// SeenFolders lists the folders mounted into HolyArrs (inside a container,+// the right side of each volume), so the folder step can suggest them. It+// is empty where there is no mount list.+func SeenFolders() []string {+ b, err := os.ReadFile("/proc/self/mountinfo")+ if err != nil {+ return []string{}+ }+ return seenFolders(string(b), isDir)+}++func seenFolders(mountinfo string, dir func(string) bool) []string {+ out := []string{}+ for rel := range startup.MountsUnder(mountinfo, "/") {+ p := "/" + rel+ if dir(p) && !underAny(systemMounts, p) {+ out = append(out, p)+ }+ }+ sort.Strings(out)+ if len(out) > 50 {+ out = out[:50]+ }+ return out+}++func underAny(roots []string, p string) bool {+ for _, r := range roots {+ if p == r || strings.HasPrefix(p, r+"/") {+ return true+ }+ }+ return false+}++// missingTargets lists, by old folder, the new folders the path rules point+// at that are not a folder on this server, the same check the dry run+// makes later.+func missingTargets(p *Plan) map[string]string {+ out := map[string]string{}+ for _, g := range p.Groups {+ for _, it := range g.Items {+ if f := it.Folder; f != nil && f.Path != f.OldPath && !isDir(filepath.FromSlash(f.Path)) {+ out[f.OldPath] = f.Path+ }+ }+ }+ return out+}diff --git a/app/backend/internal/migrate/folders_seen_test.go b/app/backend/internal/migrate/folders_seen_test.gonew file mode 100644index 0000000..2d176ea--- /dev/null+++ b/app/backend/internal/migrate/folders_seen_test.go@@ -0,0 +1,39 @@+package migrate++import (+ "path/filepath"+ "slices"+ "testing"+)++// The folders HolyArrs can see are the mounts it was given, without the+// system ones and without its own config folder.+func TestSeenFolders(t *testing.T) {+ info := `22 1 0:21 / / rw - overlay overlay rw+23 22 0:22 / /proc rw - proc proc rw+24 22 0:23 / /dev rw - tmpfs tmpfs rw+25 24 0:24 / /dev/shm rw - tmpfs shm rw+26 22 8:1 /home/mark/config /config rw - ext4 /dev/sda1 rw+27 22 8:1 /home/mark/Holyarrs/Movies /data/movies rw - ext4 /dev/sda1 rw+28 22 8:1 /home/mark/Holyarrs/TV\040Shows /data/tv\040shows rw - ext4 /dev/sda1 rw+29 22 8:1 /etc/hosts /etc/hosts rw - ext4 /dev/sda1 rw+30 22 8:1 /home/mark/file.txt /data/file.txt rw - ext4 /dev/sda1 rw+`+ dirs := map[string]bool{"/proc": true, "/dev": true, "/dev/shm": true, "/config": true, "/data/movies": true, "/data/tv shows": true}+ got := seenFolders(info, func(p string) bool { return dirs[p] })+ if want := []string{"/data/movies", "/data/tv shows"}; !slices.Equal(got, want) {+ t.Fatalf("seen %v, want %v", got, want)+ }+}++// A path rule that points at a folder HolyArrs cannot see is listed for its+// old folder, so the folder step can say so right away.+func TestMissingTargets(t *testing.T) {+ here := filepath.ToSlash(t.TempDir())+ snap := &Snapshot{Kind: Radarr, Folders: []Folder{{Path: "/movies"}, {Path: "/4k"}, {Path: "/kept"}}}+ p := BuildPlan([]Input{{1, snap}}, Choices{PathRules: []PathRule{{From: "/movies", To: "/home/mark/Holyarrs/Movies"}, {From: "/4k", To: here}}})+ got := missingTargets(p)+ if len(got) != 1 || got["/movies"] != "/home/mark/Holyarrs/Movies" {+ t.Fatalf("missing %v", got)+ }+}diff --git a/app/backend/internal/migrate/missing_folder_test.go b/app/backend/internal/migrate/missing_folder_test.gonew file mode 100644index 0000000..8df1897--- /dev/null+++ b/app/backend/internal/migrate/missing_folder_test.go@@ -0,0 +1,166 @@+package migrate++import (+ "context"+ "os"+ "path/filepath"+ "strings"+ "testing"+ "time"++ domain "github.com/HolyArrs/holyarrs/app/backend/internal/core/model"+ "github.com/HolyArrs/holyarrs/app/backend/internal/metadata"+)++// A movie the old app wanted but never got has no folder of its own. Its+// Library folder is here, so it comes over as a title with no files, the+// way Radarr keeps it as missing.+func TestMoveAddsTitleWithoutItsFolder(t *testing.T) {+ l := newMoveLabWith(t, func(radarr, _, _ *Snapshot) {+ radarr.Titles = append(radarr.Titles, Title{SourceID: 2, Kind: "movie", Name: "The Matrix Reloaded", Year: 2003,+ IDs: map[string]string{"tmdb": "604"}, Path: "/movies/The Matrix Reloaded (2003)", Monitored: true, ProfileID: 2,+ Extra: map[string]any{"minimum_availability": "inCinemas"}})+ })+ l.mv.Library.Metadata = &metadata.Static{Movies: []metadata.Movie{+ {Name: "The Matrix", Year: 1999, IDs: map[string]string{"tmdb": "603", "imdb": "tt0133093"}},+ {Name: "The Matrix Reloaded", Year: 2003, IDs: map[string]string{"tmdb": "604", "imdb": "tt0234215"}},+ }}+ const key = "title:movie:tmdb:604"++ // The dry run says it will be added with no files yet, so Before you+ // import counts it with the titles that come over.+ rep := l.mv.Run(context.Background(), 0, l.plan(t), true, domain.Actor{Kind: "user", ID: 1}, nil)+ if got := lineOf(t, rep, key); got.Result != ResCreate || !strings.Contains(got.Detail, "no files") {+ t.Fatalf("dry run %+v", got)+ }++ mv := l.move(t, Choices{})+ if got := lineOf(t, mv.Report, key); got.Result != ResCreated || !strings.Contains(got.Detail, "no files") {+ t.Fatalf("move %+v", got)+ }+ var keep bool+ var folder, rules, gate, state string+ if err := l.st.Read().QueryRow(`SELECT t.keep_up_to_date, v.folder_name, p.name, t.release_gate, s.state FROM titles t+ JOIN versions v ON v.title_id = t.id JOIN pick_rules p ON p.id = v.pick_rules_id JOIN slots s ON s.version_id = v.id+ WHERE json_extract(t.source_ids, '$.tmdb') = '604'`).Scan(&keep, &folder, &rules, &gate, &state); err != nil {+ t.Fatal(err)+ }+ if !keep || folder != "The Matrix Reloaded (2003)" || rules != "4K" || gate != "in_cinemas" || state == "in_library" {+ t.Fatalf("keep %v folder %q rules %q gate %q slot %q", keep, folder, rules, gate, state)+ }+ if n := l.count(t, "SELECT count(*) FROM files f JOIN versions v ON v.id = f.version_id JOIN titles t ON t.id = v.title_id WHERE json_extract(t.source_ids, '$.tmdb') = '604'"); n != 0 {+ t.Fatalf("%d files for a title with no folder", n)+ }++ // Undo takes it out again with the rest.+ if got := l.undo(t, mv.ID); got.State != "undone" {+ t.Fatalf("undo %+v", got)+ }+ if n := l.count(t, "SELECT count(*) FROM titles WHERE json_extract(source_ids, '$.tmdb') = '604' AND state = 'active'"); n != 0 {+ t.Fatalf("undo left the title: %d", n)+ }+}++// With no Library folder here, the title still says no folder here.+func TestDryRunTitleWithoutLibraryFolderNotFound(t *testing.T) {+ l := newMoveLab(t)+ l.rules = nil+ rep := l.mv.Run(context.Background(), 0, l.plan(t), true, domain.Actor{Kind: "user", ID: 1}, nil)+ if got := lineOf(t, rep, "title:movie:tmdb:603"); got.Result != ResNotFound {+ t.Fatalf("title %+v", got)+ }+}++// A title folder that is there but is a link or not a folder is not+// treated as missing: it stays not found, and nothing is added.+func TestDryRunTitleFolderThereButNotPlainFolder(t *testing.T) {+ cases := map[string]func(t *testing.T, dir string){+ "file": func(t *testing.T, dir string) {+ if err := os.RemoveAll(dir); err != nil {+ t.Fatal(err)+ }+ if err := os.WriteFile(dir, []byte("x"), 0o644); err != nil {+ t.Fatal(err)+ }+ },+ "link": func(t *testing.T, dir string) {+ real := filepath.Join(t.TempDir(), "real")+ if err := os.Rename(dir, real); err != nil {+ t.Fatal(err)+ }+ if err := os.Symlink(real, dir); err != nil {+ t.Skip("no symlinks here:", err)+ }+ },+ }+ for name, setup := range cases {+ t.Run(name, func(t *testing.T) {+ l := newMoveLab(t)+ setup(t, filepath.Join(l.movies, "The Matrix (1999)"))+ rep := l.mv.Run(context.Background(), 0, l.plan(t), true, domain.Actor{Kind: "user", ID: 1}, nil)+ if got := lineOf(t, rep, "title:movie:tmdb:603"); got.Result != ResNotFound || strings.Contains(got.Detail, "no files") {+ t.Fatalf("dry run %+v", got)+ }+ })+ }+}++type oneShow struct{ sh metadata.Show }++func (o oneShow) SearchShows(context.Context, string) ([]metadata.Show, error) {+ return []metadata.Show{o.sh}, nil+}++func (o oneShow) Show(_ context.Context, id string) (metadata.Show, error) {+ for k, v := range o.sh.IDs {+ if id == k+":"+v {+ return o.sh, nil+ }+ }+ return metadata.Show{}, metadata.ErrShowNotFound+}++// A show with no folder of its own comes over with its episodes wanted, as+// Sonarr keeps it.+func TestMoveAddsShowWithoutItsFolder(t *testing.T) {+ l := newMoveLab(t)+ tv := filepath.Join(t.TempDir(), "tv")+ if err := os.MkdirAll(tv, 0o755); err != nil {+ t.Fatal(err)+ }+ aired := time.Date(2025, 1, 6, 2, 0, 0, 0, time.UTC)+ l.mv.Library.Shows = metadata.ShowSources{"tmdb": oneShow{metadata.Show{Source: "tmdb", Name: "Lab Show", Year: 2025, IDs: map[string]string{"tmdb": "100", "tvdb": "200"},+ Seasons: []metadata.Season{{Number: 1, Name: "Season 1"}},+ Episodes: []metadata.Episode{{Season: 1, Number: 1, Name: "Pilot", AirDate: &aired, Timed: true, AirDay: "2025-01-05", ID: "tmdb-101"}}}}}+ sonarr := &Snapshot{Kind: Sonarr, Via: ViaAPI, Folders: []Folder{{Path: "/tv"}},+ Titles: []Title{{SourceID: 1, Kind: "show", Name: "Lab Show", IDs: map[string]string{"tvdb": "200"}, Path: "/tv/Lab Show", Monitored: true,+ Seasons: []Season{{Number: 1, Monitored: true}}}}}+ sonarr.finish()+ saved, err := Save(context.Background(), l.st, 1, sonarr)+ if err != nil {+ t.Fatal(err)+ }+ l.snaps = append(l.snaps, saved.ID)+ l.rules = append(l.rules, PathRule{From: "/tv", To: filepath.ToSlash(tv)})+ const key = "title:show:tvdb:200"++ rep := l.mv.Run(context.Background(), 0, l.plan(t), true, domain.Actor{Kind: "user", ID: 1}, nil)+ if got := lineOf(t, rep, key); got.Result != ResCreate {+ t.Fatalf("dry run %+v", got)+ }+ mv := l.move(t, Choices{})+ if got := lineOf(t, mv.Report, key); got.Result != ResCreated {+ t.Fatalf("move %+v", got)+ }+ var folder string+ if err := l.st.Read().QueryRow(`SELECT v.folder_name FROM versions v JOIN titles t ON t.id = v.title_id WHERE json_extract(t.source_ids, '$.tvdb') = '200'`).Scan(&folder); err != nil {+ t.Fatal(err)+ }+ if folder != "Lab Show" {+ t.Fatalf("folder %q", folder)+ }+ if n := l.count(t, `SELECT count(*) FROM slots s JOIN items i ON i.id = s.item_id JOIN titles t ON t.id = i.title_id+ WHERE json_extract(t.source_ids, '$.tvdb') = '200' AND s.state = 'wanted'`); n != 1 {+ t.Fatalf("%d wanted episodes", n)+ }+}diff --git a/app/backend/internal/migrate/moves.go b/app/backend/internal/migrate/moves.goindex 0e84b4b..7954dbe 100644--- a/app/backend/internal/migrate/moves.go+++ b/app/backend/internal/migrate/moves.go@@ -535,7 +535,11 @@ func (m *Mover) undoOne(ctx context.Context, x madeRow, by domain.Actor) (stringcase e == nil:return ResRemoved, ""case errors.Is(e, library.ErrFolderInUse):- return ResKept, "the titles that were in it stay in History as removed, so the folder stays"+ return ResKept, "titles in the Library still use it, so the folder stays"+ case errors.Is(e, library.ErrFolderHeld):+ return ResKept, "deleted files still wait in its holding folder, so the folder stays"+ case errors.Is(e, library.ErrFolderListed):+ return ResKept, "an outside list still uses it, so the folder stays"case errors.Is(e, database.ErrNotFound):return ResKept, "already gone"}diff --git a/app/backend/internal/migrate/routes_move.go b/app/backend/internal/migrate/routes_move.goindex e85601d..8916d48 100644--- a/app/backend/internal/migrate/routes_move.go+++ b/app/backend/internal/migrate/routes_move.go@@ -99,7 +99,7 @@ func (h *Handlers) movePlan(w http.ResponseWriter, r *http.Request) {return}webserver.WriteJSON(w, http.StatusOK, map[string]any{"plan": p, "counts": p.Counts(), "suggested_path_rules": SuggestRules(r.Context(), h.Store, p),- "plan_hash": PlanHash(p)})+ "missing_paths": missingTargets(p), "seen_folders": SeenFolders(), "plan_hash": PlanHash(p)})}func (h *Handlers) moveDryRun(w http.ResponseWriter, r *http.Request) {diff --git a/app/backend/internal/shows/adopt.go b/app/backend/internal/shows/adopt.goindex bff765b..2fb9c4a 100644--- a/app/backend/internal/shows/adopt.go+++ b/app/backend/internal/shows/adopt.go@@ -86,15 +86,15 @@ func matchShowFolder(ctx context.Context, p metadata.ShowProvider, folder string}// mapEpisodeFiles matches each video of a show folder to its episodes by-// name (S01E02, multi-episode names, an air day or a running number). A-// file naming another show, no episode, or an episode a bigger file holds+// name (S01E02, multi-episode names, an air day or a running number). The+// folder is the show's, so the show name in a file name does not count, as+// in Sonarr. A file naming no episode, or an episode a bigger file holds// too, is listed with the reason and left alone.func mapEpisodeFiles(vids []library.AdoptVideo, sh metadata.Show, order string) []library.AdoptEpisodeFile {refs := make([]mediafiles.EpisodeRef, len(sh.Episodes))for i, e := range sh.Episodes {- refs[i] = mediafiles.EpisodeRef{ItemID: int64(i + 1), Season: e.Season, Episode: e.Number, Absolute: e.Absolute, AirDay: e.AirDay}+ refs[i] = mediafiles.EpisodeRef{ItemID: int64(i + 1), Season: e.Season, Episode: e.Number, Absolute: e.Absolute, AirDay: e.AirDay, AltSeason: e.AltSeason, AltEpisode: e.AltEpisode}}- lib := []mediafiles.TitleRef{{Name: sh.Name, Aliases: sh.OtherNames, Year: sh.Year, Kind: "show"}}taken := map[[2]int]bool{}out := make([]library.AdoptEpisodeFile, 0, len(vids))for _, v := range vids { // biggest first@@ -106,12 +106,6 @@ func mapEpisodeFiles(vids []library.AdoptVideo, sh metadata.Show, order string)case mediafiles.IsPack(p):f.Why = "the file name names whole seasons, not episodes"default:- if strings.TrimSpace(p.Title.Value) != "" {- if m := mediafiles.MatchTitle(p, lib); m.Title == nil {- f.Why = "the file name names another show (" + p.Title.Value + ")"- break- }- }found, why := mediafiles.MatchEpisodes(p, order, refs)if len(found) == 0 {f.Why = why@@ -346,8 +340,9 @@ func adoptEpisodesTx(ctx context.Context, tx *sql.Tx, titleID, versionID, pickRustate, why = mediafiles.SlotBetterWanted, "adopted below good enough, so a better copy is sought"}for _, sid := range slotIDs {- // The Slots were written moments ago in this same write, so they- // take the adopted state as a new movie's Slot does.+ // The Slots were written moments ago in this same write, or found+ // empty in it, so they take the adopted state as a new movie's+ // Slot does.if _, err := tx.Exec(`UPDATE slots SET file_id = ?, good_enough = ?, state = ?, last_reason = ?, held_release_id = NULL WHERE id = ? AND state != 'removed'`,fileID, ge, string(state), why, sid); err != nil {return err@@ -392,9 +387,12 @@ func (s *Service) adoptShowOne(ctx context.Context, lf mediafiles.LibraryFolder,return r, nil}-// recordFoundEpisodes records unknown videos in a show's folder as found-// Files with the episodes their names give: shown, never renamed, moved-// or deleted, and never filling a Slot.+var errNotLinked = errors.New("not linked")++// recordFoundEpisodes links unknown videos in a show's folder to the+// episodes their names give while those are all still empty, the way+// adopting does, and records the others as found Files: shown, never+// renamed, moved or deleted, and never filling a Slot.func (s *Service) recordFoundEpisodes(ctx context.Context, lf mediafiles.LibraryFolder, v mediafiles.Version, known map[string]bool, by domain.Actor) (int, error) {db := s.Store.Read()var t mediafiles.Title@@ -421,6 +419,9 @@ func (s *Service) recordFoundEpisodes(ctx context.Context, lf mediafiles.Libraryif it.AirDay != nil {e.AirDay = *it.AirDay}+ if it.Numbers.AltSeason != nil && it.Numbers.AltEpisode != nil {+ e.AltSeason, e.AltEpisode = *it.Numbers.AltSeason, *it.Numbers.AltEpisode+ }sh.Episodes = append(sh.Episodes, e)byKey[[2]int{e.Season, e.Number}] = it.ID}@@ -428,18 +429,38 @@ func (s *Service) recordFoundEpisodes(ctx context.Context, lf mediafiles.Libraryif t.EpisodeOrder != nil && *t.EpisodeOrder != "" {order = *t.EpisodeOrder}+ // Found notes of earlier rescans are looked at again, so one whose+ // episodes are still empty gets linked.+ notes := map[string]int64{}+ rows, err := db.QueryContext(ctx, "SELECT id, relative_path FROM files WHERE version_id = ? AND origin = 'found' AND state = 'present'", v.ID)+ if err != nil {+ return 0, err+ }+ for rows.Next() {+ var id int64+ var rel string+ if err := rows.Scan(&id, &rel); err != nil {+ _ = rows.Close()+ return 0, err+ }+ notes[strings.ToLower(rel)] = id+ }+ _ = rows.Close()var unknown []library.AdoptVideofor _, vid := range library.ListVideosN(lf.Path, v.FolderName, maxShowVideos) {- if !known[strings.ToLower(vid.Path)] {+ if !known[strings.ToLower(vid.Path)] || notes[strings.ToLower(vid.Path)] != 0 {unknown = append(unknown, vid)}}n := 0for _, af := range mapEpisodeFiles(unknown, sh, order) {- var exists int- _ = db.QueryRowContext(ctx, "SELECT count(*) FROM files WHERE version_id = ? AND relative_path = ?", v.ID, af.Path).Scan(&exists)- if exists > 0 {- continue+ note := notes[strings.ToLower(af.Path)]+ if note == 0 {+ var exists int+ _ = db.QueryRowContext(ctx, "SELECT count(*) FROM files WHERE version_id = ? AND relative_path = ?", v.ID, af.Path).Scan(&exists)+ if exists > 0 {+ continue+ }}slotIDs := []int64{}for _, k := range af.Keys {@@ -448,6 +469,59 @@ func (s *Service) recordFoundEpisodes(ctx context.Context, lf mediafiles.LibraryslotIDs = append(slotIDs, sid)}}+ if len(slotIDs) > 0 && len(slotIDs) == len(af.Keys) {+ linked := false+ err := s.Store.Write(ctx, func(tx *sql.Tx) error {+ for _, sid := range slotIDs {+ var sl mediafiles.Slot+ if err := database.Get(ctx, tx, "slots", sid, &sl); err != nil {+ return err+ }+ switch sl.State {+ case mediafiles.SlotRemoved, mediafiles.SlotChosen, mediafiles.SlotDownloading, mediafiles.SlotImporting:+ return nil+ }+ if sl.FileID != nil || sl.ActiveDownloadID != nil {+ return nil+ }+ }+ protected := false+ if note != 0 {+ var err error+ if protected, err = mediafiles.ProtectedAt(ctx, tx, v.ID, af.Path); err != nil {+ return err+ }+ if _, err := tx.Exec("DELETE FROM files WHERE id = ? AND origin = 'found'", note); err != nil {+ return err+ }+ }+ a := &ShowAdoption{FolderName: v.FolderName, LibraryPath: lf.Path}+ if err := adoptEpisodesTx(ctx, tx, t.ID, v.ID, v.PickRulesID, v.KeepUpToDate, []library.AdoptEpisodeFile{af}, a, s.Clock(), by); err != nil {+ return err+ }+ if a.Adopted == 0 {+ return errNotLinked // keeps the note+ }+ if protected {+ if err := mediafiles.ProtectAt(ctx, tx, v.ID, af.Path); err != nil {+ return err+ }+ }+ linked = true+ return nil+ })+ if err != nil && !errors.Is(err, errNotLinked) {+ return n, err+ }+ if linked {+ n+++ known[strings.ToLower(af.Path)] = true+ continue+ }+ }+ if note != 0 {+ continue+ }release := strings.TrimSuffix(path.Base(af.Path), path.Ext(af.Path))info, _ := library.InspectLibraryVideo(lf.Path, af.Path, nil, false)if info == nil {diff --git a/app/backend/internal/shows/adopt_country_name_test.go b/app/backend/internal/shows/adopt_country_name_test.goindex 6f9490c..d34346f 100644--- a/app/backend/internal/shows/adopt_country_name_test.go+++ b/app/backend/internal/shows/adopt_country_name_test.go@@ -21,9 +21,10 @@ func TestMapEpisodeFilesTakesTheFolderShowsOtherNames(t *testing.T) {t.Fatalf("%s: not matched (%s)", f.Path, f.Why)}}- // Another show's file in the folder is still left alone.+ // In the show's own folder a file under another name still links by+ // its numbers, as Sonarr does.other := mapEpisodeFiles([]library.AdoptVideo{{Path: "Parks and Recreation - S01E01.mkv", Size: 1 << 20}}, sh, "aired")- if len(other[0].Episodes) != 0 {- t.Fatalf("another show's file was matched: %+v", other[0])+ if len(other[0].Episodes) != 1 {+ t.Fatalf("a file in the show's folder was left alone: %+v", other[0])}}diff --git a/app/backend/internal/shows/adopt_release_numbers_test.go b/app/backend/internal/shows/adopt_release_numbers_test.gonew file mode 100644index 0000000..e6f940f--- /dev/null+++ b/app/backend/internal/shows/adopt_release_numbers_test.go@@ -0,0 +1,64 @@+package shows++import (+ "context"+ "database/sql"+ "path/filepath"+ "testing"++ domain "github.com/HolyArrs/holyarrs/app/backend/internal/core/model"+ "github.com/HolyArrs/holyarrs/app/backend/internal/library"+ "github.com/HolyArrs/holyarrs/app/backend/internal/metadata"+)++// A show whose details source keeps two parts in one season: files named+// by the release-name numbers (S02E05 for stored S01E17) are adopted.+func TestMapEpisodeFilesTakesReleaseNameNumbers(t *testing.T) {+ sh := metadata.Show{Name: "Mashle", Year: 2023}+ for n := 1; n <= 25; n++ {+ e := metadata.Episode{Season: 1, Number: n, Absolute: n}+ if n > 12 {+ e.AltSeason, e.AltEpisode = 2, n-12+ }+ sh.Episodes = append(sh.Episodes, e)+ }+ got := mapEpisodeFiles([]library.AdoptVideo{{Path: "Mashle - S02E05 - Something.mkv", Size: 1 << 20}}, sh, "aired")+ if len(got[0].Keys) != 1 || got[0].Keys[0] != [2]int{1, 17} {+ t.Fatalf("got %+v, want stored S01E17", got[0])+ }+}++// A found file named by the release-name numbers lands on the stored episode.+func TestRescanFoundFileTakesReleaseNameNumbers(t *testing.T) {+ svc, s, _, _ := addShowService(t)+ ctx := context.Background()+ lf := addShowFolder(t, s)+ showTree(t, lf.Path)+ res, err := svc.Adopt(ctx, lf.ID, []library.AdoptChoice{{Folder: "Lab Show (2025)", ID: "tmdb:100"}}, domain.System)+ if err != nil || res[0].Error != "" {+ t.Fatalf("adopt: %+v %v", res, err)+ }+ id := res[0].TitleID+ if _, err := svc.Rescan(ctx, domain.System); err != nil {+ t.Fatal(err)+ }+ ep := episodes(t, s, id)["S02E03"]+ if err := s.Write(ctx, func(tx *sql.Tx) error {+ _, err := tx.Exec("UPDATE items SET numbers = json_set(numbers, '$.alt_season', 5, '$.alt_episode', 7) WHERE id = ?", ep.ItemID)+ return err+ }); err != nil {+ t.Fatal(err)+ }+ writeFile(t, filepath.Join(lf.Path, "Lab Show (2025)", "Season 2", "Lab Show S05E07.mkv"), "new episode file")+ if r, err := svc.Rescan(ctx, domain.System); err != nil || r.Found != 1 {+ t.Fatalf("rescan %+v %v", r, err)+ }+ rel := filepath.ToSlash(filepath.Join("Lab Show (2025)", "Season 2", "Lab Show S05E07.mkv"))+ var fid int64+ if err := s.Read().QueryRow("SELECT id FROM files WHERE relative_path = ?", rel).Scan(&fid); err != nil {+ t.Fatalf("not recorded: %v", err)+ }+ if f := fileRow(t, s, fid); len(f.SlotIDs) != 1 || f.SlotIDs[0] != ep.SlotID {+ t.Fatalf("found file %+v, want the S02E03 slot", f)+ }+}diff --git a/app/backend/internal/shows/adopt_test.go b/app/backend/internal/shows/adopt_test.goindex 6aee8c4..40ca739 100644--- a/app/backend/internal/shows/adopt_test.go+++ b/app/backend/internal/shows/adopt_test.go@@ -79,7 +79,7 @@ func TestPlanShowAdopt(t *testing.T) {if lab.Episodes != 4 || lab.Unknown != 3 {t.Errorf("counts %d %d", lab.Episodes, lab.Unknown)}- if !strings.Contains(why["Lab Show (2025)/Season 1/Other.Show.S01E03.mkv"], "another show") {+ if !strings.Contains(why["Lab Show (2025)/Season 1/Other.Show.S01E03.mkv"], "S01E03") {t.Errorf("other show why %q", why["Lab Show (2025)/Season 1/Other.Show.S01E03.mkv"])}if h := c["Holiday Videos"]; h.Status != "unmatched" {@@ -174,7 +174,7 @@ func TestAdoptShowMovesNothing(t *testing.T) {}// 5.2.2: a rescan marks a missing episode file and one that came back,-// records a new video as found with its episodes, and an empty Library+// links a new video to its empty episode, and an empty Library// folder (a dropped mount) marks nothing missing and warns in the scan.func TestRescanShowFolder(t *testing.T) {svc, s, _, _ := addShowService(t)@@ -204,11 +204,11 @@ func TestRescanShowFolder(t *testing.T) {t.Fatal(err)}_ = database.Get(ctx, s.Read(), "files", found.ID, &found)- if found.Origin != "found" || len(found.SlotIDs) != 1 || found.SlotIDs[0] != eps["S02E03"].SlotID {+ if found.Origin != "adopted" || len(found.SlotIDs) != 1 || found.SlotIDs[0] != eps["S02E03"].SlotID {t.Errorf("found %+v", found)}- if eps["S02E03"].State == mediafiles.SlotInLibrary {- t.Error("a found file filled an episode")+ if st := eps["S02E03"].State; st != mediafiles.SlotInLibrary && st != mediafiles.SlotBetterWanted {+ t.Errorf("the new file did not fill its empty episode: %s", st)}if err := os.Rename(first+".away", first); err != nil {t.Fatal(err)diff --git a/app/backend/internal/shows/inspection_rescan_test.go b/app/backend/internal/shows/inspection_rescan_test.goindex 9f37d85..5edf8d0 100644--- a/app/backend/internal/shows/inspection_rescan_test.go+++ b/app/backend/internal/shows/inspection_rescan_test.go@@ -45,13 +45,14 @@ func TestShowAdoptionAndFoundFilesUseInspectedHeaders(t *testing.T) {if err := database.Get(context.Background(), s.Read(), "files", found.ID, &found); err != nil {t.Fatal(err)}- if found.Origin != "found" || found.MediaInfo["video_codec"] != "hevc" || fmt.Sprint(found.MediaInfo["audio_languages"]) != "[fr]" {+ if found.Origin != "adopted" || found.MediaInfo["video_codec"] != "hevc" || fmt.Sprint(found.MediaInfo["audio_languages"]) != "[fr]" {t.Fatalf("found show facts: %+v", found)}}// TestRescanRecordsNewEpisodeFile: a new episode file dropped into an-// adopted show's folder is recorded as found on the next rescan, once.+// adopted show's folder is linked to its empty episode on the next rescan,+// once.func TestRescanRecordsNewEpisodeFile(t *testing.T) {svc, s, _, _ := addShowService(t)ctx := context.Background()@@ -78,8 +79,8 @@ func TestRescanRecordsNewEpisodeFile(t *testing.T) {t.Fatalf("the new episode file was not recorded: %v", err)}f := fileRow(t, s, fid)- if f.Origin != "found" || len(f.SlotIDs) != 1 || f.SlotIDs[0] != episodes(t, s, id)["S02E03"].SlotID {- t.Fatalf("found file %+v, want origin found on the S02E03 slot", f)+ if f.Origin != "adopted" || len(f.SlotIDs) != 1 || f.SlotIDs[0] != episodes(t, s, id)["S02E03"].SlotID {+ t.Fatalf("found file %+v, want it adopted on the S02E03 slot", f)}second, err := svc.Rescan(ctx, domain.System)if err != nil || second.Found != 0 {diff --git a/app/backend/internal/shows/rescan_link_test.go b/app/backend/internal/shows/rescan_link_test.gonew file mode 100644index 0000000..da98af1--- /dev/null+++ b/app/backend/internal/shows/rescan_link_test.go@@ -0,0 +1,141 @@+package shows++import (+ "context"+ "database/sql"+ "path/filepath"+ "testing"++ "github.com/HolyArrs/holyarrs/app/backend/internal/core/database"+ domain "github.com/HolyArrs/holyarrs/app/backend/internal/core/model"+ "github.com/HolyArrs/holyarrs/app/backend/internal/library"+ "github.com/HolyArrs/holyarrs/app/backend/internal/mediafiles"+ "github.com/HolyArrs/holyarrs/app/backend/internal/metadata"+)++// Files in a show's own folder are matched by season and episode whatever+// show name they carry, as Sonarr does for a series folder: another+// release's spelling or a shortened name no longer leaves a season alone.+func TestMapEpisodeFilesTrustsTheShowsFolder(t *testing.T) {+ sh := metadata.Show{Name: "Lab Show", Year: 2025, Episodes: []metadata.Episode{{Season: 1, Number: 1}, {Season: 1, Number: 2}}}+ vids := []library.AdoptVideo{{Path: "Season 1/Lab Series UK - S01E01.mkv", Size: 2 << 20}, {Path: "Season 1/LS.S01E02.720p.mkv", Size: 1 << 20}}+ for _, f := range mapEpisodeFiles(vids, sh, "aired") {+ if len(f.Episodes) != 1 {+ t.Fatalf("%s: not matched (%s)", f.Path, f.Why)+ }+ }+}++// A rescan links a file it finds in a show's folder to its episodes while+// they are still empty, the way adopting does; a file for an episode that+// already has one stays a found note.+func TestRescanLinksFoundFileOfEmptyEpisode(t *testing.T) {+ svc, s, _, _ := addShowService(t)+ ctx := context.Background()+ lf := addShowFolder(t, s)+ showTree(t, lf.Path)+ res, err := svc.Adopt(ctx, lf.ID, []library.AdoptChoice{{Folder: "Lab Show (2025)", ID: "tmdb:100"}}, domain.System)+ if err != nil || res[0].Error != "" {+ t.Fatalf("adopt: %+v %v", res, err)+ }+ id := res[0].TitleID+ rel := filepath.ToSlash(filepath.Join("Lab Show (2025)", "Season 2", "Lab Series UK - S02E03.mkv"))+ writeFile(t, filepath.Join(lf.Path, filepath.FromSlash(rel)), "the third episode")+ if _, err := svc.Rescan(ctx, domain.System); err != nil {+ t.Fatal(err)+ }+ ep := episodes(t, s, id)["S02E03"]+ var fid int64+ if err := s.Read().QueryRow("SELECT id FROM files WHERE relative_path = ?", rel).Scan(&fid); err != nil {+ t.Fatalf("the file was not recorded: %v", err)+ }+ f := fileRow(t, s, fid)+ if f.Origin != "adopted" || len(f.SlotIDs) != 1 || f.SlotIDs[0] != ep.SlotID {+ t.Fatalf("file %+v, want adopted on the S02E03 slot", f)+ }+ var fileID *int64+ if err := s.Read().QueryRow("SELECT file_id FROM slots WHERE id = ?", ep.SlotID).Scan(&fileID); err != nil || fileID == nil || *fileID != fid {+ t.Fatalf("slot file %v %v", fileID, err)+ }+ if ep.State != mediafiles.SlotInLibrary && ep.State != mediafiles.SlotBetterWanted {+ t.Fatalf("slot state %s", ep.State)+ }+ small := filepath.ToSlash(filepath.Join("Lab Show (2025)", "Season 1", "S01E02.small.mkv"))+ var origin string+ if err := s.Read().QueryRow("SELECT origin FROM files WHERE relative_path = ?", small).Scan(&origin); err != nil || origin != "found" {+ t.Fatalf("second copy of a filled episode: %q %v", origin, err)+ }+ if r, err := svc.Rescan(ctx, domain.System); err != nil || r.Found != 0 {+ t.Fatalf("second rescan %+v %v", r, err)+ }+}++// A found note an earlier rescan left on a still empty episode, with or+// without its episodes, is linked by the next rescan.+func TestRescanLinksEarlierFoundNote(t *testing.T) {+ svc, s, _, _ := addShowService(t)+ ctx := context.Background()+ lf := addShowFolder(t, s)+ showTree(t, lf.Path)+ res, err := svc.Adopt(ctx, lf.ID, []library.AdoptChoice{{Folder: "Lab Show (2025)", ID: "tmdb:100"}}, domain.System)+ if err != nil || res[0].Error != "" {+ t.Fatalf("adopt: %+v %v", res, err)+ }+ rel := filepath.ToSlash(filepath.Join("Lab Show (2025)", "Season 2", "Lab Series UK - S02E03.mkv"))+ writeFile(t, filepath.Join(lf.Path, filepath.FromSlash(rel)), "the third episode")+ var vid int64+ _ = s.Read().QueryRow("SELECT id FROM versions WHERE title_id = ?", res[0].TitleID).Scan(&vid)+ err = s.Write(ctx, func(tx *sql.Tx) error {+ f := &mediafiles.File{SlotIDs: []int64{}, VersionID: vid, RelativePath: rel, Size: 17, Languages: []string{}, MediaInfo: map[string]any{},+ Origin: "found", PlacedBy: "none", Role: "main", State: "present"}+ _, err := database.Insert(tx, "files", f, domain.System)+ return err+ })+ if err != nil {+ t.Fatal(err)+ }+ if _, err := svc.Rescan(ctx, domain.System); err != nil {+ t.Fatal(err)+ }+ var origin string+ var n int+ _ = s.Read().QueryRow("SELECT origin, count(*) FROM files WHERE relative_path = ?", rel).Scan(&origin, &n)+ ep := episodes(t, s, res[0].TitleID)["S02E03"]+ if n != 1 || origin != "adopted" || (ep.State != mediafiles.SlotInLibrary && ep.State != mediafiles.SlotBetterWanted) {+ t.Fatalf("earlier found note: %d rows, origin %q, episode %s", n, origin, ep.State)+ }+}++// A found note the person protected stays protected once a rescan links it.+func TestRescanLinkKeepsFoundNoteProtection(t *testing.T) {+ svc, s, _, _ := addShowService(t)+ ctx := context.Background()+ lf := addShowFolder(t, s)+ showTree(t, lf.Path)+ res, err := svc.Adopt(ctx, lf.ID, []library.AdoptChoice{{Folder: "Lab Show (2025)", ID: "tmdb:100"}}, domain.System)+ if err != nil || res[0].Error != "" {+ t.Fatalf("adopt: %+v %v", res, err)+ }+ rel := filepath.ToSlash(filepath.Join("Lab Show (2025)", "Season 2", "Lab Series UK - S02E03.mkv"))+ writeFile(t, filepath.Join(lf.Path, filepath.FromSlash(rel)), "the third episode")+ var vid int64+ _ = s.Read().QueryRow("SELECT id FROM versions WHERE title_id = ?", res[0].TitleID).Scan(&vid)+ err = s.Write(ctx, func(tx *sql.Tx) error {+ f := &mediafiles.File{SlotIDs: []int64{}, VersionID: vid, RelativePath: rel, Size: 17, Languages: []string{}, MediaInfo: map[string]any{},+ Origin: "found", PlacedBy: "none", Role: "main", State: "present", Protected: true}+ _, err := database.Insert(tx, "files", f, domain.System)+ return err+ })+ if err != nil {+ t.Fatal(err)+ }+ if _, err := svc.Rescan(ctx, domain.System); err != nil {+ t.Fatal(err)+ }+ var origin string+ var protected bool+ _ = s.Read().QueryRow("SELECT origin, protected FROM files WHERE relative_path = ?", rel).Scan(&origin, &protected)+ if origin != "adopted" || !protected {+ t.Fatalf("linked note: origin %q, protected %v", origin, protected)+ }+}diff --git a/app/backend/internal/shows/service.go b/app/backend/internal/shows/service.goindex 22d111a..6613956 100644--- a/app/backend/internal/shows/service.go+++ b/app/backend/internal/shows/service.go@@ -447,7 +447,16 @@ func syncShowTx(ctx context.Context, tx *sql.Tx, t mediafiles.Title, sh metadataif a, ok := abs[key]; ok {absolute = &a}+ // How release names number the episode, when that differs.+ var altS, altE *int+ if e.AltSeason > 0 && e.AltEpisode > 0 {+ as, ae := e.AltSeason, e.AltEpisode+ altS, altE = &as, &ae+ }if it := match[key]; it != nil {+ if sh.AltStale {+ altS, altE = it.Numbers.AltSeason, it.Numbers.AltEpisode+ }ids := map[string]string{}for k, v := range it.SourceIDs {ids[k] = v@@ -456,7 +465,7 @@ func syncShowTx(ctx context.Context, tx *sql.Tx, t mediafiles.Title, sh metadataids[sh.Source] = e.ID}changed := !library.EqStr(it.Name, name) || !library.EqTime(it.AirDate, e.AirDate) || it.AirTimed != (e.Timed && e.AirDate != nil) || !library.EqStr(it.AirDay, day) || !library.EqInt(it.Runtime, runtime) ||- !library.EqInt(it.Numbers.Absolute, absolute) || it.Still != e.Still || it.DroppedAt != nil || len(ids) != len(it.SourceIDs) || ids[sh.Source] != it.SourceIDs[sh.Source] ||+ !library.EqInt(it.Numbers.Absolute, absolute) || !library.EqInt(it.Numbers.AltSeason, altS) || !library.EqInt(it.Numbers.AltEpisode, altE) || it.Still != e.Still || it.DroppedAt != nil || len(ids) != len(it.SourceIDs) || ids[sh.Source] != it.SourceIDs[sh.Source] ||it.PartID == nil || *it.PartID != p.ID || *it.Numbers.Season != e.Season || *it.Numbers.Episode != e.Numberif !changed {continue@@ -464,6 +473,7 @@ func syncShowTx(ctx context.Context, tx *sql.Tx, t mediafiles.Title, sh metadataseason, number := e.Season, e.Numberit.Numbers.Season, it.Numbers.Episode = &season, &numberit.Name, it.AirDate, it.AirDay, it.Runtime, it.Numbers.Absolute, it.DroppedAt, it.SourceIDs, it.PartID = name, e.AirDate, day, runtime, absolute, nil, ids, &p.ID+ it.Numbers.AltSeason, it.Numbers.AltEpisode = altS, altEit.Still, it.AirTimed = e.Still, e.Timed && e.AirDate != nilif err := database.Update(tx, "items", it, by); err != nil {return out, err@@ -476,7 +486,7 @@ func syncShowTx(ctx context.Context, tx *sql.Tx, t mediafiles.Title, sh metadataif cut := futureCut(t, choice, now); cut != nil && e.AirDate != nil && !e.AirDate.After(*cut) {keep = false // future: only episodes still to air}- it := &mediafiles.Item{TitleID: t.ID, PartID: &p.ID, Kind: "episode", Numbers: mediafiles.Numbers{Season: &season, Episode: &number, Absolute: absolute},+ it := &mediafiles.Item{TitleID: t.ID, PartID: &p.ID, Kind: "episode", Numbers: mediafiles.Numbers{Season: &season, Episode: &number, Absolute: absolute, AltSeason: altS, AltEpisode: altE},Name: name, AirDate: e.AirDate, AirDay: day, AirTimed: e.Timed && e.AirDate != nil, Runtime: runtime, KeepUpToDate: keep, SourceIDs: map[string]string{}, Still: e.Still}if e.ID != "" {it.SourceIDs[sh.Source] = e.IDdiff --git a/app/backend/internal/shows/service_test.go b/app/backend/internal/shows/service_test.goindex 9cf3144..c19572a 100644--- a/app/backend/internal/shows/service_test.go+++ b/app/backend/internal/shows/service_test.go@@ -517,3 +517,58 @@ func TestKeepFutureOnExistingShow(t *testing.T) {}}}++// The release-name numbers from the anime map are stored on the episode; a+// refresh without them clears them, unless the map could not be read.+func TestRefreshStoresReleaseNumbers(t *testing.T) {+ s := open(t)+ ctx := context.Background()+ tmdb := &fakeShows{}+ withAlt := labShow("tmdb", "100")+ withAlt.Episodes[2].AltSeason, withAlt.Episodes[2].AltEpisode = 2, 5 // S01E02+ tmdb.set(withAlt, "tmdb:100")+ ti := seedShow(t, s, withAlt, library.SeasonsAll)+ svc := showService(s, metadata.ShowSources{"tmdb": tmdb})+ alt := func() [2]int {+ t.Helper()+ its, err := database.Select[mediafiles.Item](ctx, s.Read(), "items", "title_id = ? AND kind = 'episode'", ti.ID)+ if err != nil {+ t.Fatal(err)+ }+ for _, it := range its {+ if *it.Numbers.Season == 1 && *it.Numbers.Episode == 2 {+ var a [2]int+ if it.Numbers.AltSeason != nil {+ a[0] = *it.Numbers.AltSeason+ }+ if it.Numbers.AltEpisode != nil {+ a[1] = *it.Numbers.AltEpisode+ }+ return a+ }+ }+ t.Fatal("no S01E02")+ return [2]int{}+ }+ refresh := func(sh metadata.Show) {+ t.Helper()+ tmdb.set(sh, "tmdb:100")+ if _, err := svc.RefreshShow(ctx, ti.ID, domain.System, nil); err != nil {+ t.Fatal(err)+ }+ }+ if a := alt(); a != [2]int{2, 5} {+ t.Fatalf("after add: %v", a)+ }+ refresh(labShow("tmdb", "100"))+ if a := alt(); a != [2]int{} {+ t.Fatalf("after a refresh without them: %v", a)+ }+ refresh(withAlt)+ stale := labShow("tmdb", "100")+ stale.AltStale = true+ refresh(stale)+ if a := alt(); a != [2]int{2, 5} {+ t.Fatalf("after a refresh that could not read the map: %v", a)+ }+}diff --git a/app/backend/internal/shows/show_info.go b/app/backend/internal/shows/show_info.goindex 2d3eafa..77d9eaa 100644--- a/app/backend/internal/shows/show_info.go+++ b/app/backend/internal/shows/show_info.go@@ -46,10 +46,13 @@ func InfoOf(ctx context.Context, db database.Lister, t mediafiles.Title) (*Info,if s.Number > 0 {si.SeasonCount++}- si.Episodes += s.Episodes+ // Specials count toward "X of Y episodes" only when kept up to date.+ if s.Number > 0 || s.KeepUpToDate {+ si.Episodes += s.Episodes+ si.NotOutYet += s.NotOutYet+ si.InLibrary += s.InLibrary+ }si.Missing += s.Missing- si.NotOutYet += s.NotOutYet- si.InLibrary += s.InLibrarysi.BetterWanted += s.BetterWantedsi.Downloading += s.Downloadingsi.Failed += s.Faileddiff --git a/app/backend/internal/shows/show_info_test.go b/app/backend/internal/shows/show_info_test.gonew file mode 100644index 0000000..4b9d081--- /dev/null+++ b/app/backend/internal/shows/show_info_test.go@@ -0,0 +1,37 @@+package shows++import (+ "context"+ "database/sql"+ "testing"++ "github.com/HolyArrs/holyarrs/app/backend/internal/library"+)++// The page's "X of Y episodes" leaves out specials unless they are kept up+// to date; their missing count still shows.+func TestInfoOfLeavesOutSpecials(t *testing.T) {+ s := open(t)+ ctx := context.Background()+ ti := seedShow(t, s, labShow("tmdb", "100"), library.SeasonsAll)+ eps := episodes(t, s, ti.ID)+ set := func(q string, args ...any) {+ t.Helper()+ if err := s.Write(ctx, func(tx *sql.Tx) error { _, err := tx.Exec(q, args...); return err }); err != nil {+ t.Fatal(err)+ }+ }+ set("UPDATE slots SET state = 'in_library' WHERE id IN (?, ?)", eps["S00E01"].SlotID, eps["S01E01"].SlotID)+ set("UPDATE parts SET keep_up_to_date = 0 WHERE title_id = ? AND number = 0", ti.ID)+ info, err := InfoOf(ctx, s.Read(), ti)+ if err != nil {+ t.Fatal(err)+ }+ if info.Episodes != 5 || info.InLibrary != 1 {+ t.Fatalf("specials not kept: %d of %d", info.InLibrary, info.Episodes)+ }+ set("UPDATE parts SET keep_up_to_date = 1 WHERE title_id = ? AND number = 0", ti.ID)+ if info, err = InfoOf(ctx, s.Read(), ti); err != nil || info.Episodes != 6 || info.InLibrary != 2 {+ t.Fatalf("specials kept: %+v %v", info, err)+ }+}diff --git a/app/backend/internal/sources/search.go b/app/backend/internal/sources/search.goindex f8306e6..7250d27 100644--- a/app/backend/internal/sources/search.go+++ b/app/backend/internal/sources/search.go@@ -273,8 +273,8 @@ func (s *Searcher) Handle(ctx context.Context, r *jobs.Run) error {q.TMDb, _ = strconv.Atoi(ti.SourceIDs["tmdb"])isShow := ti.Kind == "show"var shows showSet+ var ep *epSlotif isShow {- var ep *epSlotif shows, ep, err = s.episodeSet(ctx, c, from != mediafiles.SlotNotOutYet); err != nil {return err}@@ -284,6 +284,15 @@ func (s *Searcher) Handle(ctx context.Context, r *jobs.Run) error {if err != nil {return err}+ // Absolute order also searches by title and running number; a Source+ // that failed or was skipped is said once.+ if aq, ok := absoluteQuery(ti, ep); isShow && ok {+ more, _, n, _, err := s.askAll(ctx, r, aq, handSearch, true, ti.Tags)+ if err != nil {+ return err+ }+ all, answered = append(all, more...), max(answered, n)+ }jobID := r.Job.IDif reason, data, ok, failed := noAnswer(failures, answered, skipped); ok {diff --git a/app/backend/internal/sources/search_season.go b/app/backend/internal/sources/search_season.goindex 94fd379..a26be77 100644--- a/app/backend/internal/sources/search_season.go+++ b/app/backend/internal/sources/search_season.go@@ -8,14 +8,15 @@ import ("slices""strconv""time"+ "unicode""github.com/HolyArrs/holyarrs/app/backend/internal/core/jobs"domain "github.com/HolyArrs/holyarrs/app/backend/internal/core/model""github.com/HolyArrs/holyarrs/app/backend/internal/mediafiles")-// showQuery is the search for one episode (daily: its air day; absolute: its-// running number) or, with ep nil, one season.+// showQuery is the search for one episode (daily: its air day; otherwise+// the season and episode release names use) or, with ep nil, one season.func showQuery(ti mediafiles.Title, season int, ep *epSlot) Query {q := Query{Title: ti.Name, TV: true, Season: season}q.TVDB, _ = strconv.Atoi(ti.SourceIDs["tvdb"])@@ -31,16 +32,43 @@ func showQuery(ti mediafiles.Title, season int, ep *epSlot) Query {d, _ := time.Parse("2006-01-02", ep.ref.AirDay)q.Season, q.Episode = d.Year(), d.Format("01/02")q.Words = d.Format("2006 01 02")- case order == "absolute" && ep.ref.Absolute > 0:- q.Season, q.Episode = 0, strconv.Itoa(ep.ref.Absolute)- q.Words = fmt.Sprintf("%02d", ep.ref.Absolute)default:- q.Season, q.Episode = ep.ref.Season, strconv.Itoa(ep.ref.Episode)- q.Words = ep.ref.Label()+ season, number := ep.ref.Named()+ q.Season, q.Episode = season, strconv.Itoa(number)+ q.Words = fmt.Sprintf("S%02dE%02d", season, number)}return q}+// absoluteQuery is the second search for an episode in absolute order: the+// title and running number, as anime Releases are named ("Mashle 17"). It+// takes the shortest plain-letter name of the show.+func absoluteQuery(ti mediafiles.Title, ep *epSlot) (Query, bool) {+ if ti.EpisodeOrder == nil || *ti.EpisodeOrder != "absolute" || ep == nil || ep.ref.Absolute <= 0 {+ return Query{}, false+ }+ name := ""+ for _, a := range append([]string{ti.Name}, ti.Aliases...) {+ letters := 0+ for _, r := range a {+ if r > unicode.MaxASCII {+ letters = -1+ break+ }+ if unicode.IsLetter(r) {+ letters+++ }+ }+ if letters >= 4 && (name == "" || len(a) < len(name)) {+ name = a+ }+ }+ if name == "" {+ name = ti.Name+ }+ return Query{TV: true, Title: fmt.Sprintf("%s %02d", name, ep.ref.Absolute)}, true+}+// handlesTV says whether a Source is set up for shows; no kinds means every kind.func handlesTV(src domain.Source) bool {return len(src.Kinds) == 0 || slices.Contains(src.Kinds, "tv")@@ -119,7 +147,7 @@ func (s *Searcher) HandleSeason(ctx context.Context, r *jobs.Run) error {looking = append(looking, e)}missing := e.sl.State == mediafiles.SlotWanted || e.cur == nil && (e.sl.State == mediafiles.SlotFailed || e.sl.State == mediafiles.SlotRejected)- if e.kept && (!missing || !e.soon) {+ if e.kept && !e.placeholder && (!missing || !e.soon) {whole = false}}@@ -178,6 +206,21 @@ func (s *Searcher) HandleSeason(ctx context.Context, r *jobs.Run) error {if err != nil {return err}+ // Release names may number some episodes in other seasons (an anime+ // part TMDB keeps inside this one): ask for those seasons too.+ asked := map[int]bool{season: true}+ for _, e := range looking {+ named, _ := e.ref.Named()+ if asked[named] {+ continue+ }+ asked[named] = true+ more, _, n, _, err := s.askAll(ctx, r, showQuery(ti, named, nil), hand, true, ti.Tags)+ if err != nil {+ return err+ }+ found, answered = append(found, more...), max(answered, n)+ }if reason, data, ok, failed := noAnswer(failures, answered, skipped); ok {rest(reason)s.addEvent(ctx, by, &jobID, ti.ID, targets[0], EventSearchFailed, reason, data)diff --git a/app/backend/internal/sources/search_shows.go b/app/backend/internal/sources/search_shows.goindex 3aa207f..05e8723 100644--- a/app/backend/internal/sources/search_shows.go+++ b/app/backend/internal/sources/search_shows.go@@ -49,8 +49,11 @@ type epSlot struct {// kept means the episode, its season, the Version and the show are all kept up to date.kept bool// soon means aired, or airing within a day, when season packs may be taken.- soon bool- runtime int+ soon bool+ // placeholder means a last episode with no air date after a season that+ // finished airing a while ago; it does not hold back the season's packs.+ placeholder bool+ runtime int}// showSet is a show search: the show's episodes in one Version and the Slots asked for.@@ -172,6 +175,9 @@ func (s *Searcher) loadShow(ctx context.Context, ti mediafiles.Title, ver mediafif it.Numbers.Absolute != nil {e.ref.Absolute = *it.Numbers.Absolute}+ if it.Numbers.AltSeason != nil && it.Numbers.AltEpisode != nil {+ e.ref.AltSeason, e.ref.AltEpisode = *it.Numbers.AltSeason, *it.Numbers.AltEpisode+ }if it.AirDay != nil {e.ref.AirDay = *it.AirDay}@@ -185,6 +191,27 @@ func (s *Searcher) loadShow(ctx context.Context, ti mediafiles.Title, ver mediaf}set.eps = append(set.eps, e)}+ // The last dated episode of each season, to spot placeholders after it.+ last := map[int]epSlot{}+ for _, e := range set.eps {+ if l, ok := last[e.ref.Season]; e.it.AirDate != nil && (!ok || e.ref.Episode > l.ref.Episode) {+ last[e.ref.Season] = e+ }+ }+ // Only one undated episode straight after it is a placeholder; a run of+ // undated ones is a real unaired stretch.+ after := map[int]int{}+ for _, e := range set.eps {+ if l, ok := last[e.ref.Season]; ok && e.it.AirDate == nil && e.ref.Episode > l.ref.Episode {+ after[e.ref.Season]+++ }+ }+ settled := time.Now().AddDate(0, 0, -14)+ for i := range set.eps {+ e := &set.eps[i]+ l, ok := last[e.ref.Season]+ e.placeholder = e.ref.Season > 0 && e.it.AirDate == nil && ok && e.ref.Episode == l.ref.Episode+1 && after[e.ref.Season] == 1 && l.it.AirDate.Before(settled)+ }return set, nil}@@ -349,7 +376,7 @@ func (set showSet) lines(ss *mediafiles.SlotSet, rel mediafiles.ReleaseFacts, reif pack {for _, e := range covered {- if e.kept && !e.soon {+ if e.kept && !e.soon && !e.placeholder {ss.Out = falsess.GateDetail = fmt.Sprintf("not every episode of season %d has aired (%s has not)", e.ref.Season, e.ref.Label())breakdiff --git a/app/backend/internal/sources/search_shows_test.go b/app/backend/internal/sources/search_shows_test.goindex 6d62f37..e6de612 100644--- a/app/backend/internal/sources/search_shows_test.go+++ b/app/backend/internal/sources/search_shows_test.go@@ -593,3 +593,261 @@ func TestMissingSearch_OneTitleIgnoresNightlyShowSwitch(t *testing.T) {t.Fatalf("nightly with shows off searches the movie only: %+v", j.Result)}}++// setAlt gives an episode the numbers release names use for it.+func setAlt(t *testing.T, f showFix, label string, season, episode int) {+ t.Helper()+ if err := f.s.Write(context.Background(), func(tx *sql.Tx) error {+ _, err := tx.Exec(`UPDATE items SET numbers = json_set(numbers, '$.alt_season', ?, '$.alt_episode', ?) WHERE id = ?`, season, episode, f.items[label])+ return err+ }); err != nil {+ t.Fatal(err)+ }+}++// A feed Release named by the release numbers (S03E01) fills the stored+// episode that carries them; without them it finds no episode.+func TestFeedShow_ReleaseNumbers(t *testing.T) {+ for _, mapped := range []bool{true, false} {+ ts := &tvServer{answer: func(url.Values) []string { return []string{"Copper.Valley.S03E01.1080p.WEB-DL.H.264-QUILL"} }}+ f := seedShow(t, ts.start(t), nil)+ if mapped {+ setAlt(t, f, "S01E03", 3, 1)+ }+ j := runKind(t, f.fixture, &Searcher{Store: f.s}, jobs.KindFeedCheck, nil, nil)+ if j.State != "done" {+ t.Fatalf("feed %s %+v", j.State, j.Error)+ }+ want := mediafiles.SlotWanted+ if mapped {+ want = mediafiles.SlotChosen+ }+ if st := f.state(t, "S01E03"); st != want {+ r := relByName(t, f.fixture, "Copper.Valley.S03E01.1080p.WEB-DL.H.264-QUILL")+ t.Fatalf("mapped %v: S01E03 %s, want %s (%s %v)", mapped, st, want, r.State, reasonCodes(r))+ }+ }+}++// setOrder sets the show's episode order and, for absolute, running numbers+// counted in aired order.+func setOrder(t *testing.T, f showFix, order string) {+ t.Helper()+ if err := f.s.Write(context.Background(), func(tx *sql.Tx) error {+ if _, err := tx.Exec("UPDATE titles SET episode_order = ? WHERE id = ?", order, f.titleID); err != nil {+ return err+ }+ for i, l := range []string{"S01E01", "S01E02", "S01E03", "S02E01", "S02E02"} {+ if _, err := tx.Exec(`UPDATE items SET numbers = json_set(numbers, '$.absolute', ?) WHERE id = ?`, i+1, f.items[l]); err != nil {+ return err+ }+ }+ return nil+ }); err != nil {+ t.Fatal(err)+ }+}++// An episode search asks for the season and episode release names use. In+// absolute order it never asks for season 0, and a second search by title+// and running number finds anime names.+func TestShowQuery_ReleaseNumbersAndRunningNumber(t *testing.T) {+ for _, c := range []struct {+ name, order string+ alt bool+ season, ep string+ text bool+ }{+ {"absolute", "absolute", false, "1", "2", true},+ {"absolute with release numbers", "absolute", true, "3", "1", true},+ {"aired with release numbers", "aired", true, "3", "1", false},+ {"aired", "aired", false, "1", "2", false},+ } {+ t.Run(c.name, func(t *testing.T) {+ ts := &tvServer{answer: func(q url.Values) []string {+ if q.Get("q") != "" {+ return []string{"[SubsPlease] Copper Valley - 02 (1080p)"}+ }+ return nil+ }}+ f := seedShow(t, ts.start(t), nil)+ setOrder(t, f, c.order)+ if c.alt {+ setAlt(t, f, "S01E02", 3, 1)+ }+ runKind(t, f.fixture, &Searcher{Store: f.s}, jobs.KindSearchSlot, &domain.Subject{Type: "slot", ID: f.slots["S01E02"]}, nil)+ want := 1+ if c.text {+ want = 2+ }+ if len(ts.queries) != want {+ t.Fatalf("queries %v", ts.queries)+ }+ if q := ts.queries[0]; q.Get("tvdbid") != "4242" || q.Get("season") != c.season || q.Get("ep") != c.ep {+ t.Fatalf("first query %v", q)+ }+ if !c.text {+ return+ }+ if q := ts.queries[1]; q.Get("t") != "tvsearch" || q.Get("q") != "Copper Valley 02" || q.Has("season") || q.Has("ep") || q.Has("tvdbid") {+ t.Fatalf("running number query %v", q)+ }+ if st := f.state(t, "S01E02"); st != mediafiles.SlotChosen {+ r := relByName(t, f.fixture, "[SubsPlease] Copper Valley - 02 (1080p)")+ t.Fatalf("S01E02 %s (%s %v)", st, r.State, reasonCodes(r))+ }+ })+ }+}++// A season search also asks for each other season release names give its+// episodes, and that season's pack covers them.+func TestHandleSeason_AsksReleaseSeasons(t *testing.T) {+ for _, mapped := range []bool{true, false} {+ ts := &tvServer{answer: func(q url.Values) []string {+ if q.Get("season") == "3" {+ return []string{"Copper.Valley.S03.1080p.WEB-DL.H.264-QUILL"}+ }+ return nil+ }}+ f := seedShow(t, ts.start(t), nil)+ if mapped {+ setAlt(t, f, "S01E03", 3, 1)+ }+ runKind(t, f.fixture, &Searcher{Store: f.s}, jobs.KindSearchSeason, &domain.Subject{Type: "part", ID: f.parts[1]},+ map[string]any{"version_id": f.verID, "choose": false, "by_hand": true})+ var seasons []string+ for _, q := range ts.queries {+ if q.Has("ep") {+ t.Fatalf("an episode query in a season search: %v", q)+ }+ seasons = append(seasons, q.Get("season"))+ }+ if !mapped {+ if !slices.Equal(seasons, []string{"1"}) {+ t.Fatalf("without release numbers: %v", seasons)+ }+ continue+ }+ if !slices.Equal(seasons, []string{"1", "3"}) {+ t.Fatalf("seasons asked %v", seasons)+ }+ r := relByName(t, f.fixture, "Copper.Valley.S03.1080p.WEB-DL.H.264-QUILL")+ if !slices.Equal(r.MatchedSlotIDs, []int64{f.slots["S01E03"]}) {+ t.Fatalf("pack covers %v (%s %v)", r.MatchedSlotIDs, r.State, reasonCodes(r))+ }+ }+}++// The running number search uses the shortest plain-letter name.+func TestAbsoluteQueryName(t *testing.T) {+ ep := &epSlot{ref: mediafiles.EpisodeRef{Season: 1, Episode: 17, Absolute: 17}}+ for _, c := range []struct {+ name string+ aliases []string+ want string+ }{+ {"Mashle: Magic and Muscles", []string{"マッシュル-MASHLE-", "Mashle", "Mashuru", "MM"}, "Mashle 17"},+ {"風の翼", []string{"Kaze no Tsubasa"}, "Kaze no Tsubasa 17"},+ {"風の翼", nil, "風の翼 17"},+ } {+ order := "absolute"+ q, ok := absoluteQuery(mediafiles.Title{Name: c.name, Aliases: c.aliases, EpisodeOrder: &order}, ep)+ if !ok || q.Title != c.want || q.Season != 0 || q.Episode != "" || q.TVDB != 0 {+ t.Errorf("%s: %+v %v, want %q", c.name, q, ok, c.want)+ }+ }+ aired := "aired"+ if _, ok := absoluteQuery(mediafiles.Title{Name: "Mashle", EpisodeOrder: &aired}, ep); ok {+ t.Error("aired order made a running number search")+ }+}++// addUndated adds a kept S01E04 with no air date, not out yet, and moves+// season 1's air dates: dated[i] days ago for E(i+1), or no date when < 0.+func addUndated(t *testing.T, f showFix, dated ...int) {+ t.Helper()+ now := time.Now().UTC()+ if err := f.s.Write(context.Background(), func(tx *sql.Tx) error {+ for i, d := range dated {+ l := fmt.Sprintf("S01E%02d", i+1)+ if d < 0 {+ if _, err := tx.Exec("UPDATE items SET air_date = NULL, air_day = NULL WHERE id = ?", f.items[l]); err != nil {+ return err+ }+ if _, err := tx.Exec("UPDATE slots SET state = 'not_out_yet' WHERE id = ?", f.slots[l]); err != nil {+ return err+ }+ continue+ }+ air := now.AddDate(0, 0, -d)+ if _, err := tx.Exec("UPDATE items SET air_date = ?, air_day = ? WHERE id = ?", air.Format(time.RFC3339Nano), air.Format("2006-01-02"), f.items[l]); err != nil {+ return err+ }+ }+ pid := f.parts[1]+ it := &mediafiles.Item{TitleID: f.titleID, PartID: &pid, Kind: "episode", Numbers: mediafiles.Numbers{Season: ptr(1), Episode: ptr(4)},+ Name: ptr("Episode 4"), Runtime: ptr(45), KeepUpToDate: true, SourceIDs: map[string]string{}}+ if _, err := database.Insert(tx, "items", it, domain.System); err != nil {+ return err+ }+ sl := &mediafiles.Slot{ItemID: it.ID, VersionID: f.verID, State: mediafiles.SlotNotOutYet}+ if _, err := database.Insert(tx, "slots", sl, domain.System); err != nil {+ return err+ }+ f.slots["S01E04"], f.items["S01E04"] = sl.ID, it.ID+ return nil+ }); err != nil {+ t.Fatal(err)+ }+}++// An undated last episode (a placeholder) after a season that finished+// airing a while ago does not stop the season search or its pack.+func TestHandleSeason_PlaceholderDoesNotBlock(t *testing.T) {+ ts := &tvServer{answer: func(q url.Values) []string {+ if q.Get("ep") == "" {+ return []string{"Copper.Valley.S01.1080p.WEB-DL.H.264-QUILL"}+ }+ return nil+ }}+ f := seedShow(t, ts.start(t), nil)+ addUndated(t, f, 44, 37, 30)+ j := runKind(t, f.fixture, &Searcher{Store: f.s}, jobs.KindSearchSeason, &domain.Subject{Type: "part", ID: f.parts[1]}, map[string]any{"version_id": f.verID})+ if len(ts.queries) == 0 || ts.queries[0].Get("season") != "1" || ts.queries[0].Has("ep") {+ t.Fatalf("queries %v; job %s %+v %+v", ts.queries, j.State, j.Error, j.Result)+ }+ for _, l := range []string{"S01E01", "S01E02", "S01E03"} {+ if st := f.state(t, l); st != mediafiles.SlotChosen {+ r := relByName(t, f.fixture, "Copper.Valley.S01.1080p.WEB-DL.H.264-QUILL")+ t.Fatalf("%s is %s (%s %v); result %+v", l, st, r.State, reasonCodes(r), j.Result)+ }+ }+ if st := f.state(t, "S01E04"); st != mediafiles.SlotNotOutYet {+ t.Fatalf("the placeholder is %s", st)+ }+ if r := relByName(t, f.fixture, "Copper.Valley.S01.1080p.WEB-DL.H.264-QUILL"); !strings.Contains(fmt.Sprint(r.Verdict), "every episode it holds has aired") {+ t.Fatalf("gate %v", r.Verdict)+ }+}++// Still blocked: a season that aired only days ago, an undated episode in+// the middle, a run of undated episodes at the end, or a season with no+// dates at all.+func TestHandleSeason_UndatedStillBlocks(t *testing.T) {+ for name, dated := range map[string][]int{+ "undated run": {50, 44, -1},+ "recent": {17, 10, 3},+ "middle": {44, -1, 30},+ "no dates": {-1, -1, -1},+ } {+ ts := &tvServer{answer: func(url.Values) []string { return nil }}+ f := seedShow(t, ts.start(t), nil)+ addUndated(t, f, dated...)+ j := runKind(t, f.fixture, &Searcher{Store: f.s}, jobs.KindSearchSeason, &domain.Subject{Type: "part", ID: f.parts[1]}, map[string]any{"version_id": f.verID})+ _, queued := j.Result["episodes_queued"]+ if _, skipped := j.Result["skipped"]; !queued && !skipped || slices.ContainsFunc(ts.queries, func(q url.Values) bool { return !q.Has("ep") }) {+ t.Fatalf("%s: searched as a whole: %+v %v", name, j.Result, ts.queries)+ }+ }+}diff --git a/app/frontend/src/app.html b/app/frontend/src/app.htmlindex 966b761..25b0ddc 100644--- a/app/frontend/src/app.html+++ b/app/frontend/src/app.html@@ -112,6 +112,10 @@if (t !== 'dark' && t !== 'light') t = matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';document.documentElement.dataset.theme = t;} catch (e) {}+ // The minimal look (lib/core/look.svelte.ts): plain headers from the first frame.+ try {+ if (localStorage.getItem('holyarrs-look') === 'minimal') document.documentElement.dataset.look = 'minimal';+ } catch (e) {}// The saved language (lib/core/i18n setLang), or the browser's, so text direction is right on the first frame.try {var lg = localStorage.getItem('holyarrs-lang') || (navigator.language || '').toLowerCase().split('-')[0];diff --git a/app/frontend/src/lib/accounts/Account.svelte b/app/frontend/src/lib/accounts/Account.svelteindex 4f78de8..428c667 100644--- a/app/frontend/src/lib/accounts/Account.svelte+++ b/app/frontend/src/lib/accounts/Account.svelte@@ -24,6 +24,7 @@import { toasts } from '../core/toasts.svelte.ts';import { to } from '../core/paths.ts';import { autoplayPref, setAutoplayPref, type AutoplayPref } from '../core/trailer/trailer.ts';+ import { minimalLook } from '../core/look.svelte.ts';// Display name: edited inline; Save is on once it differs.let nameDraft = $state('');@@ -367,7 +368,7 @@<div class="ctl"><LanguagePicker id="language-me" /></div></div><div class="srow">- <div class="txt"><span class="label">{t('accounts.account.trailers')}</span><span class="hint" title={t('accounts.account.trailersHint')}>{t('accounts.account.trailersHint')}</span></div>+ <div class="txt"><span class="label">{t('accounts.account.trailers')}</span>{#if minimalLook()}<span class="hint">{t('accounts.account.trailersMinimal')}</span>{:else}<span class="hint" title={t('accounts.account.trailersHint')}>{t('accounts.account.trailersHint')}</span>{/if}</div><div class="ctl"><SegmentedControl size="sm" label={t('accounts.account.playTrailers')} options={[{ value: 'auto', label: t('accounts.account.auto') }, { value: 'always', label: t('accounts.account.always') }, { value: 'never', label: t('accounts.account.never') }] as { value: AutoplayPref; label: string }[]} value={pref} onchange={(v) => { pref = v; setAutoplayPref(v); location.reload(); }} /></div></div><div class="srow" id="recommendations-me">diff --git a/app/frontend/src/lib/core/i18n/messages/ar/accounts.json b/app/frontend/src/lib/core/i18n/messages/ar/accounts.jsonindex 47f1329..57aa42e 100644--- a/app/frontend/src/lib/core/i18n/messages/ar/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/ar/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "التفضيلات","accounts.account.trailers": "الإعلانات التشويقية","accounts.account.trailersHint": "الوضع التلقائي يحترم تقليل الحركة وتوفير البيانات",+ "accounts.account.trailersMinimal": "متوقف في النمط البسيط","accounts.account.playTrailers": "شغّل الإعلانات التشويقية","accounts.account.auto": "تلقائي","accounts.account.always": "دائمًا",diff --git a/app/frontend/src/lib/core/i18n/messages/ar/home.json b/app/frontend/src/lib/core/i18n/messages/ar/home.jsonindex cfaff12..554959e 100644--- a/app/frontend/src/lib/core/i18n/messages/ar/home.json+++ b/app/frontend/src/lib/core/i18n/messages/ar/home.json@@ -254,6 +254,7 @@"home.finished": "انتهى {when}","home.nothingIsDownloadingRight": "لا شيء قيد التنزيل الآن.","home.paused2": "{n} موقوفة مؤقتًا.",+ "home.notSentByHolyArrs": "{n} في برنامج التنزيل لم يرسلها HolyArrs.","home.someChecksCouldNot": "تعذّرت قراءة بعض الفحوصات الآن.","home.otherCheckPassed": "نجح فحص آخر واحد ({n}).","home.otherChecksPassed": "نجحت {n} فحوصات أخرى.",diff --git a/app/frontend/src/lib/core/i18n/messages/ar/migrate.json b/app/frontend/src/lib/core/i18n/messages/ar/migrate.jsonindex 72f9fee..46b9a7e 100644--- a/app/frontend/src/lib/core/i18n/messages/ar/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/ar/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "يتعامل HolyArrs مع هذه بطريقته. لا شيء مطلوب.","migrate.allApps": "كل التطبيقات","migrate.ifAnOldApp": "إذا كان تطبيق قديم يرى مجلدًا تحت مسار مختلف، فأدخل المسارين.",+ "migrate.notInContainer": "لا يستطيع HolyArrs رؤية {path}. استخدم المسار داخل الحاوية: الجانب الأيمن من وحدة تخزين Docker.",+ "migrate.foldersItSees": "يمكنه رؤية: {list}",+ "migrate.sameNewFolder": "نفس المجلد مثل {list}. ستنتهي عناوينهما معًا؛ امنح نسخ 4K أو النسخ الأخرى مجلدًا خاصًا بها.","migrate.doneOfTotal": "{done} من {total}"}diff --git a/app/frontend/src/lib/core/i18n/messages/ar/server-lines.json b/app/frontend/src/lib/core/i18n/messages/ar/server-lines.jsonindex 8393ca3..2a38589 100644--- a/app/frontend/src/lib/core/i18n/messages/ar/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/ar/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "لا وقت طلب في المصدر، لذا لا يستطيع الاستيراد حفظه","server.migrate.the-source-timestamp-format-is-invalid": "صيغة الوقت في المصدر غير صالحة، لذا لا يستطيع الاستيراد حفظه","server.migrate.the-source-timestamp-is-after-this": "الوقت في المصدر بعد هذه القراءة المحفوظة، لذا لا يستطيع الاستيراد حفظه",- "server.migrate.the-titles-that-were-in-it": "تبقى الأعمال التي كانت فيه في السجل بصفتها محذوفة، لذا يبقى المجلد",+ "server.migrate.the-titles-that-were-in-it": "ما زالت أعمال في المكتبة تستخدمه، لذا يبقى المجلد",+ "server.migrate.deleted-files-still-wait-in-its": "ما زالت ملفات محذوفة تنتظر في مجلد الاحتفاظ الخاص به، لذا يبقى المجلد",+ "server.migrate.an-outside-list-still-uses-it": "ما زالت قائمة خارجية تستخدمه، لذا يبقى المجلد","server.migrate.the-wait-on-is-back-as": "عاد الانتظار على {name} كما كان","server.migrate.these-are-already-the-default-languages": "هذه هي اللغات الافتراضية بالفعل","server.migrate.these-are-already-the-default-weekly": "هذه هي الحدود الأسبوعية الافتراضية بالفعل",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "تبقى خوادم Usenet معدّة في SABnzbd","server.migrate.uses-the-folder-where-it-is": "يستخدم المجلد {dir} كما هو","server.migrate.uses-the-folder-where-it-is-2": "يستخدم المجلد {dir} كما هو؛ لا يُنقل أي ملف ولا يُعاد تسميته",+ "server.migrate.will-be-added-with-no-files": "ستتم إضافته بلا ملفات حاليًا؛ لا يوجد مجلد في {dir}",+ "server.migrate.added-with-no-files-yet-there": "أُضيف بلا ملفات حاليًا؛ لا يوجد مجلد في {dir}","server.migrate.uses-the-folder-where-it-is-3": "يستخدم المجلد {folder} كما هو","server.migrate.wait-before-grabbing-every-title": "انتظر قبل الجلب (كل الأعمال)","server.migrate.wait-before-grabbing": "انتظر قبل الجلب {tags}",diff --git a/app/frontend/src/lib/core/i18n/messages/ar/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/ar/settings-appearance.jsonindex 5fb5b93..b3f36fe 100644--- a/app/frontend/src/lib/core/i18n/messages/ar/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/ar/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "المظهر","settings.appearance.theme": "السمة","settings.appearance.savedHere": "محفوظ في هذا المتصفح",+ "settings.appearance.look": "النمط",+ "settings.appearance.lookDesc": "يعرض النمط البسيط الأعمال بملصقات صغيرة، بلا صور كبيرة أو توهج أو إعلانات تشويقية تعمل تلقائيًا. محفوظ في هذا المتصفح",+ "settings.appearance.lookFull": "كامل",+ "settings.appearance.lookMinimal": "بسيط","settings.appearance.background": "الخلفية","settings.appearance.backgroundDesc": "خلف كل صفحة. محفوظة في هذا المتصفح",+ "settings.appearance.wallOffMinimal": "جدار الملصقات متوقف في النمط البسيط","settings.appearance.ratings": "التقييمات","settings.appearance.ratingsDesc": "حتى ثلاثة، بجانب السنة في صفحات الأعمال","settings.appearance.reset": "إعادة ضبط",diff --git a/app/frontend/src/lib/core/i18n/messages/ar/settings-index.json b/app/frontend/src/lib/core/i18n/messages/ar/settings-index.jsonindex 7bb7e3a..99ac9a5 100644--- a/app/frontend/src/lib/core/i18n/messages/ar/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/ar/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "السمة","settings.index.appearance.theme.theme.words": "مظهر سمة فاتح داكن تلقائي وضع ألوان ليلي",+ "settings.index.appearance.look.look.label": "النمط",+ "settings.index.appearance.look.look.words": "بسيط عادي هادئ بلا صور بلا توهج تشغيل تلقائي minimal","settings.index.appearance.language.language.label": "اللغة","settings.index.appearance.language.language.words": "لغة ترجمة لسان عربي إنجليزي كلمات","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "شغّل الإعلانات التشويقية تلقائيًا",diff --git a/app/frontend/src/lib/core/i18n/messages/ar/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/ar/settings-pick-rule-edit.jsonindex a3c826e..916f095 100644--- a/app/frontend/src/lib/core/i18n/messages/ar/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/ar/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "جودة كافية","settings.pickRuleEdit.goodEnoughAt": "تكفي عند","settings.pickRuleEdit.goodEnoughHint": "يتوقف HolyArrs عن البحث عن نسخة أفضل عندما يبلغ الملف هذه الدرجة.",+ "settings.pickRuleEdit.goodEnoughPoints": "نقاط الجودة الكافية",+ "settings.pickRuleEdit.goodEnoughPointsHint": "يحتاج الملف عند درجة الجودة الكافية أيضًا إلى هذا العدد من النقاط. اتركه فارغًا ليُحكم بالدرجة وحدها.","settings.pickRuleEdit.yourTraits": "سماتك","settings.pickRuleEdit.traits": "السمات والنقاط","settings.pickRuleEdit.traitsDesc": "الأكثر نقاطًا يفوز ضمن الدرجة نفسها",diff --git a/app/frontend/src/lib/core/i18n/messages/de/accounts.json b/app/frontend/src/lib/core/i18n/messages/de/accounts.jsonindex f725b57..14de78b 100644--- a/app/frontend/src/lib/core/i18n/messages/de/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/de/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "Einstellungen","accounts.account.trailers": "Trailer","accounts.account.trailersHint": "Automatisch beachtet reduzierte Bewegung und Datensparmodus",+ "accounts.account.trailersMinimal": "In der minimalen Ansicht aus","accounts.account.playTrailers": "Trailer abspielen","accounts.account.auto": "Auto","accounts.account.always": "Immer",diff --git a/app/frontend/src/lib/core/i18n/messages/de/home.json b/app/frontend/src/lib/core/i18n/messages/de/home.jsonindex 47a89fd..e0399bc 100644--- a/app/frontend/src/lib/core/i18n/messages/de/home.json+++ b/app/frontend/src/lib/core/i18n/messages/de/home.json@@ -254,6 +254,7 @@"home.finished": "Fertig {when}","home.nothingIsDownloadingRight": "Gerade lädt nichts herunter.","home.paused2": "{n} pausiert.",+ "home.notSentByHolyArrs": "{n} im Downloader, die HolyArrs nicht gesendet hat.","home.someChecksCouldNot": "Einige Prüfungen ließen sich gerade nicht lesen.","home.otherCheckPassed": "{n} andere Prüfung bestanden.","home.otherChecksPassed": "{n} andere Prüfungen bestanden.",diff --git a/app/frontend/src/lib/core/i18n/messages/de/migrate.json b/app/frontend/src/lib/core/i18n/messages/de/migrate.jsonindex dc93c6f..bd48bc3 100644--- a/app/frontend/src/lib/core/i18n/messages/de/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/de/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "HolyArrs regelt das auf seine eigene Weise. Nichts zu tun.","migrate.allApps": "Alle Apps","migrate.ifAnOldApp": "Wenn eine alte App einen Ordner unter einem anderen Pfad sieht, gib beide an.",+ "migrate.notInContainer": "HolyArrs sieht {path} nicht. Nimm den Pfad im Container: die rechte Seite des Docker-Volumes.",+ "migrate.foldersItSees": "Sichtbar sind: {list}",+ "migrate.sameNewFolder": "Derselbe Ordner wie {list}. Ihre Titel landen zusammen; gib 4K oder anderen Kopien einen eigenen Ordner.","migrate.doneOfTotal": "{done} von {total}"}diff --git a/app/frontend/src/lib/core/i18n/messages/de/server-lines.json b/app/frontend/src/lib/core/i18n/messages/de/server-lines.jsonindex 2251013..d77c4ef 100644--- a/app/frontend/src/lib/core/i18n/messages/de/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/de/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "die Quelle hat keinen Anfrage-Zeitstempel, deshalb kann der Import ihn nicht übernehmen","server.migrate.the-source-timestamp-format-is-invalid": "das Format des Zeitstempels der Quelle ist ungültig, deshalb kann der Import ihn nicht übernehmen","server.migrate.the-source-timestamp-is-after-this": "der Zeitstempel der Quelle liegt nach diesem gespeicherten Lesedurchgang, deshalb kann der Import ihn nicht übernehmen",- "server.migrate.the-titles-that-were-in-it": "die Titel, die darin waren, bleiben im Verlauf als entfernt, deshalb bleibt der Ordner",+ "server.migrate.the-titles-that-were-in-it": "Titel in der Bibliothek nutzen ihn noch, deshalb bleibt der Ordner",+ "server.migrate.deleted-files-still-wait-in-its": "gelöschte Dateien warten noch in seinem Ordner für Zurückgehaltenes, deshalb bleibt der Ordner",+ "server.migrate.an-outside-list-still-uses-it": "eine externe Liste nutzt ihn noch, deshalb bleibt der Ordner","server.migrate.the-wait-on-is-back-as": "die Wartezeit bei {name} ist wieder wie vorher","server.migrate.these-are-already-the-default-languages": "das sind schon die Standardsprachen","server.migrate.these-are-already-the-default-weekly": "das sind schon die Standard-Wochenlimits",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "Usenet-Server bleiben in SABnzbd eingerichtet","server.migrate.uses-the-folder-where-it-is": "nutzt den Ordner {dir}, wo er ist","server.migrate.uses-the-folder-where-it-is-2": "nutzt den Ordner {dir}, wo er ist; keine Datei wird verschoben oder umbenannt",+ "server.migrate.will-be-added-with-no-files": "wird vorerst ohne Dateien hinzugefügt; unter {dir} gibt es keinen Ordner",+ "server.migrate.added-with-no-files-yet-there": "vorerst ohne Dateien hinzugefügt; unter {dir} gibt es keinen Ordner","server.migrate.uses-the-folder-where-it-is-3": "nutzt den Ordner {folder}, wo er ist","server.migrate.wait-before-grabbing-every-title": "Wartezeit vor dem Holen (alle Titel)","server.migrate.wait-before-grabbing": "Wartezeit vor dem Holen ({tags})",diff --git a/app/frontend/src/lib/core/i18n/messages/de/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/de/settings-appearance.jsonindex afce105..86e49fe 100644--- a/app/frontend/src/lib/core/i18n/messages/de/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/de/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "Aussehen","settings.appearance.theme": "Design","settings.appearance.savedHere": "In diesem Browser gespeichert",+ "settings.appearance.look": "Ansicht",+ "settings.appearance.lookDesc": "Minimal zeigt Titel mit kleinen Postern, ohne große Fotos, Leuchteffekte oder Trailer, die von selbst abspielen. In diesem Browser gespeichert",+ "settings.appearance.lookFull": "Voll",+ "settings.appearance.lookMinimal": "Minimal","settings.appearance.background": "Hintergrund","settings.appearance.backgroundDesc": "Hinter jeder Seite. In diesem Browser gespeichert",+ "settings.appearance.wallOffMinimal": "Die Posterwand ist in der minimalen Ansicht aus","settings.appearance.ratings": "Bewertungen","settings.appearance.ratingsDesc": "Bis zu drei, neben dem Jahr auf Titelseiten","settings.appearance.reset": "Zurücksetzen",diff --git a/app/frontend/src/lib/core/i18n/messages/de/settings-index.json b/app/frontend/src/lib/core/i18n/messages/de/settings-index.jsonindex 21ebbec..0c03168 100644--- a/app/frontend/src/lib/core/i18n/messages/de/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/de/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "Design","settings.index.appearance.theme.theme.words": "aussehen hell dunkel automatisch modus farben nacht theme dark light",+ "settings.index.appearance.look.look.label": "Ansicht",+ "settings.index.appearance.look.look.words": "minimal schlicht einfach ruhig keine fotos kein leuchten autoplay look plain","settings.index.appearance.language.language.label": "Sprache","settings.index.appearance.language.language.words": "sprache übersetzung locale deutsch englisch wörter language","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "Trailer von selbst abspielen",diff --git a/app/frontend/src/lib/core/i18n/messages/de/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/de/settings-pick-rule-edit.jsonindex c6191d3..06320bc 100644--- a/app/frontend/src/lib/core/i18n/messages/de/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/de/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "Gut genug","settings.pickRuleEdit.goodEnoughAt": "Gut genug ab","settings.pickRuleEdit.goodEnoughHint": "HolyArrs hört auf, nach einer besseren Kopie zu suchen, sobald eine Datei diese Stufe erreicht.",+ "settings.pickRuleEdit.goodEnoughPoints": "Punkte für gut genug",+ "settings.pickRuleEdit.goodEnoughPointsHint": "Eine Datei auf der Gut-genug-Stufe braucht zusätzlich so viele Punkte. Leer lassen, damit nur die Stufe zählt.","settings.pickRuleEdit.yourTraits": "Deine Merkmale","settings.pickRuleEdit.traits": "Merkmale und Punkte","settings.pickRuleEdit.traitsDesc": "Bei gleicher Stufe gewinnt, wer die meisten Punkte hat",diff --git a/app/frontend/src/lib/core/i18n/messages/en/accounts.json b/app/frontend/src/lib/core/i18n/messages/en/accounts.jsonindex 2baad76..b18b55b 100644--- a/app/frontend/src/lib/core/i18n/messages/en/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/en/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "Preferences","accounts.account.trailers": "Trailers","accounts.account.trailersHint": "Auto respects Reduce motion and data saver",+ "accounts.account.trailersMinimal": "Off in the minimal look","accounts.account.playTrailers": "Play trailers","accounts.account.auto": "Auto","accounts.account.always": "Always",diff --git a/app/frontend/src/lib/core/i18n/messages/en/home.json b/app/frontend/src/lib/core/i18n/messages/en/home.jsonindex 7710b50..9b7b0f1 100644--- a/app/frontend/src/lib/core/i18n/messages/en/home.json+++ b/app/frontend/src/lib/core/i18n/messages/en/home.json@@ -254,6 +254,7 @@"home.finished": "Finished {when}","home.nothingIsDownloadingRight": "Nothing is downloading right now.","home.paused2": "{n} paused.",+ "home.notSentByHolyArrs": "{n} in the Downloader that HolyArrs did not send.","home.someChecksCouldNot": "Some checks could not be read right now.","home.otherCheckPassed": "{n} other check passed.","home.otherChecksPassed": "{n} other checks passed.",diff --git a/app/frontend/src/lib/core/i18n/messages/en/migrate.json b/app/frontend/src/lib/core/i18n/messages/en/migrate.jsonindex 3972cce..dd2e5e0 100644--- a/app/frontend/src/lib/core/i18n/messages/en/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/en/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "HolyArrs handles these its own way. Nothing to do.","migrate.allApps": "All apps","migrate.ifAnOldApp": "If an old app sees a folder at a different path, enter both.",+ "migrate.notInContainer": "HolyArrs can't see {path}. Use the path inside its container: the right side of the Docker volume.",+ "migrate.foldersItSees": "It can see: {list}",+ "migrate.sameNewFolder": "Same folder as {list}. Their titles end up together; give 4K or other copies their own folder.","migrate.doneOfTotal": "{done} of {total}"}diff --git a/app/frontend/src/lib/core/i18n/messages/en/server-lines.json b/app/frontend/src/lib/core/i18n/messages/en/server-lines.jsonindex 400b384..27610ba 100644--- a/app/frontend/src/lib/core/i18n/messages/en/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/en/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "the source has no request timestamp, so the import cannot preserve it","server.migrate.the-source-timestamp-format-is-invalid": "the source timestamp format is invalid, so the import cannot preserve it","server.migrate.the-source-timestamp-is-after-this": "the source timestamp is after this kept read, so the import cannot preserve it",- "server.migrate.the-titles-that-were-in-it": "the titles that were in it stay in History as removed, so the folder stays",+ "server.migrate.the-titles-that-were-in-it": "titles in the Library still use it, so the folder stays",+ "server.migrate.deleted-files-still-wait-in-its": "deleted files still wait in its holding folder, so the folder stays",+ "server.migrate.an-outside-list-still-uses-it": "an outside list still uses it, so the folder stays","server.migrate.the-wait-on-is-back-as": "the wait on {name} is back as it was","server.migrate.these-are-already-the-default-languages": "these are already the default languages","server.migrate.these-are-already-the-default-weekly": "these are already the default weekly limits",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "usenet servers stay set up in SABnzbd","server.migrate.uses-the-folder-where-it-is": "uses the folder {dir} where it is","server.migrate.uses-the-folder-where-it-is-2": "uses the folder {dir} where it is; no file is moved or renamed",+ "server.migrate.will-be-added-with-no-files": "will be added with no files yet; there is no folder at {dir}",+ "server.migrate.added-with-no-files-yet-there": "added with no files yet; there is no folder at {dir}","server.migrate.uses-the-folder-where-it-is-3": "uses the folder {folder} where it is","server.migrate.wait-before-grabbing-every-title": "wait before grabbing (every title)","server.migrate.wait-before-grabbing": "wait before grabbing {tags}",diff --git a/app/frontend/src/lib/core/i18n/messages/en/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/en/settings-appearance.jsonindex 9bf77ac..62cd694 100644--- a/app/frontend/src/lib/core/i18n/messages/en/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/en/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "Appearance","settings.appearance.theme": "Theme","settings.appearance.savedHere": "Saved in this browser",+ "settings.appearance.look": "Look",+ "settings.appearance.lookDesc": "Minimal shows titles with small posters, without big photos, glows or trailers that play by themselves. Saved in this browser",+ "settings.appearance.lookFull": "Full",+ "settings.appearance.lookMinimal": "Minimal","settings.appearance.background": "Background","settings.appearance.backgroundDesc": "Behind every page. Saved in this browser",+ "settings.appearance.wallOffMinimal": "The poster wall is off in the minimal look","settings.appearance.ratings": "Ratings","settings.appearance.ratingsDesc": "Up to three, beside the year on title pages","settings.appearance.reset": "Reset",diff --git a/app/frontend/src/lib/core/i18n/messages/en/settings-index.json b/app/frontend/src/lib/core/i18n/messages/en/settings-index.jsonindex cc656f9..94aa3b7 100644--- a/app/frontend/src/lib/core/i18n/messages/en/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/en/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "Theme","settings.index.appearance.theme.theme.words": "appearance light dark automatic mode colours colors night",+ "settings.index.appearance.look.look.label": "Look",+ "settings.index.appearance.look.look.words": "minimal plain simple calm no photos no glow autoplay","settings.index.appearance.language.language.label": "Language","settings.index.appearance.language.language.words": "language translation locale english words","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "Play trailers by themselves",diff --git a/app/frontend/src/lib/core/i18n/messages/en/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/en/settings-pick-rule-edit.jsonindex 265b3aa..c9075d5 100644--- a/app/frontend/src/lib/core/i18n/messages/en/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/en/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "Good enough","settings.pickRuleEdit.goodEnoughAt": "Good enough at","settings.pickRuleEdit.goodEnoughHint": "HolyArrs stops looking for a better copy once a file reaches this step.",+ "settings.pickRuleEdit.goodEnoughPoints": "Good enough points",+ "settings.pickRuleEdit.goodEnoughPointsHint": "A file at the good enough step also needs this many points. Leave empty to go by the step alone.","settings.pickRuleEdit.yourTraits": "Your traits","settings.pickRuleEdit.traits": "Traits and points","settings.pickRuleEdit.traitsDesc": "Most points wins on the same step",diff --git a/app/frontend/src/lib/core/i18n/messages/es/accounts.json b/app/frontend/src/lib/core/i18n/messages/es/accounts.jsonindex 764eb1d..4438c73 100644--- a/app/frontend/src/lib/core/i18n/messages/es/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/es/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "Preferencias","accounts.account.trailers": "Tráileres","accounts.account.trailersHint": "Auto respeta Reducir movimiento y el ahorro de datos",+ "accounts.account.trailersMinimal": "Desactivado en el aspecto mínimo","accounts.account.playTrailers": "Reproducir tráileres","accounts.account.auto": "Auto","accounts.account.always": "Siempre",diff --git a/app/frontend/src/lib/core/i18n/messages/es/home.json b/app/frontend/src/lib/core/i18n/messages/es/home.jsonindex ea74b0e..d1f960c 100644--- a/app/frontend/src/lib/core/i18n/messages/es/home.json+++ b/app/frontend/src/lib/core/i18n/messages/es/home.json@@ -254,6 +254,7 @@"home.finished": "Terminado {when}","home.nothingIsDownloadingRight": "No se está descargando nada ahora mismo.","home.paused2": "{n} en pausa.",+ "home.notSentByHolyArrs": "{n} en el gestor de descargas que HolyArrs no envió.","home.someChecksCouldNot": "Algunas comprobaciones no se pudieron leer ahora mismo.","home.otherCheckPassed": "{n} otra comprobación correcta.","home.otherChecksPassed": "{n} otras comprobaciones correctas.",diff --git a/app/frontend/src/lib/core/i18n/messages/es/migrate.json b/app/frontend/src/lib/core/i18n/messages/es/migrate.jsonindex bedf395..0fc4e62 100644--- a/app/frontend/src/lib/core/i18n/messages/es/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/es/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "HolyArrs gestiona esto a su manera. No hay nada que hacer.","migrate.allApps": "Todas las apps","migrate.ifAnOldApp": "Si una app anterior ve una carpeta en otra ruta, introduce ambas.",+ "migrate.notInContainer": "HolyArrs no ve {path}. Usa la ruta dentro de su contenedor: el lado derecho del volumen de Docker.",+ "migrate.foldersItSees": "Puede ver: {list}",+ "migrate.sameNewFolder": "Misma carpeta que {list}. Sus títulos acaban juntos; da a las copias 4K u otras su propia carpeta.","migrate.doneOfTotal": "{done} de {total}"}diff --git a/app/frontend/src/lib/core/i18n/messages/es/server-lines.json b/app/frontend/src/lib/core/i18n/messages/es/server-lines.jsonindex 94b2d6d..f0a37f9 100644--- a/app/frontend/src/lib/core/i18n/messages/es/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/es/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "el origen no tiene fecha de solicitud, así que la importación no puede conservarla","server.migrate.the-source-timestamp-format-is-invalid": "el formato de la fecha del origen no es válido, así que la importación no puede conservarla","server.migrate.the-source-timestamp-is-after-this": "la fecha del origen es posterior a esta lectura guardada, así que la importación no puede conservarla",- "server.migrate.the-titles-that-were-in-it": "los títulos que había en ella se quedan en el Historial como quitados, así que la carpeta se queda",+ "server.migrate.the-titles-that-were-in-it": "hay títulos de la Biblioteca que aún la usan, así que la carpeta se queda",+ "server.migrate.deleted-files-still-wait-in-its": "aún hay archivos borrados esperando en su carpeta de espera, así que la carpeta se queda",+ "server.migrate.an-outside-list-still-uses-it": "una lista externa aún la usa, así que la carpeta se queda","server.migrate.the-wait-on-is-back-as": "la espera de {name} volvió a como estaba","server.migrate.these-are-already-the-default-languages": "estos ya son los idiomas por defecto","server.migrate.these-are-already-the-default-weekly": "estos ya son los límites semanales por defecto",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "los servidores de Usenet siguen configurados en SABnzbd","server.migrate.uses-the-folder-where-it-is": "usa la carpeta {dir} donde está","server.migrate.uses-the-folder-where-it-is-2": "usa la carpeta {dir} donde está; no se mueve ni se renombra ningún archivo",+ "server.migrate.will-be-added-with-no-files": "se añadirá sin archivos por ahora; no hay carpeta en {dir}",+ "server.migrate.added-with-no-files-yet-there": "añadido sin archivos por ahora; no hay carpeta en {dir}","server.migrate.uses-the-folder-where-it-is-3": "usa la carpeta {folder} donde está","server.migrate.wait-before-grabbing-every-title": "espera antes de descargar (todos los títulos)","server.migrate.wait-before-grabbing": "espera antes de descargar {tags}",diff --git a/app/frontend/src/lib/core/i18n/messages/es/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/es/settings-appearance.jsonindex 82d96a7..25b6243 100644--- a/app/frontend/src/lib/core/i18n/messages/es/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/es/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "Apariencia","settings.appearance.theme": "Tema","settings.appearance.savedHere": "Guardado en este navegador",+ "settings.appearance.look": "Aspecto",+ "settings.appearance.lookDesc": "Mínimo muestra los títulos con carteles pequeños, sin fotos grandes, brillos ni tráileres que se reproducen solos. Se guarda en este navegador",+ "settings.appearance.lookFull": "Completo",+ "settings.appearance.lookMinimal": "Mínimo","settings.appearance.background": "Fondo","settings.appearance.backgroundDesc": "Detrás de cada página. Se guarda en este navegador",+ "settings.appearance.wallOffMinimal": "El muro de carteles está desactivado en el aspecto mínimo","settings.appearance.ratings": "Valoraciones","settings.appearance.ratingsDesc": "Hasta tres, junto al año en las páginas de títulos","settings.appearance.reset": "Restablecer",diff --git a/app/frontend/src/lib/core/i18n/messages/es/settings-index.json b/app/frontend/src/lib/core/i18n/messages/es/settings-index.jsonindex dabc4d1..c1f2f26 100644--- a/app/frontend/src/lib/core/i18n/messages/es/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/es/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "Tema","settings.index.appearance.theme.theme.words": "apariencia claro oscuro automático modo colores noche",+ "settings.index.appearance.look.look.label": "Aspecto",+ "settings.index.appearance.look.look.words": "mínimo sencillo simple tranquilo sin fotos sin brillo reproducción automática minimal","settings.index.appearance.language.language.label": "Idioma","settings.index.appearance.language.language.words": "idioma traducción configuración regional español inglés palabras","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "Reproducir tráileres automáticamente",diff --git a/app/frontend/src/lib/core/i18n/messages/es/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/es/settings-pick-rule-edit.jsonindex b541285..1a5a40a 100644--- a/app/frontend/src/lib/core/i18n/messages/es/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/es/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "Suficiente","settings.pickRuleEdit.goodEnoughAt": "Suficiente en","settings.pickRuleEdit.goodEnoughHint": "HolyArrs deja de buscar una copia mejor cuando un archivo llega a este paso.",+ "settings.pickRuleEdit.goodEnoughPoints": "Puntos para suficiente",+ "settings.pickRuleEdit.goodEnoughPointsHint": "Un archivo en el paso suficiente también necesita estos puntos. Déjalo vacío para que cuente solo el paso.","settings.pickRuleEdit.yourTraits": "Tus rasgos","settings.pickRuleEdit.traits": "Rasgos y puntos","settings.pickRuleEdit.traitsDesc": "Gana quien tenga más puntos en el mismo paso",diff --git a/app/frontend/src/lib/core/i18n/messages/fr/accounts.json b/app/frontend/src/lib/core/i18n/messages/fr/accounts.jsonindex 535fda8..b31b1c1 100644--- a/app/frontend/src/lib/core/i18n/messages/fr/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/fr/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "Préférences","accounts.account.trailers": "Bandes-annonces","accounts.account.trailersHint": "Auto respecte Réduire les animations et l'économiseur de données",+ "accounts.account.trailersMinimal": "Désactivé avec le style minimal","accounts.account.playTrailers": "Lire les bandes-annonces","accounts.account.auto": "Auto","accounts.account.always": "Toujours",diff --git a/app/frontend/src/lib/core/i18n/messages/fr/home.json b/app/frontend/src/lib/core/i18n/messages/fr/home.jsonindex ca9c5c4..fc6b569 100644--- a/app/frontend/src/lib/core/i18n/messages/fr/home.json+++ b/app/frontend/src/lib/core/i18n/messages/fr/home.json@@ -254,6 +254,7 @@"home.finished": "Terminé {when}","home.nothingIsDownloadingRight": "Rien ne se télécharge en ce moment.","home.paused2": "{n} en pause.",+ "home.notSentByHolyArrs": "{n} dans le client de téléchargement que HolyArrs n'a pas envoyés.","home.someChecksCouldNot": "Certaines vérifications n'ont pas pu être lues pour le moment.","home.otherCheckPassed": "{n} autre vérification réussie.","home.otherChecksPassed": "{n} autres vérifications réussies.",diff --git a/app/frontend/src/lib/core/i18n/messages/fr/migrate.json b/app/frontend/src/lib/core/i18n/messages/fr/migrate.jsonindex b3bfe9c..656a56e 100644--- a/app/frontend/src/lib/core/i18n/messages/fr/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/fr/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "HolyArrs gère cela à sa façon. Rien à faire.","migrate.allApps": "Toutes les applications","migrate.ifAnOldApp": "Si une ancienne application voit un dossier sous un autre chemin, saisissez les deux.",+ "migrate.notInContainer": "HolyArrs ne voit pas {path}. Utilisez le chemin dans son conteneur : la partie droite du volume Docker.",+ "migrate.foldersItSees": "Il voit : {list}",+ "migrate.sameNewFolder": "Même dossier que {list}. Leurs titres finissent ensemble ; donnez aux copies 4K ou autres leur propre dossier.","migrate.doneOfTotal": "{done} sur {total}"}diff --git a/app/frontend/src/lib/core/i18n/messages/fr/server-lines.json b/app/frontend/src/lib/core/i18n/messages/fr/server-lines.jsonindex 4b3f9aa..d58d15a 100644--- a/app/frontend/src/lib/core/i18n/messages/fr/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/fr/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "la source n'a pas d'horodatage de demande, donc l'import ne peut pas le conserver","server.migrate.the-source-timestamp-format-is-invalid": "le format de l'horodatage de la source est invalide, donc l'import ne peut pas le conserver","server.migrate.the-source-timestamp-is-after-this": "l'horodatage de la source est postérieur à cette lecture conservée, donc l'import ne peut pas le conserver",- "server.migrate.the-titles-that-were-in-it": "les titres qui y étaient restent dans l'Historique comme retirés, donc le dossier reste",+ "server.migrate.the-titles-that-were-in-it": "des titres de la Bibliothèque l'utilisent encore, donc le dossier reste",+ "server.migrate.deleted-files-still-wait-in-its": "des fichiers supprimés attendent encore dans son dossier de rétention, donc le dossier reste",+ "server.migrate.an-outside-list-still-uses-it": "une liste externe l'utilise encore, donc le dossier reste","server.migrate.the-wait-on-is-back-as": "l'attente sur {name} est revenue comme avant","server.migrate.these-are-already-the-default-languages": "ce sont déjà les langues par défaut","server.migrate.these-are-already-the-default-weekly": "ce sont déjà les limites hebdomadaires par défaut",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "les serveurs Usenet restent configurés dans SABnzbd","server.migrate.uses-the-folder-where-it-is": "utilise le dossier {dir} là où il est","server.migrate.uses-the-folder-where-it-is-2": "utilise le dossier {dir} là où il est ; aucun fichier n'est déplacé ni renommé",+ "server.migrate.will-be-added-with-no-files": "sera ajouté sans fichiers pour l'instant ; il n'y a pas de dossier à {dir}",+ "server.migrate.added-with-no-files-yet-there": "ajouté sans fichiers pour l'instant ; il n'y a pas de dossier à {dir}","server.migrate.uses-the-folder-where-it-is-3": "utilise le dossier {folder} là où il est","server.migrate.wait-before-grabbing-every-title": "attendre avant de récupérer (tous les titres)","server.migrate.wait-before-grabbing": "attendre avant de récupérer {tags}",diff --git a/app/frontend/src/lib/core/i18n/messages/fr/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/fr/settings-appearance.jsonindex 1261692..8c59930 100644--- a/app/frontend/src/lib/core/i18n/messages/fr/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/fr/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "Apparence","settings.appearance.theme": "Thème","settings.appearance.savedHere": "Enregistré dans ce navigateur",+ "settings.appearance.look": "Style",+ "settings.appearance.lookDesc": "Minimal affiche les titres avec de petites affiches, sans grandes photos, halos ni bandes-annonces qui se lancent seules. Enregistré dans ce navigateur",+ "settings.appearance.lookFull": "Complet",+ "settings.appearance.lookMinimal": "Minimal","settings.appearance.background": "Arrière-plan","settings.appearance.backgroundDesc": "Derrière chaque page. Enregistré dans ce navigateur",+ "settings.appearance.wallOffMinimal": "Le mur d'affiches est désactivé avec le style minimal","settings.appearance.ratings": "Notes","settings.appearance.ratingsDesc": "Trois au plus, à côté de l'année sur les pages de titres","settings.appearance.reset": "Réinitialiser",diff --git a/app/frontend/src/lib/core/i18n/messages/fr/settings-index.json b/app/frontend/src/lib/core/i18n/messages/fr/settings-index.jsonindex 728eba5..efc0be2 100644--- a/app/frontend/src/lib/core/i18n/messages/fr/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/fr/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "Thème","settings.index.appearance.theme.theme.words": "apparence clair sombre automatique mode couleurs nuit",+ "settings.index.appearance.look.look.label": "Style",+ "settings.index.appearance.look.look.words": "minimal simple sobre calme sans photos sans halo lecture automatique","settings.index.appearance.language.language.label": "Langue","settings.index.appearance.language.language.words": "langue traduction locale français anglais mots","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "Lire les bandes-annonces automatiquement",diff --git a/app/frontend/src/lib/core/i18n/messages/fr/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/fr/settings-pick-rule-edit.jsonindex 4dadd8f..f05df27 100644--- a/app/frontend/src/lib/core/i18n/messages/fr/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/fr/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "Suffisant","settings.pickRuleEdit.goodEnoughAt": "Suffisant à partir de","settings.pickRuleEdit.goodEnoughHint": "HolyArrs cesse de chercher une meilleure copie dès qu'un fichier atteint ce palier.",+ "settings.pickRuleEdit.goodEnoughPoints": "Points pour suffisant",+ "settings.pickRuleEdit.goodEnoughPointsHint": "Un fichier au palier suffisant doit aussi avoir ce nombre de points. Laissez vide pour ne tenir compte que du palier.","settings.pickRuleEdit.yourTraits": "Vos critères","settings.pickRuleEdit.traits": "Critères et points","settings.pickRuleEdit.traitsDesc": "Le plus de points l'emporte sur un même palier",diff --git a/app/frontend/src/lib/core/i18n/messages/hi/accounts.json b/app/frontend/src/lib/core/i18n/messages/hi/accounts.jsonindex 4c6f086..703f947 100644--- a/app/frontend/src/lib/core/i18n/messages/hi/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/hi/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "पसंद","accounts.account.trailers": "ट्रेलर","accounts.account.trailersHint": "ऑटो में रिड्यूस मोशन और डेटा सेवर का ध्यान रखा जाता है",+ "accounts.account.trailersMinimal": "मिनिमल लुक में बंद","accounts.account.playTrailers": "ट्रेलर चलाएं","accounts.account.auto": "ऑटो","accounts.account.always": "हमेशा",diff --git a/app/frontend/src/lib/core/i18n/messages/hi/home.json b/app/frontend/src/lib/core/i18n/messages/hi/home.jsonindex 30c7669..2fa7e50 100644--- a/app/frontend/src/lib/core/i18n/messages/hi/home.json+++ b/app/frontend/src/lib/core/i18n/messages/hi/home.json@@ -254,6 +254,7 @@"home.finished": "{when} पूरा हुआ","home.nothingIsDownloadingRight": "अभी कुछ डाउनलोड नहीं हो रहा।","home.paused2": "{n} रुके हुए।",+ "home.notSentByHolyArrs": "डाउनलोडर में {n} ऐसे हैं जो HolyArrs ने नहीं भेजे।","home.someChecksCouldNot": "कुछ जांचें अभी पढ़ी नहीं जा सकीं।","home.otherCheckPassed": "{n} और जांच पास हुई।","home.otherChecksPassed": "{n} और जांचें पास हुईं।",diff --git a/app/frontend/src/lib/core/i18n/messages/hi/migrate.json b/app/frontend/src/lib/core/i18n/messages/hi/migrate.jsonindex 1149b1d..cc16832 100644--- a/app/frontend/src/lib/core/i18n/messages/hi/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/hi/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "HolyArrs इन्हें अपने तरीके से संभालता है। कुछ करना नहीं है।","migrate.allApps": "सभी ऐप","migrate.ifAnOldApp": "अगर कोई पुराना ऐप फ़ोल्डर को दूसरे पाथ पर देखता है, तो दोनों लिखें।",+ "migrate.notInContainer": "HolyArrs {path} नहीं देख पा रहा। उसके कंटेनर के अंदर का पाथ लिखें: Docker वॉल्यूम का दायां हिस्सा।",+ "migrate.foldersItSees": "यह देख सकता है: {list}",+ "migrate.sameNewFolder": "{list} जैसा ही फ़ोल्डर। इनके टाइटल एक साथ आ जाएंगे; 4K या दूसरी कॉपियों को उनका अपना फ़ोल्डर दें।","migrate.doneOfTotal": "{done} / {total}"}diff --git a/app/frontend/src/lib/core/i18n/messages/hi/server-lines.json b/app/frontend/src/lib/core/i18n/messages/hi/server-lines.jsonindex 00999d4..6a44151 100644--- a/app/frontend/src/lib/core/i18n/messages/hi/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/hi/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "सोर्स में रिक्वेस्ट का समय नहीं है, इसलिए इंपोर्ट उसे रख नहीं सकता","server.migrate.the-source-timestamp-format-is-invalid": "सोर्स के समय का फ़ॉर्मैट गलत है, इसलिए इंपोर्ट उसे रख नहीं सकता","server.migrate.the-source-timestamp-is-after-this": "सोर्स का समय इस रखे गए रीड के बाद का है, इसलिए इंपोर्ट उसे रख नहीं सकता",- "server.migrate.the-titles-that-were-in-it": "इसमें जो टाइटल थे वे हिस्ट्री में हटाए हुए दिखते हैं, इसलिए फ़ोल्डर रहता है",+ "server.migrate.the-titles-that-were-in-it": "लाइब्रेरी के टाइटल अब भी इसका इस्तेमाल करते हैं, इसलिए फ़ोल्डर रहता है",+ "server.migrate.deleted-files-still-wait-in-its": "हटाई गई फ़ाइलें अब भी इसके होल्डिंग फ़ोल्डर में रखी हैं, इसलिए फ़ोल्डर रहता है",+ "server.migrate.an-outside-list-still-uses-it": "एक बाहरी सूची अब भी इसका इस्तेमाल करती है, इसलिए फ़ोल्डर रहता है","server.migrate.the-wait-on-is-back-as": "{name} का इंतज़ार पहले जैसा हो गया","server.migrate.these-are-already-the-default-languages": "ये पहले से डिफ़ॉल्ट भाषाएं हैं","server.migrate.these-are-already-the-default-weekly": "ये पहले से डिफ़ॉल्ट साप्ताहिक सीमा हैं",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "Usenet सर्वर SABnzbd में ही सेट रहते हैं","server.migrate.uses-the-folder-where-it-is": "फ़ोल्डर {dir} को वहीं इस्तेमाल करता है जहां वह है","server.migrate.uses-the-folder-where-it-is-2": "फ़ोल्डर {dir} को वहीं इस्तेमाल करता है जहां वह है; कोई फ़ाइल न हिलती है न उसका नाम बदलता है",+ "server.migrate.will-be-added-with-no-files": "अभी बिना फ़ाइलों के जोड़ा जाएगा; {dir} पर कोई फ़ोल्डर नहीं है",+ "server.migrate.added-with-no-files-yet-there": "अभी बिना फ़ाइलों के जोड़ा गया; {dir} पर कोई फ़ोल्डर नहीं है","server.migrate.uses-the-folder-where-it-is-3": "फ़ोल्डर {folder} को वहीं इस्तेमाल करता है जहां वह है","server.migrate.wait-before-grabbing-every-title": "लेने से पहले इंतज़ार (हर टाइटल)","server.migrate.wait-before-grabbing": "{tags} को लेने से पहले इंतज़ार",diff --git a/app/frontend/src/lib/core/i18n/messages/hi/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/hi/settings-appearance.jsonindex 1683714..30b4bec 100644--- a/app/frontend/src/lib/core/i18n/messages/hi/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/hi/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "दिखावट","settings.appearance.theme": "थीम","settings.appearance.savedHere": "इस ब्राउज़र में सेव",+ "settings.appearance.look": "लुक",+ "settings.appearance.lookDesc": "मिनिमल में टाइटल छोटे पोस्टर के साथ दिखते हैं, बड़ी फ़ोटो, चमक या अपने आप चलने वाले ट्रेलर के बिना। इस ब्राउज़र में सेव होता है",+ "settings.appearance.lookFull": "पूरा",+ "settings.appearance.lookMinimal": "मिनिमल","settings.appearance.background": "बैकग्राउंड","settings.appearance.backgroundDesc": "हर पेज के पीछे। इस ब्राउज़र में सेव होता है",+ "settings.appearance.wallOffMinimal": "मिनिमल लुक में पोस्टर वॉल बंद है","settings.appearance.ratings": "रेटिंग","settings.appearance.ratingsDesc": "टाइटल पेज पर साल के पास, तीन तक","settings.appearance.reset": "रीसेट",diff --git a/app/frontend/src/lib/core/i18n/messages/hi/settings-index.json b/app/frontend/src/lib/core/i18n/messages/hi/settings-index.jsonindex ee549d1..87eddc7 100644--- a/app/frontend/src/lib/core/i18n/messages/hi/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/hi/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "थीम","settings.index.appearance.theme.theme.words": "दिखावट लाइट डार्क ऑटोमैटिक मोड रंग रात थीम",+ "settings.index.appearance.look.look.label": "लुक",+ "settings.index.appearance.look.look.words": "मिनिमल सादा सरल शांत फ़ोटो नहीं चमक नहीं ऑटोप्ले minimal plain","settings.index.appearance.language.language.label": "भाषा","settings.index.appearance.language.language.words": "भाषा अनुवाद लोकेल हिंदी अंग्रेज़ी शब्द","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "ट्रेलर अपने आप चलाएं",diff --git a/app/frontend/src/lib/core/i18n/messages/hi/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/hi/settings-pick-rule-edit.jsonindex 4dd91c9..1c9fcbf 100644--- a/app/frontend/src/lib/core/i18n/messages/hi/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/hi/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "काफ़ी अच्छा","settings.pickRuleEdit.goodEnoughAt": "काफ़ी अच्छा यहां से","settings.pickRuleEdit.goodEnoughHint": "फ़ाइल इस स्टेप पर पहुंचते ही HolyArrs बेहतर कॉपी खोजना बंद कर देता है।",+ "settings.pickRuleEdit.goodEnoughPoints": "काफ़ी अच्छा के लिए पॉइंट",+ "settings.pickRuleEdit.goodEnoughPointsHint": "काफ़ी अच्छा स्टेप पर पहुंची फ़ाइल को इतने पॉइंट भी चाहिए। सिर्फ़ स्टेप से तय करने के लिए खाली छोड़ें।","settings.pickRuleEdit.yourTraits": "आपकी विशेषताएं","settings.pickRuleEdit.traits": "विशेषताएं और पॉइंट","settings.pickRuleEdit.traitsDesc": "एक ही स्टेप पर ज़्यादा पॉइंट वाला जीतता है",diff --git a/app/frontend/src/lib/core/i18n/messages/it/accounts.json b/app/frontend/src/lib/core/i18n/messages/it/accounts.jsonindex b901909..89bd753 100644--- a/app/frontend/src/lib/core/i18n/messages/it/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/it/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "Preferenze","accounts.account.trailers": "Trailer","accounts.account.trailersHint": "Automatico rispetta Riduci animazioni e il risparmio dati",+ "accounts.account.trailersMinimal": "Spento nello stile minimale","accounts.account.playTrailers": "Riproduci i trailer","accounts.account.auto": "Automatico","accounts.account.always": "Sempre",diff --git a/app/frontend/src/lib/core/i18n/messages/it/home.json b/app/frontend/src/lib/core/i18n/messages/it/home.jsonindex e3b5781..5ad6bde 100644--- a/app/frontend/src/lib/core/i18n/messages/it/home.json+++ b/app/frontend/src/lib/core/i18n/messages/it/home.json@@ -254,6 +254,7 @@"home.finished": "Finito {when}","home.nothingIsDownloadingRight": "Al momento non si sta scaricando niente.","home.paused2": "{n} in pausa.",+ "home.notSentByHolyArrs": "{n} nel Downloader che HolyArrs non ha inviato.","home.someChecksCouldNot": "Alcuni controlli non si sono potuti leggere in questo momento.","home.otherCheckPassed": "{n} altro controllo superato.","home.otherChecksPassed": "{n} altri controlli superati.",diff --git a/app/frontend/src/lib/core/i18n/messages/it/migrate.json b/app/frontend/src/lib/core/i18n/messages/it/migrate.jsonindex 6cdb31f..5922bbd 100644--- a/app/frontend/src/lib/core/i18n/messages/it/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/it/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "HolyArrs gestisce queste cose a modo suo. Non devi fare niente.","migrate.allApps": "Tutte le app","migrate.ifAnOldApp": "Se un'app precedente vede una cartella in un percorso diverso, inserisci entrambi.",+ "migrate.notInContainer": "HolyArrs non vede {path}. Usa il percorso dentro il suo container: la parte destra del volume Docker.",+ "migrate.foldersItSees": "Vede: {list}",+ "migrate.sameNewFolder": "Stessa cartella di {list}. I loro titoli finiscono insieme; dai alle copie 4K o ad altre copie una cartella tutta loro.","migrate.doneOfTotal": "{done} di {total}"}diff --git a/app/frontend/src/lib/core/i18n/messages/it/server-lines.json b/app/frontend/src/lib/core/i18n/messages/it/server-lines.jsonindex 418ab58..97fe0cf 100644--- a/app/frontend/src/lib/core/i18n/messages/it/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/it/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "l'app d'origine non ha l'ora della richiesta, quindi l'importazione non può mantenerla","server.migrate.the-source-timestamp-format-is-invalid": "il formato dell'ora nell'app d'origine non è valido, quindi l'importazione non può mantenerla","server.migrate.the-source-timestamp-is-after-this": "l'ora nell'app d'origine è successiva a questa lettura conservata, quindi l'importazione non può mantenerla",- "server.migrate.the-titles-that-were-in-it": "i titoli che c'erano restano nella Cronologia come rimossi, quindi la cartella resta",+ "server.migrate.the-titles-that-were-in-it": "dei titoli della Libreria la usano ancora, quindi la cartella resta",+ "server.migrate.deleted-files-still-wait-in-its": "dei file eliminati aspettano ancora nella sua cartella di attesa, quindi la cartella resta",+ "server.migrate.an-outside-list-still-uses-it": "una lista esterna la usa ancora, quindi la cartella resta","server.migrate.the-wait-on-is-back-as": "l'attesa di {name} è tornata com'era","server.migrate.these-are-already-the-default-languages": "queste sono già le lingue predefinite","server.migrate.these-are-already-the-default-weekly": "questi sono già i limiti settimanali predefiniti",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "i server Usenet restano configurati in SABnzbd","server.migrate.uses-the-folder-where-it-is": "usa la cartella {dir} dov'è","server.migrate.uses-the-folder-where-it-is-2": "usa la cartella {dir} dov'è; nessun file viene spostato o rinominato",+ "server.migrate.will-be-added-with-no-files": "verrà aggiunto per ora senza file; non c'è nessuna cartella in {dir}",+ "server.migrate.added-with-no-files-yet-there": "aggiunto per ora senza file; non c'è nessuna cartella in {dir}","server.migrate.uses-the-folder-where-it-is-3": "usa la cartella {folder} dov'è","server.migrate.wait-before-grabbing-every-title": "attesa prima di scaricare (ogni titolo)","server.migrate.wait-before-grabbing": "attesa prima di scaricare {tags}",diff --git a/app/frontend/src/lib/core/i18n/messages/it/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/it/settings-appearance.jsonindex 82c13ba..3d5421d 100644--- a/app/frontend/src/lib/core/i18n/messages/it/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/it/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "Aspetto","settings.appearance.theme": "Tema","settings.appearance.savedHere": "Salvato in questo browser",+ "settings.appearance.look": "Stile",+ "settings.appearance.lookDesc": "Minimale mostra i titoli con locandine piccole, senza foto grandi, bagliori o trailer che partono da soli. Salvato in questo browser",+ "settings.appearance.lookFull": "Completo",+ "settings.appearance.lookMinimal": "Minimale","settings.appearance.background": "Sfondo","settings.appearance.backgroundDesc": "Dietro ogni pagina. Salvato in questo browser",+ "settings.appearance.wallOffMinimal": "Il muro di locandine è spento nello stile minimale","settings.appearance.ratings": "Voti","settings.appearance.ratingsDesc": "Fino a tre, accanto all'anno nelle pagine dei titoli","settings.appearance.reset": "Ripristina",diff --git a/app/frontend/src/lib/core/i18n/messages/it/settings-index.json b/app/frontend/src/lib/core/i18n/messages/it/settings-index.jsonindex 16f0b7c..1ebfec7 100644--- a/app/frontend/src/lib/core/i18n/messages/it/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/it/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "Tema","settings.index.appearance.theme.theme.words": "aspetto chiaro scuro automatico modalità colori notte theme dark light",+ "settings.index.appearance.look.look.label": "Stile",+ "settings.index.appearance.look.look.words": "minimale semplice sobrio calmo niente foto niente bagliori riproduzione automatica minimal","settings.index.appearance.language.language.label": "Lingua","settings.index.appearance.language.language.words": "lingua traduzione locale italiano inglese parole language","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "Riproduci i trailer da soli",diff --git a/app/frontend/src/lib/core/i18n/messages/it/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/it/settings-pick-rule-edit.jsonindex 05d15fa..8939450 100644--- a/app/frontend/src/lib/core/i18n/messages/it/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/it/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "Sufficiente","settings.pickRuleEdit.goodEnoughAt": "Sufficiente a","settings.pickRuleEdit.goodEnoughHint": "HolyArrs smette di cercare una copia migliore quando un file raggiunge questa fase.",+ "settings.pickRuleEdit.goodEnoughPoints": "Punti per sufficiente",+ "settings.pickRuleEdit.goodEnoughPointsHint": "Un file alla fase sufficiente deve avere anche questi punti. Lascia vuoto per contare solo la fase.","settings.pickRuleEdit.yourTraits": "I tuoi tratti","settings.pickRuleEdit.traits": "Tratti e punti","settings.pickRuleEdit.traitsDesc": "Nella stessa fase vince chi ha più punti",diff --git a/app/frontend/src/lib/core/i18n/messages/ja/accounts.json b/app/frontend/src/lib/core/i18n/messages/ja/accounts.jsonindex 063d953..908bf46 100644--- a/app/frontend/src/lib/core/i18n/messages/ja/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/ja/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "環境設定","accounts.account.trailers": "予告編","accounts.account.trailersHint": "「自動」は、視覚効果を減らす設定とデータセーバーに従います",+ "accounts.account.trailersMinimal": "ミニマル表示ではオフ","accounts.account.playTrailers": "予告編を再生","accounts.account.auto": "自動","accounts.account.always": "常に",diff --git a/app/frontend/src/lib/core/i18n/messages/ja/home.json b/app/frontend/src/lib/core/i18n/messages/ja/home.jsonindex 2c4b8d6..b14748a 100644--- a/app/frontend/src/lib/core/i18n/messages/ja/home.json+++ b/app/frontend/src/lib/core/i18n/messages/ja/home.json@@ -254,6 +254,7 @@"home.finished": "{when} に完了","home.nothingIsDownloadingRight": "いまダウンロード中のものはありません。","home.paused2": "{n} 件一時停止中。",+ "home.notSentByHolyArrs": "HolyArrs が送っていないものがダウンローダーに {n} 件あります。","home.someChecksCouldNot": "一部のチェックを今は読み取れませんでした。","home.otherCheckPassed": "ほか {n} 件のチェックは正常でした。","home.otherChecksPassed": "ほか {n} 件のチェックは正常でした。",diff --git a/app/frontend/src/lib/core/i18n/messages/ja/migrate.json b/app/frontend/src/lib/core/i18n/messages/ja/migrate.jsonindex 0fd96ba..831ae9e 100644--- a/app/frontend/src/lib/core/i18n/messages/ja/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/ja/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "これらは HolyArrs が独自の方法で扱います。対応は不要です。","migrate.allApps": "すべてのアプリ","migrate.ifAnOldApp": "以前のアプリがフォルダーを別のパスで見ている場合は、両方を入力してください。",+ "migrate.notInContainer": "HolyArrs から {path} が見えません。コンテナー内のパス(Docker ボリュームの右側)を使ってください。",+ "migrate.foldersItSees": "見えるフォルダー: {list}",+ "migrate.sameNewFolder": "{list} と同じフォルダーです。タイトルがまとめて入るので、4K などの別コピーには専用のフォルダーを用意してください。","migrate.doneOfTotal": "{done} / {total}"}diff --git a/app/frontend/src/lib/core/i18n/messages/ja/server-lines.json b/app/frontend/src/lib/core/i18n/messages/ja/server-lines.jsonindex 3d6c405..cff6a1e 100644--- a/app/frontend/src/lib/core/i18n/messages/ja/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/ja/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "元のアプリにリクエスト日時がないため、インポートでは保持できません","server.migrate.the-source-timestamp-format-is-invalid": "元の日時の形式が正しくないため、インポートでは保持できません","server.migrate.the-source-timestamp-is-after-this": "元の日時がこの読み取りの後になっているため、インポートでは保持できません",- "server.migrate.the-titles-that-were-in-it": "その中にあった作品は履歴に削除済みとして残るため、フォルダーは残ります",+ "server.migrate.the-titles-that-were-in-it": "ライブラリの作品がまだ使っているため、フォルダーは残ります",+ "server.migrate.deleted-files-still-wait-in-its": "削除したファイルがまだ保留フォルダーにあるため、フォルダーは残ります",+ "server.migrate.an-outside-list-still-uses-it": "外部リストがまだ使っているため、フォルダーは残ります","server.migrate.the-wait-on-is-back-as": "{name} の待ち時間を元に戻しました","server.migrate.these-are-already-the-default-languages": "これらはすでに初期の言語です","server.migrate.these-are-already-the-default-weekly": "これらはすでに週あたりの初期上限です",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "Usenet サーバーは SABnzbd に設定したまま残ります","server.migrate.uses-the-folder-where-it-is": "フォルダー {dir} をそのまま使います","server.migrate.uses-the-folder-where-it-is-2": "フォルダー {dir} をそのまま使います。ファイルの移動や名前の変更はありません",+ "server.migrate.will-be-added-with-no-files": "ファイルなしで追加されます。{dir} にフォルダーがありません",+ "server.migrate.added-with-no-files-yet-there": "ファイルなしで追加しました。{dir} にフォルダーがありません","server.migrate.uses-the-folder-where-it-is-3": "フォルダー {folder} をそのまま使います","server.migrate.wait-before-grabbing-every-title": "取得前の待ち時間 (すべての作品)","server.migrate.wait-before-grabbing": "{tags} の取得前の待ち時間",diff --git a/app/frontend/src/lib/core/i18n/messages/ja/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/ja/settings-appearance.jsonindex 98a20cf..b403dbf 100644--- a/app/frontend/src/lib/core/i18n/messages/ja/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/ja/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "外観","settings.appearance.theme": "テーマ","settings.appearance.savedHere": "このブラウザーに保存されます",+"settings.appearance.look": "表示スタイル",+"settings.appearance.lookDesc": "ミニマルでは作品を小さなポスターで表示し、大きな写真や光の効果、自動で再生される予告編は表示しません。このブラウザーに保存されます",+"settings.appearance.lookFull": "フル",+"settings.appearance.lookMinimal": "ミニマル","settings.appearance.background": "背景","settings.appearance.backgroundDesc": "すべてのページの背面に表示。このブラウザーに保存されます",+"settings.appearance.wallOffMinimal": "ミニマル表示ではポスターウォールはオフです","settings.appearance.ratings": "評価","settings.appearance.ratingsDesc": "作品ページの年の横に、最大 3 つ","settings.appearance.reset": "リセット",diff --git a/app/frontend/src/lib/core/i18n/messages/ja/settings-index.json b/app/frontend/src/lib/core/i18n/messages/ja/settings-index.jsonindex 5e35799..39c4ed8 100644--- a/app/frontend/src/lib/core/i18n/messages/ja/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/ja/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "テーマ","settings.index.appearance.theme.theme.words": "外観 ライト ダーク 自動 モード 色 夜 appearance light dark automatic mode colours colors night",+ "settings.index.appearance.look.look.label": "表示スタイル",+ "settings.index.appearance.look.look.words": "ミニマル シンプル 落ち着いた 写真なし 光なし 自動再生 minimal plain","settings.index.appearance.language.language.label": "言語","settings.index.appearance.language.language.words": "言語 翻訳 ロケール 日本語 language translation locale english words","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "予告編を自動で再生",diff --git a/app/frontend/src/lib/core/i18n/messages/ja/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/ja/settings-pick-rule-edit.jsonindex 74b15ba..9f21104 100644--- a/app/frontend/src/lib/core/i18n/messages/ja/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/ja/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "十分な品質","settings.pickRuleEdit.goodEnoughAt": "十分な品質とするステップ","settings.pickRuleEdit.goodEnoughHint": "ファイルがこのステップに達すると、HolyArrs はより良いコピーを探すのをやめます。",+"settings.pickRuleEdit.goodEnoughPoints": "十分な品質に必要なポイント",+"settings.pickRuleEdit.goodEnoughPointsHint": "十分な品質のステップにあるファイルは、このポイントも必要です。ステップだけで判断するには空欄のままにします。","settings.pickRuleEdit.yourTraits": "自分の特性","settings.pickRuleEdit.traits": "特性とポイント","settings.pickRuleEdit.traitsDesc": "同じステップでは、ポイントが最も多いものが採用されます",diff --git a/app/frontend/src/lib/core/i18n/messages/ko/accounts.json b/app/frontend/src/lib/core/i18n/messages/ko/accounts.jsonindex 88bbd56..b227c8e 100644--- a/app/frontend/src/lib/core/i18n/messages/ko/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/ko/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "환경설정","accounts.account.trailers": "예고편","accounts.account.trailersHint": "자동은 동작 줄이기와 데이터 절약 설정을 따릅니다",+ "accounts.account.trailersMinimal": "미니멀 보기에서는 꺼짐","accounts.account.playTrailers": "예고편 재생","accounts.account.auto": "자동","accounts.account.always": "항상",diff --git a/app/frontend/src/lib/core/i18n/messages/ko/home.json b/app/frontend/src/lib/core/i18n/messages/ko/home.jsonindex f5fb566..0302795 100644--- a/app/frontend/src/lib/core/i18n/messages/ko/home.json+++ b/app/frontend/src/lib/core/i18n/messages/ko/home.json@@ -254,6 +254,7 @@"home.finished": "{when} 완료","home.nothingIsDownloadingRight": "지금 다운로드 중인 항목이 없습니다.","home.paused2": "{n}건 일시 중지.",+ "home.notSentByHolyArrs": "HolyArrs가 보내지 않은 항목이 다운로더에 {n}건 있습니다.","home.someChecksCouldNot": "일부 점검 결과를 지금 읽지 못했습니다.","home.otherCheckPassed": "다른 점검 {n}개 통과.","home.otherChecksPassed": "다른 점검 {n}개 통과.",diff --git a/app/frontend/src/lib/core/i18n/messages/ko/migrate.json b/app/frontend/src/lib/core/i18n/messages/ko/migrate.jsonindex 1ca415f..f1fee51 100644--- a/app/frontend/src/lib/core/i18n/messages/ko/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/ko/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "HolyArrs가 자체 방식으로 처리합니다. 할 일은 없습니다.","migrate.allApps": "모든 앱","migrate.ifAnOldApp": "기존 앱이 폴더를 다른 경로로 보면 두 경로를 모두 입력하세요.",+ "migrate.notInContainer": "HolyArrs에서 {path}이(가) 보이지 않습니다. 컨테이너 안의 경로(Docker 볼륨의 오른쪽)를 사용하세요.",+ "migrate.foldersItSees": "보이는 폴더: {list}",+ "migrate.sameNewFolder": "{list}과(와) 같은 폴더입니다. 타이틀이 한곳에 모이니 4K 등 다른 사본에는 별도 폴더를 지정하세요.","migrate.doneOfTotal": "{total}개 중 {done}개"}diff --git a/app/frontend/src/lib/core/i18n/messages/ko/server-lines.json b/app/frontend/src/lib/core/i18n/messages/ko/server-lines.jsonindex 8e9ebbb..ac4afc8 100644--- a/app/frontend/src/lib/core/i18n/messages/ko/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/ko/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "원본에 요청 시각이 없어 가져오기에서 보존할 수 없습니다","server.migrate.the-source-timestamp-format-is-invalid": "원본 시각 형식이 올바르지 않아 가져오기에서 보존할 수 없습니다","server.migrate.the-source-timestamp-is-after-this": "원본 시각이 이 읽은 기록보다 나중이라 가져오기에서 보존할 수 없습니다",- "server.migrate.the-titles-that-were-in-it": "그 안에 있던 작품은 기록에 삭제된 상태로 남으므로 폴더는 유지됩니다",+ "server.migrate.the-titles-that-were-in-it": "라이브러리의 작품이 아직 사용 중이므로 폴더는 유지됩니다",+ "server.migrate.deleted-files-still-wait-in-its": "삭제한 파일이 아직 보관 폴더에 남아 있으므로 폴더는 유지됩니다",+ "server.migrate.an-outside-list-still-uses-it": "외부 목록이 아직 사용 중이므로 폴더는 유지됩니다","server.migrate.the-wait-on-is-back-as": "{name}의 대기 시간을 원래대로 되돌렸습니다","server.migrate.these-are-already-the-default-languages": "이미 기본 언어입니다","server.migrate.these-are-already-the-default-weekly": "이미 기본 주간 한도입니다",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "Usenet 서버는 SABnzbd에 설정된 채로 남습니다","server.migrate.uses-the-folder-where-it-is": "{dir} 폴더를 그 자리에서 사용합니다","server.migrate.uses-the-folder-where-it-is-2": "{dir} 폴더를 그 자리에서 사용합니다. 파일은 옮기거나 이름을 바꾸지 않습니다",+ "server.migrate.will-be-added-with-no-files": "우선 파일 없이 추가됩니다. {dir}에 폴더가 없습니다",+ "server.migrate.added-with-no-files-yet-there": "우선 파일 없이 추가했습니다. {dir}에 폴더가 없습니다","server.migrate.uses-the-folder-where-it-is-3": "{folder} 폴더를 그 자리에서 사용합니다","server.migrate.wait-before-grabbing-every-title": "받기 전 대기(모든 작품)","server.migrate.wait-before-grabbing": "받기 전 대기 {tags}",diff --git a/app/frontend/src/lib/core/i18n/messages/ko/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/ko/settings-appearance.jsonindex 9f23d1c..41abea9 100644--- a/app/frontend/src/lib/core/i18n/messages/ko/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/ko/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "외관","settings.appearance.theme": "테마","settings.appearance.savedHere": "이 브라우저에 저장됨",+ "settings.appearance.look": "보기 방식",+ "settings.appearance.lookDesc": "미니멀은 작품을 작은 포스터와 함께 보여 주며, 큰 사진이나 빛 효과, 저절로 재생되는 예고편은 표시하지 않습니다. 이 브라우저에 저장됩니다",+ "settings.appearance.lookFull": "전체",+ "settings.appearance.lookMinimal": "미니멀","settings.appearance.background": "배경","settings.appearance.backgroundDesc": "모든 페이지 뒤에 표시됩니다. 이 브라우저에 저장됩니다",+ "settings.appearance.wallOffMinimal": "미니멀 보기에서는 포스터 월이 꺼져 있습니다","settings.appearance.ratings": "평점","settings.appearance.ratingsDesc": "작품 페이지의 연도 옆에 최대 3개","settings.appearance.reset": "초기화",diff --git a/app/frontend/src/lib/core/i18n/messages/ko/settings-index.json b/app/frontend/src/lib/core/i18n/messages/ko/settings-index.jsonindex fb4aef9..44b3085 100644--- a/app/frontend/src/lib/core/i18n/messages/ko/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/ko/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "테마","settings.index.appearance.theme.theme.words": "외관 라이트 다크 자동 모드 색상 밤 appearance light dark automatic mode colours colors night",+ "settings.index.appearance.look.look.label": "보기 방식",+ "settings.index.appearance.look.look.words": "미니멀 단순 간단 차분 사진 없음 빛 없음 자동 재생 minimal plain","settings.index.appearance.language.language.label": "언어","settings.index.appearance.language.language.words": "언어 번역 로캘 영어 language translation locale english words","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "트레일러 자동 재생",diff --git a/app/frontend/src/lib/core/i18n/messages/ko/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/ko/settings-pick-rule-edit.jsonindex 5e5df07..b4c48ea 100644--- a/app/frontend/src/lib/core/i18n/messages/ko/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/ko/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "충분한 품질","settings.pickRuleEdit.goodEnoughAt": "충분한 품질 기준","settings.pickRuleEdit.goodEnoughHint": "파일이 이 단계에 이르면 HolyArrs는 더 좋은 사본 찾기를 멈춥니다.",+ "settings.pickRuleEdit.goodEnoughPoints": "충분한 품질 점수",+ "settings.pickRuleEdit.goodEnoughPointsHint": "충분한 품질 단계의 파일은 이 점수도 있어야 합니다. 단계만으로 판단하려면 비워 두세요.","settings.pickRuleEdit.yourTraits": "내 특성","settings.pickRuleEdit.traits": "특성과 점수","settings.pickRuleEdit.traitsDesc": "같은 단계에서는 점수가 가장 높은 것이 선택됩니다",diff --git a/app/frontend/src/lib/core/i18n/messages/nl/accounts.json b/app/frontend/src/lib/core/i18n/messages/nl/accounts.jsonindex 2cea7f8..2f50446 100644--- a/app/frontend/src/lib/core/i18n/messages/nl/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/nl/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "Voorkeuren","accounts.account.trailers": "Trailers","accounts.account.trailersHint": "Auto houdt rekening met Beweging beperken en databesparing",+ "accounts.account.trailersMinimal": "Uit in de minimale weergave","accounts.account.playTrailers": "Trailers afspelen","accounts.account.auto": "Auto","accounts.account.always": "Altijd",diff --git a/app/frontend/src/lib/core/i18n/messages/nl/home.json b/app/frontend/src/lib/core/i18n/messages/nl/home.jsonindex 760dc77..1697282 100644--- a/app/frontend/src/lib/core/i18n/messages/nl/home.json+++ b/app/frontend/src/lib/core/i18n/messages/nl/home.json@@ -254,6 +254,7 @@"home.finished": "Klaar {when}","home.nothingIsDownloadingRight": "Er wordt nu niets gedownload.","home.paused2": "{n} gepauzeerd.",+ "home.notSentByHolyArrs": "{n} in de Downloader die HolyArrs niet heeft gestuurd.","home.someChecksCouldNot": "Sommige controles konden nu niet worden gelezen.","home.otherCheckPassed": "{n} andere controle geslaagd.","home.otherChecksPassed": "{n} andere controles geslaagd.",diff --git a/app/frontend/src/lib/core/i18n/messages/nl/migrate.json b/app/frontend/src/lib/core/i18n/messages/nl/migrate.jsonindex 8791fb1..822d02b 100644--- a/app/frontend/src/lib/core/i18n/messages/nl/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/nl/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "HolyArrs handelt deze op zijn eigen manier af. Er is niets te doen.","migrate.allApps": "Alle apps","migrate.ifAnOldApp": "Ziet een oude app een map onder een ander pad, voer dan beide in.",+ "migrate.notInContainer": "HolyArrs ziet {path} niet. Gebruik het pad in de container: de rechterkant van het Docker-volume.",+ "migrate.foldersItSees": "Zichtbaar: {list}",+ "migrate.sameNewFolder": "Zelfde map als {list}. Hun titels komen samen; geef 4K of andere kopieën een eigen map.","migrate.doneOfTotal": "{done} van {total}"}diff --git a/app/frontend/src/lib/core/i18n/messages/nl/server-lines.json b/app/frontend/src/lib/core/i18n/messages/nl/server-lines.jsonindex 336a5db..ff032e5 100644--- a/app/frontend/src/lib/core/i18n/messages/nl/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/nl/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "de bron heeft geen tijdstempel van de aanvraag, dus de import kan het niet behouden","server.migrate.the-source-timestamp-format-is-invalid": "het tijdstempelformaat in de bron is ongeldig, dus de import kan het niet behouden","server.migrate.the-source-timestamp-is-after-this": "het tijdstempel in de bron ligt na deze bewaarde uitlezing, dus de import kan het niet behouden",- "server.migrate.the-titles-that-were-in-it": "de titels die erin zaten blijven in Geschiedenis als verwijderd, dus de map blijft",+ "server.migrate.the-titles-that-were-in-it": "titels in de Bibliotheek gebruiken hem nog, dus de map blijft",+ "server.migrate.deleted-files-still-wait-in-its": "verwijderde bestanden wachten nog in de map voor vastgehouden bestanden, dus de map blijft",+ "server.migrate.an-outside-list-still-uses-it": "een externe lijst gebruikt hem nog, dus de map blijft","server.migrate.the-wait-on-is-back-as": "de wachttijd van {name} is terug zoals hij was","server.migrate.these-are-already-the-default-languages": "dit zijn al de standaardtalen","server.migrate.these-are-already-the-default-weekly": "dit zijn al de standaardweeklimieten",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "Usenet-servers blijven ingesteld in SABnzbd","server.migrate.uses-the-folder-where-it-is": "gebruikt de map {dir} waar hij is","server.migrate.uses-the-folder-where-it-is-2": "gebruikt de map {dir} waar hij is; er wordt geen bestand verplaatst of hernoemd",+ "server.migrate.will-be-added-with-no-files": "wordt voorlopig zonder bestanden toegevoegd; er is geen map op {dir}",+ "server.migrate.added-with-no-files-yet-there": "voorlopig zonder bestanden toegevoegd; er is geen map op {dir}","server.migrate.uses-the-folder-where-it-is-3": "gebruikt de map {folder} waar hij is","server.migrate.wait-before-grabbing-every-title": "wachten voor het ophalen (elke titel)","server.migrate.wait-before-grabbing": "wachten voor het ophalen {tags}",diff --git a/app/frontend/src/lib/core/i18n/messages/nl/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/nl/settings-appearance.jsonindex c482bfb..40ffba6 100644--- a/app/frontend/src/lib/core/i18n/messages/nl/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/nl/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "Uiterlijk","settings.appearance.theme": "Thema","settings.appearance.savedHere": "Opgeslagen in deze browser",+ "settings.appearance.look": "Weergave",+ "settings.appearance.lookDesc": "Minimaal toont titels met kleine posters, zonder grote foto's, gloed of trailers die vanzelf afspelen. Opgeslagen in deze browser",+ "settings.appearance.lookFull": "Volledig",+ "settings.appearance.lookMinimal": "Minimaal","settings.appearance.background": "Achtergrond","settings.appearance.backgroundDesc": "Achter elke pagina. Opgeslagen in deze browser",+ "settings.appearance.wallOffMinimal": "De postermuur staat uit in de minimale weergave","settings.appearance.ratings": "Beoordelingen","settings.appearance.ratingsDesc": "Maximaal drie, naast het jaar op titelpagina's","settings.appearance.reset": "Terugzetten",diff --git a/app/frontend/src/lib/core/i18n/messages/nl/settings-index.json b/app/frontend/src/lib/core/i18n/messages/nl/settings-index.jsonindex d0703ec..0399bfd 100644--- a/app/frontend/src/lib/core/i18n/messages/nl/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/nl/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "Thema","settings.index.appearance.theme.theme.words": "uiterlijk licht donker automatisch modus kleuren nacht theme dark light",+ "settings.index.appearance.look.look.label": "Weergave",+ "settings.index.appearance.look.look.words": "minimaal eenvoudig simpel rustig geen foto's geen gloed autoplay minimal","settings.index.appearance.language.language.label": "Taal","settings.index.appearance.language.language.words": "taal vertaling nederlands engels woorden language","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "Trailers vanzelf afspelen",diff --git a/app/frontend/src/lib/core/i18n/messages/nl/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/nl/settings-pick-rule-edit.jsonindex a0a3438..ed1dd13 100644--- a/app/frontend/src/lib/core/i18n/messages/nl/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/nl/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "Goed genoeg","settings.pickRuleEdit.goodEnoughAt": "Goed genoeg bij","settings.pickRuleEdit.goodEnoughHint": "HolyArrs stopt met zoeken naar een betere kopie zodra een bestand deze stap bereikt.",+ "settings.pickRuleEdit.goodEnoughPoints": "Punten voor goed genoeg",+ "settings.pickRuleEdit.goodEnoughPointsHint": "Een bestand op de goed-genoeg-stap heeft ook zoveel punten nodig. Laat leeg om alleen op de stap te letten.","settings.pickRuleEdit.yourTraits": "Je kenmerken","settings.pickRuleEdit.traits": "Kenmerken en punten","settings.pickRuleEdit.traitsDesc": "De meeste punten winnen op dezelfde stap",diff --git a/app/frontend/src/lib/core/i18n/messages/pl/accounts.json b/app/frontend/src/lib/core/i18n/messages/pl/accounts.jsonindex 90942d7..ed91cbe 100644--- a/app/frontend/src/lib/core/i18n/messages/pl/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/pl/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "Preferencje","accounts.account.trailers": "Zwiastuny","accounts.account.trailersHint": "Auto uwzględnia Ogranicz ruch i oszczędzanie danych",+ "accounts.account.trailersMinimal": "Wyłączone w stylu minimalnym","accounts.account.playTrailers": "Odtwarzaj zwiastuny","accounts.account.auto": "Auto","accounts.account.always": "Zawsze",diff --git a/app/frontend/src/lib/core/i18n/messages/pl/home.json b/app/frontend/src/lib/core/i18n/messages/pl/home.jsonindex 190a610..a87a65e 100644--- a/app/frontend/src/lib/core/i18n/messages/pl/home.json+++ b/app/frontend/src/lib/core/i18n/messages/pl/home.json@@ -254,6 +254,7 @@"home.finished": "Ukończono {when}","home.nothingIsDownloadingRight": "Nic się teraz nie pobiera.","home.paused2": "Wstrzymane: {n}.",+ "home.notSentByHolyArrs": "W Downloaderze: {n}, których HolyArrs nie wysłał.","home.someChecksCouldNot": "Nie udało się teraz odczytać niektórych kontroli.","home.otherCheckPassed": "{n} inna kontrola przeszła.","home.otherChecksPassed": "Inne kontrole, które przeszły: {n}.",diff --git a/app/frontend/src/lib/core/i18n/messages/pl/migrate.json b/app/frontend/src/lib/core/i18n/messages/pl/migrate.jsonindex b719be3..eb7e5ff 100644--- a/app/frontend/src/lib/core/i18n/messages/pl/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/pl/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "HolyArrs obsługuje je po swojemu. Nic do zrobienia.","migrate.allApps": "Wszystkie aplikacje","migrate.ifAnOldApp": "Jeśli dotychczasowa aplikacja widzi folder pod inną ścieżką, wpisz obie.",+ "migrate.notInContainer": "HolyArrs nie widzi {path}. Użyj ścieżki wewnątrz kontenera: prawej strony woluminu Docker.",+ "migrate.foldersItSees": "Widzi: {list}",+ "migrate.sameNewFolder": "Ten sam folder co {list}. Ich tytuły trafią razem; daj kopiom 4K lub innym osobny folder.","migrate.doneOfTotal": "{done} z {total}"}diff --git a/app/frontend/src/lib/core/i18n/messages/pl/server-lines.json b/app/frontend/src/lib/core/i18n/messages/pl/server-lines.jsonindex 3fc3e97..4011f0e 100644--- a/app/frontend/src/lib/core/i18n/messages/pl/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/pl/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "źródło nie ma znacznika czasu prośby, więc import nie może go zachować","server.migrate.the-source-timestamp-format-is-invalid": "format znacznika czasu w źródle jest nieprawidłowy, więc import nie może go zachować","server.migrate.the-source-timestamp-is-after-this": "znacznik czasu w źródle jest późniejszy niż ten zachowany odczyt, więc import nie może go zachować",- "server.migrate.the-titles-that-were-in-it": "tytuły, które w nim były, zostają w Historii jako usunięte, więc folder zostaje",+ "server.migrate.the-titles-that-were-in-it": "tytuły w Bibliotece nadal go używają, więc folder zostaje",+ "server.migrate.deleted-files-still-wait-in-its": "usunięte pliki nadal czekają w jego folderze przechowywania, więc folder zostaje",+ "server.migrate.an-outside-list-still-uses-it": "lista zewnętrzna nadal go używa, więc folder zostaje","server.migrate.the-wait-on-is-back-as": "czas oczekiwania dla {name} wrócił do poprzedniego stanu","server.migrate.these-are-already-the-default-languages": "to już są języki domyślne","server.migrate.these-are-already-the-default-weekly": "to już są domyślne limity tygodniowe",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "serwery Usenet zostają skonfigurowane w SABnzbd","server.migrate.uses-the-folder-where-it-is": "używa folderu {dir} tam, gdzie jest","server.migrate.uses-the-folder-where-it-is-2": "używa folderu {dir} tam, gdzie jest; żaden plik nie jest przenoszony ani przemianowywany",+ "server.migrate.will-be-added-with-no-files": "zostanie na razie dodany bez plików; w {dir} nie ma folderu",+ "server.migrate.added-with-no-files-yet-there": "dodany na razie bez plików; w {dir} nie ma folderu","server.migrate.uses-the-folder-where-it-is-3": "używa folderu {folder} tam, gdzie jest","server.migrate.wait-before-grabbing-every-title": "czekaj przed pobraniem (każdy tytuł)","server.migrate.wait-before-grabbing": "czekaj przed pobraniem {tags}",diff --git a/app/frontend/src/lib/core/i18n/messages/pl/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/pl/settings-appearance.jsonindex e6d8a18..20bff73 100644--- a/app/frontend/src/lib/core/i18n/messages/pl/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/pl/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "Wygląd","settings.appearance.theme": "Motyw","settings.appearance.savedHere": "Zapisane w tej przeglądarce",+ "settings.appearance.look": "Styl",+ "settings.appearance.lookDesc": "Minimalny pokazuje tytuły z małymi plakatami, bez dużych zdjęć, poświaty i zwiastunów odtwarzanych samoczynnie. Zapisane w tej przeglądarce",+ "settings.appearance.lookFull": "Pełny",+ "settings.appearance.lookMinimal": "Minimalny","settings.appearance.background": "Tło","settings.appearance.backgroundDesc": "Za każdą stroną. Zapisane w tej przeglądarce",+ "settings.appearance.wallOffMinimal": "Ściana plakatów jest wyłączona w stylu minimalnym","settings.appearance.ratings": "Oceny","settings.appearance.ratingsDesc": "Do trzech, obok roku na stronach tytułów","settings.appearance.reset": "Resetuj",diff --git a/app/frontend/src/lib/core/i18n/messages/pl/settings-index.json b/app/frontend/src/lib/core/i18n/messages/pl/settings-index.jsonindex 68dd50c..6dd7dfd 100644--- a/app/frontend/src/lib/core/i18n/messages/pl/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/pl/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "Motyw","settings.index.appearance.theme.theme.words": "wygląd jasny ciemny automatyczny tryb kolory noc",+ "settings.index.appearance.look.look.label": "Styl",+ "settings.index.appearance.look.look.words": "minimalny prosty zwykły spokojny bez zdjęć bez poświaty autoodtwarzanie minimal","settings.index.appearance.language.language.label": "Język","settings.index.appearance.language.language.words": "język tłumaczenie lokalizacja polski słowa","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "Odtwarzaj zwiastuny samoczynnie",diff --git a/app/frontend/src/lib/core/i18n/messages/pl/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/pl/settings-pick-rule-edit.jsonindex 47d73ce..0143e23 100644--- a/app/frontend/src/lib/core/i18n/messages/pl/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/pl/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "Wystarczająco dobra","settings.pickRuleEdit.goodEnoughAt": "Wystarczająco dobra przy","settings.pickRuleEdit.goodEnoughHint": "HolyArrs przestaje szukać lepszej kopii, gdy plik osiągnie ten stopień.",+ "settings.pickRuleEdit.goodEnoughPoints": "Punkty dla wystarczająco dobrej",+ "settings.pickRuleEdit.goodEnoughPointsHint": "Plik na stopniu wystarczająco dobrej musi mieć też tyle punktów. Zostaw puste, aby decydował tylko stopień.","settings.pickRuleEdit.yourTraits": "Twoje cechy","settings.pickRuleEdit.traits": "Cechy i punkty","settings.pickRuleEdit.traitsDesc": "Przy tym samym stopniu wygrywa więcej punktów",diff --git a/app/frontend/src/lib/core/i18n/messages/pt-br/accounts.json b/app/frontend/src/lib/core/i18n/messages/pt-br/accounts.jsonindex 2e335ce..3c67895 100644--- a/app/frontend/src/lib/core/i18n/messages/pt-br/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/pt-br/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "Preferências","accounts.account.trailers": "Trailers","accounts.account.trailersHint": "Automático respeita Reduzir movimento e economia de dados",+ "accounts.account.trailersMinimal": "Desligado no visual mínimo","accounts.account.playTrailers": "Reproduzir trailers","accounts.account.auto": "Auto","accounts.account.always": "Sempre",diff --git a/app/frontend/src/lib/core/i18n/messages/pt-br/home.json b/app/frontend/src/lib/core/i18n/messages/pt-br/home.jsonindex 13f2e68..d05adf8 100644--- a/app/frontend/src/lib/core/i18n/messages/pt-br/home.json+++ b/app/frontend/src/lib/core/i18n/messages/pt-br/home.json@@ -254,6 +254,7 @@"home.finished": "Concluído {when}","home.nothingIsDownloadingRight": "Nada está sendo baixado agora.","home.paused2": "{n} pausados.",+ "home.notSentByHolyArrs": "{n} no gerenciador de downloads que o HolyArrs não enviou.","home.someChecksCouldNot": "Algumas verificações não puderam ser lidas agora.","home.otherCheckPassed": "{n} outra verificação passou.","home.otherChecksPassed": "{n} outras verificações passaram.",diff --git a/app/frontend/src/lib/core/i18n/messages/pt-br/migrate.json b/app/frontend/src/lib/core/i18n/messages/pt-br/migrate.jsonindex f81f31a..d9a8b39 100644--- a/app/frontend/src/lib/core/i18n/messages/pt-br/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/pt-br/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "O HolyArrs trata isto do jeito dele. Nada a fazer.","migrate.allApps": "Todos os apps","migrate.ifAnOldApp": "Se um app antigo vê uma pasta em outro caminho, informe os dois.",+ "migrate.notInContainer": "O HolyArrs não vê {path}. Use o caminho dentro do contêiner: o lado direito do volume do Docker.",+ "migrate.foldersItSees": "Ele vê: {list}",+ "migrate.sameNewFolder": "Mesma pasta que {list}. Os títulos vão ficar juntos; dê às cópias 4K ou outras uma pasta própria.","migrate.doneOfTotal": "{done} de {total}"}diff --git a/app/frontend/src/lib/core/i18n/messages/pt-br/server-lines.json b/app/frontend/src/lib/core/i18n/messages/pt-br/server-lines.jsonindex b7f66fb..d574684 100644--- a/app/frontend/src/lib/core/i18n/messages/pt-br/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/pt-br/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "a origem não tem data do pedido, então a importação não consegue preservá-la","server.migrate.the-source-timestamp-format-is-invalid": "o formato da data na origem é inválido, então a importação não consegue preservá-la","server.migrate.the-source-timestamp-is-after-this": "a data na origem é posterior a esta leitura salva, então a importação não consegue preservá-la",- "server.migrate.the-titles-that-were-in-it": "os títulos que estavam nela continuam no Histórico como removidos, então a pasta fica",+ "server.migrate.the-titles-that-were-in-it": "títulos da Biblioteca ainda a usam, então a pasta fica",+ "server.migrate.deleted-files-still-wait-in-its": "arquivos excluídos ainda aguardam na pasta de retenção dela, então a pasta fica",+ "server.migrate.an-outside-list-still-uses-it": "uma lista externa ainda a usa, então a pasta fica","server.migrate.the-wait-on-is-back-as": "a espera de {name} voltou como estava","server.migrate.these-are-already-the-default-languages": "estes já são os idiomas padrão","server.migrate.these-are-already-the-default-weekly": "estes já são os limites semanais padrão",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "os servidores Usenet continuam configurados no SABnzbd","server.migrate.uses-the-folder-where-it-is": "usa a pasta {dir} onde ela está","server.migrate.uses-the-folder-where-it-is-2": "usa a pasta {dir} onde ela está; nenhum arquivo é movido nem renomeado",+ "server.migrate.will-be-added-with-no-files": "será adicionado sem arquivos por enquanto; não há pasta em {dir}",+ "server.migrate.added-with-no-files-yet-there": "adicionado sem arquivos por enquanto; não há pasta em {dir}","server.migrate.uses-the-folder-where-it-is-3": "usa a pasta {folder} onde ela está","server.migrate.wait-before-grabbing-every-title": "espera antes de baixar (todos os títulos)","server.migrate.wait-before-grabbing": "espera antes de baixar {tags}",diff --git a/app/frontend/src/lib/core/i18n/messages/pt-br/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/pt-br/settings-appearance.jsonindex c6ea4da..15cee30 100644--- a/app/frontend/src/lib/core/i18n/messages/pt-br/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/pt-br/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "Aparência","settings.appearance.theme": "Tema","settings.appearance.savedHere": "Salvo neste navegador",+ "settings.appearance.look": "Visual",+ "settings.appearance.lookDesc": "Mínimo mostra os títulos com pôsteres pequenos, sem fotos grandes, brilhos ou trailers que tocam sozinhos. Salvo neste navegador",+ "settings.appearance.lookFull": "Completo",+ "settings.appearance.lookMinimal": "Mínimo","settings.appearance.background": "Fundo","settings.appearance.backgroundDesc": "Atrás de todas as páginas. Salvo neste navegador",+ "settings.appearance.wallOffMinimal": "O mural de pôsteres fica desligado no visual mínimo","settings.appearance.ratings": "Notas","settings.appearance.ratingsDesc": "Até três, ao lado do ano nas páginas de títulos","settings.appearance.reset": "Redefinir",diff --git a/app/frontend/src/lib/core/i18n/messages/pt-br/settings-index.json b/app/frontend/src/lib/core/i18n/messages/pt-br/settings-index.jsonindex c7f2afa..71e15fe 100644--- a/app/frontend/src/lib/core/i18n/messages/pt-br/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/pt-br/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "Tema","settings.index.appearance.theme.theme.words": "aparência claro escuro automático modo cores noite",+ "settings.index.appearance.look.look.label": "Visual",+ "settings.index.appearance.look.look.words": "mínimo simples limpo calmo sem fotos sem brilho reprodução automática minimal","settings.index.appearance.language.language.label": "Idioma","settings.index.appearance.language.language.words": "idioma tradução localização português palavras","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "Reproduzir trailers sozinhos",diff --git a/app/frontend/src/lib/core/i18n/messages/pt-br/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/pt-br/settings-pick-rule-edit.jsonindex 9bfab30..ef913e1 100644--- a/app/frontend/src/lib/core/i18n/messages/pt-br/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/pt-br/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "Bom o bastante","settings.pickRuleEdit.goodEnoughAt": "Bom o bastante em","settings.pickRuleEdit.goodEnoughHint": "O HolyArrs para de buscar uma cópia melhor quando um arquivo chega a esta etapa.",+ "settings.pickRuleEdit.goodEnoughPoints": "Pontos para bom o bastante",+ "settings.pickRuleEdit.goodEnoughPointsHint": "Um arquivo na etapa bom o bastante também precisa desses pontos. Deixe vazio para valer só a etapa.","settings.pickRuleEdit.yourTraits": "Suas características","settings.pickRuleEdit.traits": "Características e pontos","settings.pickRuleEdit.traitsDesc": "Quem tem mais pontos vence na mesma etapa",diff --git a/app/frontend/src/lib/core/i18n/messages/ru/accounts.json b/app/frontend/src/lib/core/i18n/messages/ru/accounts.jsonindex 55f5649..783701b 100644--- a/app/frontend/src/lib/core/i18n/messages/ru/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/ru/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "Предпочтения","accounts.account.trailers": "Трейлеры","accounts.account.trailersHint": "Режим «Авто» учитывает сокращение анимации и экономию трафика",+ "accounts.account.trailersMinimal": "Выключено в минимальном виде","accounts.account.playTrailers": "Воспроизводить трейлеры","accounts.account.auto": "Авто","accounts.account.always": "Всегда",diff --git a/app/frontend/src/lib/core/i18n/messages/ru/home.json b/app/frontend/src/lib/core/i18n/messages/ru/home.jsonindex 5055bc2..575e156 100644--- a/app/frontend/src/lib/core/i18n/messages/ru/home.json+++ b/app/frontend/src/lib/core/i18n/messages/ru/home.json@@ -254,6 +254,7 @@"home.finished": "Завершено {when}","home.nothingIsDownloadingRight": "Сейчас ничего не загружается.","home.paused2": "На паузе: {n}.",+ "home.notSentByHolyArrs": "В загрузчике: {n}, которые HolyArrs не отправлял.","home.someChecksCouldNot": "Некоторые проверки сейчас не удалось прочитать.","home.otherCheckPassed": "Остальных проверок пройдено: {n}.","home.otherChecksPassed": "Остальных проверок пройдено: {n}.",diff --git a/app/frontend/src/lib/core/i18n/messages/ru/migrate.json b/app/frontend/src/lib/core/i18n/messages/ru/migrate.jsonindex e7d0f66..e922571 100644--- a/app/frontend/src/lib/core/i18n/messages/ru/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/ru/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "HolyArrs обрабатывает это по-своему. Делать ничего не нужно.","migrate.allApps": "Все приложения","migrate.ifAnOldApp": "Если старое приложение видит папку по другому пути, укажите оба.",+ "migrate.notInContainer": "HolyArrs не видит {path}. Укажите путь внутри контейнера: правую часть тома Docker.",+ "migrate.foldersItSees": "Видны папки: {list}",+ "migrate.sameNewFolder": "Та же папка, что и у {list}. Их фильмы и сериалы окажутся вместе; дайте 4K и другим копиям отдельную папку.","migrate.doneOfTotal": "{done} из {total}"}diff --git a/app/frontend/src/lib/core/i18n/messages/ru/server-lines.json b/app/frontend/src/lib/core/i18n/messages/ru/server-lines.jsonindex 102ab60..c10e142 100644--- a/app/frontend/src/lib/core/i18n/messages/ru/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/ru/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "в исходном приложении нет времени запроса, поэтому импорт не может его сохранить","server.migrate.the-source-timestamp-format-is-invalid": "формат времени в исходном приложении недопустим, поэтому импорт не может его сохранить","server.migrate.the-source-timestamp-is-after-this": "время в исходном приложении позже этого сохранённого чтения, поэтому импорт не может его сохранить",- "server.migrate.the-titles-that-were-in-it": "тайтлы, которые в ней были, остаются в «Истории» как удалённые, поэтому папка остаётся",+ "server.migrate.the-titles-that-were-in-it": "тайтлы из Медиатеки всё ещё используют её, поэтому папка остаётся",+ "server.migrate.deleted-files-still-wait-in-its": "удалённые файлы всё ещё ждут в её папке отложенных, поэтому папка остаётся",+ "server.migrate.an-outside-list-still-uses-it": "внешний список всё ещё использует её, поэтому папка остаётся","server.migrate.the-wait-on-is-back-as": "ожидание для {name} возвращено как было","server.migrate.these-are-already-the-default-languages": "это уже языки по умолчанию","server.migrate.these-are-already-the-default-weekly": "это уже недельные лимиты по умолчанию",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "серверы Usenet остаются настроенными в SABnzbd","server.migrate.uses-the-folder-where-it-is": "использует папку {dir} там, где она лежит","server.migrate.uses-the-folder-where-it-is-2": "использует папку {dir} там, где она лежит; ни один файл не перемещается и не переименовывается",+ "server.migrate.will-be-added-with-no-files": "будет добавлен пока без файлов; папки {dir} нет",+ "server.migrate.added-with-no-files-yet-there": "добавлен пока без файлов; папки {dir} нет","server.migrate.uses-the-folder-where-it-is-3": "использует папку {folder} там, где она лежит","server.migrate.wait-before-grabbing-every-title": "ожидание перед загрузкой (для каждого тайтла)","server.migrate.wait-before-grabbing": "ожидание перед загрузкой {tags}",diff --git a/app/frontend/src/lib/core/i18n/messages/ru/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/ru/settings-appearance.jsonindex 04f14cf..851525f 100644--- a/app/frontend/src/lib/core/i18n/messages/ru/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/ru/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "Оформление","settings.appearance.theme": "Тема","settings.appearance.savedHere": "Сохраняется в этом браузере",+ "settings.appearance.look": "Вид",+ "settings.appearance.lookDesc": "Минимальный показывает тайтлы с маленькими постерами, без больших фото, свечения и трейлеров, которые запускаются сами. Сохраняется в этом браузере",+ "settings.appearance.lookFull": "Полный",+ "settings.appearance.lookMinimal": "Минимальный","settings.appearance.background": "Фон","settings.appearance.backgroundDesc": "За каждой страницей. Сохраняется в этом браузере",+ "settings.appearance.wallOffMinimal": "Стена постеров выключена в минимальном виде","settings.appearance.ratings": "Рейтинги","settings.appearance.ratingsDesc": "До трёх, рядом с годом на страницах тайтлов","settings.appearance.reset": "Сбросить",diff --git a/app/frontend/src/lib/core/i18n/messages/ru/settings-index.json b/app/frontend/src/lib/core/i18n/messages/ru/settings-index.jsonindex 4b15e22..9a8a91d 100644--- a/app/frontend/src/lib/core/i18n/messages/ru/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/ru/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "Тема","settings.index.appearance.theme.theme.words": "оформление светлая тёмная автоматически режим цвета ночь тема",+ "settings.index.appearance.look.look.label": "Вид",+ "settings.index.appearance.look.look.words": "минимальный простой спокойный без фото без свечения автозапуск minimal","settings.index.appearance.language.language.label": "Язык","settings.index.appearance.language.language.words": "язык перевод локаль английский русский слова","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "Запускать трейлеры сами",diff --git a/app/frontend/src/lib/core/i18n/messages/ru/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/ru/settings-pick-rule-edit.jsonindex 1a96e66..6f40dd6 100644--- a/app/frontend/src/lib/core/i18n/messages/ru/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/ru/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "Достаточно","settings.pickRuleEdit.goodEnoughAt": "Достаточно на ступени","settings.pickRuleEdit.goodEnoughHint": "HolyArrs перестаёт искать копию получше, как только файл достигает этой ступени.",+ "settings.pickRuleEdit.goodEnoughPoints": "Баллы для «достаточно»",+ "settings.pickRuleEdit.goodEnoughPointsHint": "Файлу на ступени «достаточно» нужно ещё и столько баллов. Оставьте пустым, чтобы решала только ступень.","settings.pickRuleEdit.yourTraits": "Ваши признаки","settings.pickRuleEdit.traits": "Признаки и баллы","settings.pickRuleEdit.traitsDesc": "На одной ступени побеждает тот, у кого больше баллов",diff --git a/app/frontend/src/lib/core/i18n/messages/tr/accounts.json b/app/frontend/src/lib/core/i18n/messages/tr/accounts.jsonindex 88bb850..ad80083 100644--- a/app/frontend/src/lib/core/i18n/messages/tr/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/tr/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "Tercihler","accounts.account.trailers": "Fragmanlar","accounts.account.trailersHint": "Otomatik, Hareketi azalt ve veri tasarrufu ayarlarına uyar",+ "accounts.account.trailersMinimal": "Minimal stilde kapalı","accounts.account.playTrailers": "Fragmanları oynat","accounts.account.auto": "Otomatik","accounts.account.always": "Her zaman",diff --git a/app/frontend/src/lib/core/i18n/messages/tr/home.json b/app/frontend/src/lib/core/i18n/messages/tr/home.jsonindex ed9413b..0f37551 100644--- a/app/frontend/src/lib/core/i18n/messages/tr/home.json+++ b/app/frontend/src/lib/core/i18n/messages/tr/home.json@@ -254,6 +254,7 @@"home.finished": "Bitti {when}","home.nothingIsDownloadingRight": "Şu an inen bir şey yok.","home.paused2": "{n} duraklatıldı.",+ "home.notSentByHolyArrs": "İndiricide HolyArrs'ın göndermediği {n} öğe var.","home.someChecksCouldNot": "Bazı denetimler şu an okunamadı.","home.otherCheckPassed": "Diğer {n} denetim geçti.","home.otherChecksPassed": "Diğer {n} denetim geçti.",diff --git a/app/frontend/src/lib/core/i18n/messages/tr/migrate.json b/app/frontend/src/lib/core/i18n/messages/tr/migrate.jsonindex 27b6a19..913f5ad 100644--- a/app/frontend/src/lib/core/i18n/messages/tr/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/tr/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "HolyArrs bunları kendi yöntemiyle halleder. Yapılacak bir şey yok.","migrate.allApps": "Tüm uygulamalar","migrate.ifAnOldApp": "Eski bir uygulama bir klasörü farklı bir yolda görüyorsa ikisini de yaz.",+ "migrate.notInContainer": "HolyArrs {path} yolunu göremiyor. Konteynerin içindeki yolu kullan: Docker biriminin sağ tarafı.",+ "migrate.foldersItSees": "Görebildikleri: {list}",+ "migrate.sameNewFolder": "{list} ile aynı klasör. Başlıkları bir arada kalır; 4K veya diğer kopyalara kendi klasörünü ver.","migrate.doneOfTotal": "{done}/{total}"}diff --git a/app/frontend/src/lib/core/i18n/messages/tr/server-lines.json b/app/frontend/src/lib/core/i18n/messages/tr/server-lines.jsonindex 220a224..186dc74 100644--- a/app/frontend/src/lib/core/i18n/messages/tr/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/tr/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "kaynakta istek zaman damgası yok, bu yüzden içe aktarma onu koruyamaz","server.migrate.the-source-timestamp-format-is-invalid": "kaynaktaki zaman damgası biçimi geçersiz, bu yüzden içe aktarma onu koruyamaz","server.migrate.the-source-timestamp-is-after-this": "kaynaktaki zaman damgası tutulan okumadan sonra, bu yüzden içe aktarma onu koruyamaz",- "server.migrate.the-titles-that-were-in-it": "içindeki başlıklar Geçmişte kaldırılmış olarak duruyor, bu yüzden klasör kalıyor",+ "server.migrate.the-titles-that-were-in-it": "Kütüphanedeki başlıklar onu hâlâ kullanıyor, bu yüzden klasör kalıyor",+ "server.migrate.deleted-files-still-wait-in-its": "silinen dosyalar hâlâ bekletme klasöründe duruyor, bu yüzden klasör kalıyor",+ "server.migrate.an-outside-list-still-uses-it": "bir dış liste onu hâlâ kullanıyor, bu yüzden klasör kalıyor","server.migrate.the-wait-on-is-back-as": "{name} bekleme süresi eski haline döndü","server.migrate.these-are-already-the-default-languages": "bunlar zaten varsayılan diller","server.migrate.these-are-already-the-default-weekly": "bunlar zaten varsayılan haftalık limitler",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "usenet sunucuları SABnzbd'de kurulu kalır","server.migrate.uses-the-folder-where-it-is": "{dir} klasörünü olduğu yerde kullanır","server.migrate.uses-the-folder-where-it-is-2": "{dir} klasörünü olduğu yerde kullanır; hiçbir dosya taşınmaz ya da yeniden adlandırılmaz",+ "server.migrate.will-be-added-with-no-files": "şimdilik dosyasız eklenecek; {dir} konumunda klasör yok",+ "server.migrate.added-with-no-files-yet-there": "şimdilik dosyasız eklendi; {dir} konumunda klasör yok","server.migrate.uses-the-folder-where-it-is-3": "{folder} klasörünü olduğu yerde kullanır","server.migrate.wait-before-grabbing-every-title": "almadan önce bekle (her başlık)","server.migrate.wait-before-grabbing": "almadan önce bekle {tags}",diff --git a/app/frontend/src/lib/core/i18n/messages/tr/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/tr/settings-appearance.jsonindex 96adc8b..54a3f8b 100644--- a/app/frontend/src/lib/core/i18n/messages/tr/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/tr/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "Görünüm","settings.appearance.theme": "Tema","settings.appearance.savedHere": "Bu tarayıcıda kayıtlı",+ "settings.appearance.look": "Stil",+ "settings.appearance.lookDesc": "Minimal, başlıkları küçük afişlerle gösterir; büyük fotoğraflar, parlamalar ve kendiliğinden oynayan fragmanlar olmaz. Bu tarayıcıda kayıtlı",+ "settings.appearance.lookFull": "Tam",+ "settings.appearance.lookMinimal": "Minimal","settings.appearance.background": "Arka plan","settings.appearance.backgroundDesc": "Her sayfanın arkasında. Bu tarayıcıda kayıtlı",+ "settings.appearance.wallOffMinimal": "Minimal stilde afiş duvarı kapalı","settings.appearance.ratings": "Puanlar","settings.appearance.ratingsDesc": "En fazla üç, başlık sayfalarında yılın yanında","settings.appearance.reset": "Sıfırla",diff --git a/app/frontend/src/lib/core/i18n/messages/tr/settings-index.json b/app/frontend/src/lib/core/i18n/messages/tr/settings-index.jsonindex 90350e6..9ebd96e 100644--- a/app/frontend/src/lib/core/i18n/messages/tr/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/tr/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "Tema","settings.index.appearance.theme.theme.words": "görünüm açık koyu otomatik mod renkler gece tema",+ "settings.index.appearance.look.look.label": "Stil",+ "settings.index.appearance.look.look.words": "minimal sade basit sakin fotoğraf yok parlama yok otomatik oynatma","settings.index.appearance.language.language.label": "Dil","settings.index.appearance.language.language.words": "dil çeviri yerel ayar türkçe ingilizce kelimeler","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "Fragmanları kendiliğinden oynat",diff --git a/app/frontend/src/lib/core/i18n/messages/tr/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/tr/settings-pick-rule-edit.jsonindex fe6f96a..be3e414 100644--- a/app/frontend/src/lib/core/i18n/messages/tr/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/tr/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "Yeterince iyi","settings.pickRuleEdit.goodEnoughAt": "Yeterince iyi seviyesi","settings.pickRuleEdit.goodEnoughHint": "Bir dosya bu adıma ulaşınca HolyArrs daha iyi kopya aramayı bırakır.",+ "settings.pickRuleEdit.goodEnoughPoints": "Yeterince iyi puanı",+ "settings.pickRuleEdit.goodEnoughPointsHint": "Yeterince iyi adımındaki bir dosyanın bu kadar puanı da olmalı. Yalnızca adıma bakılması için boş bırakın.","settings.pickRuleEdit.yourTraits": "Özelliklerin","settings.pickRuleEdit.traits": "Özellikler ve puanlar","settings.pickRuleEdit.traitsDesc": "Aynı adımda en çok puan kazanır",diff --git a/app/frontend/src/lib/core/i18n/messages/uk/accounts.json b/app/frontend/src/lib/core/i18n/messages/uk/accounts.jsonindex 5fbedd7..2d251a9 100644--- a/app/frontend/src/lib/core/i18n/messages/uk/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/uk/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "Уподобання","accounts.account.trailers": "Трейлери","accounts.account.trailersHint": "Автоматично враховує «Зменшити рух» і економію трафіку",+ "accounts.account.trailersMinimal": "Вимкнено в мінімальному стилі","accounts.account.playTrailers": "Відтворювати трейлери","accounts.account.auto": "Авто","accounts.account.always": "Завжди",diff --git a/app/frontend/src/lib/core/i18n/messages/uk/home.json b/app/frontend/src/lib/core/i18n/messages/uk/home.jsonindex 0354044..1cc5b43 100644--- a/app/frontend/src/lib/core/i18n/messages/uk/home.json+++ b/app/frontend/src/lib/core/i18n/messages/uk/home.json@@ -254,6 +254,7 @@"home.finished": "Завершено {when}","home.nothingIsDownloadingRight": "Зараз нічого не завантажується.","home.paused2": "{n} на паузі.",+ "home.notSentByHolyArrs": "У завантажувачі: {n}, які HolyArrs не надсилав.","home.someChecksCouldNot": "Деякі перевірки зараз не вдалося прочитати.","home.otherCheckPassed": "{n} інша перевірка пройдена.","home.otherChecksPassed": "Інших перевірок пройдено: {n}.",diff --git a/app/frontend/src/lib/core/i18n/messages/uk/migrate.json b/app/frontend/src/lib/core/i18n/messages/uk/migrate.jsonindex 084ae6f..fc0e728 100644--- a/app/frontend/src/lib/core/i18n/messages/uk/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/uk/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "HolyArrs обробляє це по-своєму. Робити нічого не треба.","migrate.allApps": "Усі застосунки","migrate.ifAnOldApp": "Якщо старий застосунок бачить теку за іншим шляхом, введи обидва.",+ "migrate.notInContainer": "HolyArrs не бачить {path}. Вкажи шлях усередині контейнера: праву частину тому Docker.",+ "migrate.foldersItSees": "Видно теки: {list}",+ "migrate.sameNewFolder": "Та сама тека, що й у {list}. Їхні назви опиняться разом; дай 4K чи іншим копіям окрему теку.","migrate.doneOfTotal": "{done} із {total}"}diff --git a/app/frontend/src/lib/core/i18n/messages/uk/server-lines.json b/app/frontend/src/lib/core/i18n/messages/uk/server-lines.jsonindex 8853cc2..88871c5 100644--- a/app/frontend/src/lib/core/i18n/messages/uk/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/uk/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "у джерелі немає часової мітки запиту, тому імпорт не може її зберегти","server.migrate.the-source-timestamp-format-is-invalid": "формат часової мітки в джерелі недійсний, тому імпорт не може її зберегти","server.migrate.the-source-timestamp-is-after-this": "часова мітка в джерелі пізніша за це збережене зчитування, тому імпорт не може її зберегти",- "server.migrate.the-titles-that-were-in-it": "тайтли, що були в ній, лишаються в Історії як видалені, тому тека лишається",+ "server.migrate.the-titles-that-were-in-it": "тайтли з Медіатеки досі її використовують, тому тека лишається",+ "server.migrate.deleted-files-still-wait-in-its": "видалені файли досі чекають у її теці очікування, тому тека лишається",+ "server.migrate.an-outside-list-still-uses-it": "зовнішній список досі її використовує, тому тека лишається","server.migrate.the-wait-on-is-back-as": "очікування для {name} повернуто як було","server.migrate.these-are-already-the-default-languages": "це вже типові мови","server.migrate.these-are-already-the-default-weekly": "це вже типові тижневі ліміти",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "сервери Usenet лишаються налаштованими в SABnzbd","server.migrate.uses-the-folder-where-it-is": "використовує теку {dir} там, де вона є","server.migrate.uses-the-folder-where-it-is-2": "використовує теку {dir} там, де вона є; жоден файл не переміщується й не перейменовується",+ "server.migrate.will-be-added-with-no-files": "буде додано поки без файлів; теки {dir} немає",+ "server.migrate.added-with-no-files-yet-there": "додано поки без файлів; теки {dir} немає","server.migrate.uses-the-folder-where-it-is-3": "використовує теку {folder} там, де вона є","server.migrate.wait-before-grabbing-every-title": "очікування перед захопленням (кожен тайтл)","server.migrate.wait-before-grabbing": "очікування перед захопленням {tags}",diff --git a/app/frontend/src/lib/core/i18n/messages/uk/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/uk/settings-appearance.jsonindex 711abf9..53f61dd 100644--- a/app/frontend/src/lib/core/i18n/messages/uk/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/uk/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "Вигляд","settings.appearance.theme": "Тема","settings.appearance.savedHere": "Зберігається в цьому браузері",+ "settings.appearance.look": "Стиль",+ "settings.appearance.lookDesc": "Мінімальний показує тайтли з маленькими постерами, без великих фото, світіння й трейлерів, що вмикаються самі. Зберігається в цьому браузері",+ "settings.appearance.lookFull": "Повний",+ "settings.appearance.lookMinimal": "Мінімальний","settings.appearance.background": "Тло","settings.appearance.backgroundDesc": "За кожною сторінкою. Зберігається в цьому браузері",+ "settings.appearance.wallOffMinimal": "Стіна постерів вимкнена в мінімальному стилі","settings.appearance.ratings": "Оцінки","settings.appearance.ratingsDesc": "До трьох, поруч із роком на сторінках тайтлів","settings.appearance.reset": "Скинути",diff --git a/app/frontend/src/lib/core/i18n/messages/uk/settings-index.json b/app/frontend/src/lib/core/i18n/messages/uk/settings-index.jsonindex 4735259..a5ab680 100644--- a/app/frontend/src/lib/core/i18n/messages/uk/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/uk/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "Тема","settings.index.appearance.theme.theme.words": "вигляд світла темна автоматично режим кольори ніч",+ "settings.index.appearance.look.look.label": "Стиль",+ "settings.index.appearance.look.look.words": "мінімальний простий спокійний без фото без світіння автовідтворення minimal","settings.index.appearance.language.language.label": "Мова","settings.index.appearance.language.language.words": "мова переклад локаль українська слова","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "Відтворювати трейлери автоматично",diff --git a/app/frontend/src/lib/core/i18n/messages/uk/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/uk/settings-pick-rule-edit.jsonindex 6bafe02..442ce01 100644--- a/app/frontend/src/lib/core/i18n/messages/uk/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/uk/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "Достатньо добре","settings.pickRuleEdit.goodEnoughAt": "Достатньо добре на","settings.pickRuleEdit.goodEnoughHint": "HolyArrs припиняє шукати кращу копію, щойно файл досягає цього кроку.",+ "settings.pickRuleEdit.goodEnoughPoints": "Бали для «достатньо добре»",+ "settings.pickRuleEdit.goodEnoughPointsHint": "Файлу на кроці «достатньо добре» потрібно ще й стільки балів. Залиште порожнім, щоб вирішував лише крок.","settings.pickRuleEdit.yourTraits": "Твої ознаки","settings.pickRuleEdit.traits": "Ознаки й бали","settings.pickRuleEdit.traitsDesc": "На одному кроці перемагає той, у кого більше балів",diff --git a/app/frontend/src/lib/core/i18n/messages/zh-cn/accounts.json b/app/frontend/src/lib/core/i18n/messages/zh-cn/accounts.jsonindex fe9dd30..b7e84bf 100644--- a/app/frontend/src/lib/core/i18n/messages/zh-cn/accounts.json+++ b/app/frontend/src/lib/core/i18n/messages/zh-cn/accounts.json@@ -274,6 +274,7 @@"accounts.account.preferences": "偏好设置","accounts.account.trailers": "预告片","accounts.account.trailersHint": "“自动”会遵循“减弱动态效果”和流量节省设置",+ "accounts.account.trailersMinimal": "极简风格下已关闭","accounts.account.playTrailers": "播放预告片","accounts.account.auto": "自动","accounts.account.always": "始终",diff --git a/app/frontend/src/lib/core/i18n/messages/zh-cn/home.json b/app/frontend/src/lib/core/i18n/messages/zh-cn/home.jsonindex 3cef29d..4fd2722 100644--- a/app/frontend/src/lib/core/i18n/messages/zh-cn/home.json+++ b/app/frontend/src/lib/core/i18n/messages/zh-cn/home.json@@ -254,6 +254,7 @@"home.finished": "完成于 {when}","home.nothingIsDownloadingRight": "目前没有正在下载的内容。","home.paused2": "{n} 个已暂停。",+ "home.notSentByHolyArrs": "下载器中有 {n} 个不是 HolyArrs 发送的。","home.someChecksCouldNot": "有些检查暂时无法读取。","home.otherCheckPassed": "另有 {n} 项检查通过。","home.otherChecksPassed": "另有 {n} 项检查通过。",diff --git a/app/frontend/src/lib/core/i18n/messages/zh-cn/migrate.json b/app/frontend/src/lib/core/i18n/messages/zh-cn/migrate.jsonindex e5fd403..01fc3a5 100644--- a/app/frontend/src/lib/core/i18n/messages/zh-cn/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/zh-cn/migrate.json@@ -293,5 +293,8 @@"migrate.holyarrsHandlesTheseIts": "HolyArrs 用自己的方式处理这些,无需你操作。","migrate.allApps": "所有应用","migrate.ifAnOldApp": "如果旧应用看到的文件夹路径不同,请把两个路径都填上。",+ "migrate.notInContainer": "HolyArrs 看不到 {path}。请使用它在容器内的路径:Docker 卷映射的右侧。",+ "migrate.foldersItSees": "它能看到:{list}",+ "migrate.sameNewFolder": "与 {list} 是同一个文件夹。它们的影片会混在一起;请给 4K 或其他副本单独的文件夹。","migrate.doneOfTotal": "{done} / {total}"}diff --git a/app/frontend/src/lib/core/i18n/messages/zh-cn/server-lines.json b/app/frontend/src/lib/core/i18n/messages/zh-cn/server-lines.jsonindex c180ff2..6a7ff2f 100644--- a/app/frontend/src/lib/core/i18n/messages/zh-cn/server-lines.json+++ b/app/frontend/src/lib/core/i18n/messages/zh-cn/server-lines.json@@ -1016,7 +1016,9 @@"server.migrate.the-source-has-no-request-timestamp": "来源没有请求时间戳,所以导入无法保留它","server.migrate.the-source-timestamp-format-is-invalid": "来源的时间戳格式无效,所以导入无法保留它","server.migrate.the-source-timestamp-is-after-this": "来源的时间戳晚于这份保存的读取结果,所以导入无法保留它",- "server.migrate.the-titles-that-were-in-it": "其中的条目在历史中保留为已移除,所以文件夹会保留",+ "server.migrate.the-titles-that-were-in-it": "媒体库中的条目仍在使用它,所以文件夹会保留",+ "server.migrate.deleted-files-still-wait-in-its": "已删除的文件仍在它的暂存文件夹中等待,所以文件夹会保留",+ "server.migrate.an-outside-list-still-uses-it": "外部列表仍在使用它,所以文件夹会保留","server.migrate.the-wait-on-is-back-as": "{name} 的等待时间已恢复原样","server.migrate.these-are-already-the-default-languages": "这些已经是默认语言","server.migrate.these-are-already-the-default-weekly": "这些已经是默认每周限额",@@ -1052,6 +1054,8 @@"server.migrate.usenet-servers-stay-set-up-in": "Usenet 服务器仍在 SABnzbd 中设置","server.migrate.uses-the-folder-where-it-is": "直接使用文件夹 {dir},不改动位置","server.migrate.uses-the-folder-where-it-is-2": "直接使用文件夹 {dir},不改动位置;不会移动或重命名任何文件",+ "server.migrate.will-be-added-with-no-files": "将先在没有文件的情况下添加;{dir} 处没有文件夹",+ "server.migrate.added-with-no-files-yet-there": "已先在没有文件的情况下添加;{dir} 处没有文件夹","server.migrate.uses-the-folder-where-it-is-3": "直接使用文件夹 {folder},不改动位置","server.migrate.wait-before-grabbing-every-title": "抓取前等待(所有条目)","server.migrate.wait-before-grabbing": "抓取前等待 {tags}",diff --git a/app/frontend/src/lib/core/i18n/messages/zh-cn/settings-appearance.json b/app/frontend/src/lib/core/i18n/messages/zh-cn/settings-appearance.jsonindex 089333e..5ecb824 100644--- a/app/frontend/src/lib/core/i18n/messages/zh-cn/settings-appearance.json+++ b/app/frontend/src/lib/core/i18n/messages/zh-cn/settings-appearance.json@@ -19,8 +19,13 @@"settings.appearance.title": "外观","settings.appearance.theme": "主题","settings.appearance.savedHere": "保存在此浏览器中",+ "settings.appearance.look": "显示风格",+ "settings.appearance.lookDesc": "极简会用小海报显示条目,不显示大图、光晕或自动播放的预告片。保存在此浏览器中",+ "settings.appearance.lookFull": "完整",+ "settings.appearance.lookMinimal": "极简","settings.appearance.background": "背景","settings.appearance.backgroundDesc": "显示在每个页面后面,保存在此浏览器中",+ "settings.appearance.wallOffMinimal": "极简风格下海报墙已关闭","settings.appearance.ratings": "评分","settings.appearance.ratingsDesc": "最多三个,显示在条目页的年份旁边","settings.appearance.reset": "重置",diff --git a/app/frontend/src/lib/core/i18n/messages/zh-cn/settings-index.json b/app/frontend/src/lib/core/i18n/messages/zh-cn/settings-index.jsonindex 8feaccc..5c24d75 100644--- a/app/frontend/src/lib/core/i18n/messages/zh-cn/settings-index.json+++ b/app/frontend/src/lib/core/i18n/messages/zh-cn/settings-index.json@@ -1,6 +1,8 @@{"settings.index.appearance.theme.theme.label": "主题","settings.index.appearance.theme.theme.words": "外观 浅色 深色 自动 模式 颜色 夜间 appearance light dark automatic mode colours colors night",+ "settings.index.appearance.look.look.label": "显示风格",+ "settings.index.appearance.look.look.words": "极简 简洁 简单 安静 无照片 无光晕 自动播放 minimal plain","settings.index.appearance.language.language.label": "语言","settings.index.appearance.language.language.words": "语言 翻译 中文 英语 language translation locale english words","settings.index.appearance.autoplay-trailers.play-trailers-by-themselves.label": "自动播放预告片",diff --git a/app/frontend/src/lib/core/i18n/messages/zh-cn/settings-pick-rule-edit.json b/app/frontend/src/lib/core/i18n/messages/zh-cn/settings-pick-rule-edit.jsonindex 795d6d5..e3a00b9 100644--- a/app/frontend/src/lib/core/i18n/messages/zh-cn/settings-pick-rule-edit.json+++ b/app/frontend/src/lib/core/i18n/messages/zh-cn/settings-pick-rule-edit.json@@ -24,6 +24,8 @@"settings.pickRuleEdit.goodEnough": "达标","settings.pickRuleEdit.goodEnoughAt": "达标档位","settings.pickRuleEdit.goodEnoughHint": "文件达到这个档位后,HolyArrs 就不再找更好的副本。",+ "settings.pickRuleEdit.goodEnoughPoints": "达标分数",+ "settings.pickRuleEdit.goodEnoughPointsHint": "到达达标档位的文件还需要这么多分数。留空则只看档位。","settings.pickRuleEdit.yourTraits": "你的特征","settings.pickRuleEdit.traits": "特征和分数","settings.pickRuleEdit.traitsDesc": "同一档位中,得分最高的胜出",diff --git a/app/frontend/src/lib/core/look.svelte.ts b/app/frontend/src/lib/core/look.svelte.tsnew file mode 100644index 0000000..c81a590--- /dev/null+++ b/app/frontend/src/lib/core/look.svelte.ts@@ -0,0 +1,36 @@+// The app's look: full (big pictures, trailers that play by themselves) or minimal (plain headers, nothing plays by itself).+// Saved in this browser, like the theme. The first paint reads the same key in app.html and sets <html data-look>, so a minimal page never shows the big pictures first.++export type Look = 'full' | 'minimal';++const KEY = 'holyarrs-look';++export const look = $state<{ value: Look }>({ value: typeof document === 'undefined' ? 'full' : current() });++export function setLook(l: Look) {+ look.value = l;+ if (typeof document !== 'undefined' && document.documentElement) {+ if (l === 'minimal') document.documentElement.dataset.look = 'minimal';+ else delete document.documentElement.dataset.look;+ }+ try {+ if (l === 'full') localStorage.removeItem(KEY);+ else localStorage.setItem(KEY, l);+ } catch {+ // Private windows may refuse storage; the choice then lasts this visit.+ }+}++/** True when this browser asked for the minimal look. */+export function minimalLook(): boolean {+ return look.value === 'minimal';+}++function current(): Look {+ if (document.documentElement?.dataset?.look === 'minimal') return 'minimal';+ try {+ return localStorage.getItem(KEY) === 'minimal' ? 'minimal' : 'full';+ } catch {+ return 'full';+ }+}diff --git a/app/frontend/src/lib/core/look.test.ts b/app/frontend/src/lib/core/look.test.tsnew file mode 100644index 0000000..989977a--- /dev/null+++ b/app/frontend/src/lib/core/look.test.ts@@ -0,0 +1,75 @@+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';++// A small stand-in for <html> and localStorage, since the tests run in node.+function fakePage(stored: Record<string, string> = {}, dataset: Record<string, string> = {}) {+ const store = { ...stored };+ vi.stubGlobal('document', { documentElement: { dataset } });+ vi.stubGlobal('localStorage', {+ getItem: (k: string) => store[k] ?? null,+ setItem: (k: string, v: string) => void (store[k] = v),+ removeItem: (k: string) => void delete store[k]+ });+ return { store, dataset };+}++async function load() {+ vi.resetModules();+ return import('./look.svelte.ts');+}++describe('look', () => {+ beforeEach(() => vi.unstubAllGlobals());+ afterEach(() => vi.unstubAllGlobals());++ it('starts full when nothing is saved', async () => {+ fakePage();+ const m = await load();+ expect(m.look.value).toBe('full');+ expect(m.minimalLook()).toBe(false);+ });++ it('starts minimal when this browser saved it', async () => {+ fakePage({ 'holyarrs-look': 'minimal' });+ expect((await load()).minimalLook()).toBe(true);+ });++ it('starts minimal when the first paint already set it on <html>', async () => {+ fakePage({}, { look: 'minimal' });+ expect((await load()).minimalLook()).toBe(true);+ });++ it('minimal sets <html data-look> and saves it; full removes both', async () => {+ const { store, dataset } = fakePage();+ const m = await load();+ m.setLook('minimal');+ expect(dataset.look).toBe('minimal');+ expect(store['holyarrs-look']).toBe('minimal');+ expect(m.minimalLook()).toBe(true);+ m.setLook('full');+ expect(dataset.look).toBeUndefined();+ expect('holyarrs-look' in store).toBe(false);+ expect(m.minimalLook()).toBe(false);+ });++ it('still switches for this visit when storage refuses', async () => {+ const { dataset } = fakePage();+ vi.stubGlobal('localStorage', {+ getItem: () => null,+ setItem: () => {+ throw new Error('denied');+ },+ removeItem: () => {+ throw new Error('denied');+ }+ });+ const m = await load();+ m.setLook('minimal');+ expect(m.minimalLook()).toBe(true);+ expect(dataset.look).toBe('minimal');+ });++ it('is full with no document (server render)', async () => {+ const m = await load();+ expect(m.look.value).toBe('full');+ });+});diff --git a/app/frontend/src/lib/core/tmdb-image.test.ts b/app/frontend/src/lib/core/tmdb-image.test.tsindex 25ea530..a357dfc 100644--- a/app/frontend/src/lib/core/tmdb-image.test.ts+++ b/app/frontend/src/lib/core/tmdb-image.test.ts@@ -1,6 +1,7 @@-import { afterEach, describe, expect, it } from 'vitest';-import { heroSize, pick, proxied, sharpen, sized } from './tmdb-image.ts';+import { afterEach, describe, expect, it, vi } from 'vitest';+import { heroSize, pick, preloadHero, proxied, sharpen, sized } from './tmdb-image.ts';import { setBase } from './paths.ts';+import { setLook } from './look.svelte.ts';describe('sized', () => {afterEach(() => setBase(''));@@ -67,3 +68,27 @@ describe('proxied', () => {expect(proxied(null)).toBe('');});});++describe('preloadHero', () => {+ afterEach(() => {+ setLook('full');+ vi.unstubAllGlobals();+ });+ function stub() {+ const made: string[] = [];+ vi.stubGlobal('window', { innerWidth: 1000 });+ vi.stubGlobal('Image', class { decoding = ''; fetchPriority = ''; set src(u: string) { made.push(u); } });+ return made;+ }+ it('fetches the backdrop in the full look', () => {+ const made = stub();+ preloadHero('https://image.tmdb.org/t/p/original/full.jpg');+ expect(made).toEqual(['/api/v1/artwork/tmdb/w1280/full.jpg']);+ });+ it('fetches nothing in the minimal look', () => {+ const made = stub();+ setLook('minimal');+ preloadHero('https://image.tmdb.org/t/p/original/minimal.jpg');+ expect(made).toEqual([]);+ });+});diff --git a/app/frontend/src/lib/core/tmdb-image.ts b/app/frontend/src/lib/core/tmdb-image.tsindex 7005a9a..cd7d855 100644--- a/app/frontend/src/lib/core/tmdb-image.ts+++ b/app/frontend/src/lib/core/tmdb-image.ts@@ -1,5 +1,6 @@// Rewrites TMDB picture addresses to the cached, right-sized copy served by the app.import { to } from './paths.ts';+import { minimalLook } from './look.svelte.ts';// Strict form: https only, used when we pick the size ourselves.const tmdb = /^https:\/\/image\.tmdb\.org\/t\/p\/(?:w\d+|original)\/([A-Za-z0-9_-]+\.(?:jpg|png|webp))$/;@@ -58,7 +59,7 @@ export function fitTile(url: string, css: number, person: boolean, ratio = globa// Starts the hero fetch early at high priority so it is cached when the page paints.export function preloadHero(backdrop: string | null | undefined): void {- if (!backdrop || typeof window === 'undefined') return;+ if (!backdrop || typeof window === 'undefined' || minimalLook()) return;const url = sharpen(sized(backdrop, 'backdrop'), window.innerWidth);if (!url || warmed.has(url)) return;warmed.add(url);diff --git a/app/frontend/src/lib/core/trailer/autoplay.svelte.ts b/app/frontend/src/lib/core/trailer/autoplay.svelte.tsindex 8ead7ae..465e2a7 100644--- a/app/frontend/src/lib/core/trailer/autoplay.svelte.ts+++ b/app/frontend/src/lib/core/trailer/autoplay.svelte.ts@@ -1,6 +1,7 @@// Autoplay setting, trailer lookups and warmed players, with the ordered sources a player tries.import { api, ApiError } from '../api.ts';import { session } from '../session.svelte.ts';+import { minimalLook } from '../look.svelte.ts';import { autoplayPref, browserConditions, finePointer, mayAutoplay, pickTrailer, soundOn, type Video } from './trailer.ts';import { prefetchQueue } from './trailer-prefetch.ts';import type { HeroVideo } from './hero-video.ts';@@ -95,7 +96,7 @@ export function setAutoplaySetting(on: boolean) {}export function autoplayHere(): boolean {- return state.loaded && mayAutoplay({ setting: state.autoplay, kid: session.kid, pref: autoplayPref(), ...browserConditions() });+ return state.loaded && mayAutoplay({ setting: state.autoplay, kid: session.kid, pref: autoplayPref(), minimal: minimalLook(), ...browserConditions() });}// Chrome also says "maybe" to HLS, but its player starts at the lowest quality and stalls on YouTube's mixed streams.diff --git a/app/frontend/src/lib/core/trailer/trailer.test.ts b/app/frontend/src/lib/core/trailer/trailer.test.tsindex 485316f..449f168 100644--- a/app/frontend/src/lib/core/trailer/trailer.test.ts+++ b/app/frontend/src/lib/core/trailer/trailer.test.ts@@ -35,6 +35,11 @@ describe('mayAutoplay', () => {expect(mayAutoplay({ ...base, phone: false })).toBe(true);for (const t of ['slow-2g', '2g', '3g']) expect(mayAutoplay({ ...base, effectiveType: t })).toBe(false);});+ it('never plays in the minimal look, even when the person picked always', () => {+ expect(mayAutoplay({ ...base, minimal: true })).toBe(false);+ expect(mayAutoplay({ ...base, minimal: true, pref: 'always' })).toBe(false);+ expect(mayAutoplay({ ...base, minimal: false, pref: 'always' })).toBe(true);+ });});describe('dwell', () => {diff --git a/app/frontend/src/lib/core/trailer/trailer.ts b/app/frontend/src/lib/core/trailer/trailer.tsindex ca48de6..9b5ae67 100644--- a/app/frontend/src/lib/core/trailer/trailer.ts+++ b/app/frontend/src/lib/core/trailer/trailer.ts@@ -17,6 +17,8 @@ export interface Conditions {saveData?: boolean;effectiveType?: string;phone?: boolean;+ /** The minimal look is on in this browser. */+ minimal?: boolean;}export type AutoplayPref = 'auto' | 'always' | 'never';@@ -93,10 +95,10 @@ export function setAutoplayPref(v: AutoplayPref) {}}-// Autoplay needs every condition to allow it; 'always' skips only the system ones.+// Autoplay needs every condition to allow it; 'always' skips only the system ones, never the minimal look.export function mayAutoplay(c: Conditions): boolean {const pref = c.pref ?? 'auto';- if (!c.setting || c.kid || pref === 'never') return false;+ if (!c.setting || c.kid || c.minimal || pref === 'never') return false;if (pref === 'always') return true;if (c.reducedMotion || c.saveData || c.phone) return false;return !['slow-2g', '2g', '3g'].includes(c.effectiveType ?? '');diff --git a/app/frontend/src/lib/discover/CategoryStrip.svelte b/app/frontend/src/lib/discover/CategoryStrip.svelteindex fd5fdc9..c9749da 100644--- a/app/frontend/src/lib/discover/CategoryStrip.svelte+++ b/app/frontend/src/lib/discover/CategoryStrip.svelte@@ -8,6 +8,7 @@import type { ExploreType } from './explore-type.ts';import { to } from '../core/paths.ts';import { sized } from '../core/tmdb-image.ts';+ import { minimalLook } from '../core/look.svelte.ts';// The category strip under the Explore hero: condensed wordmarks over a dark grey still of the category's art. On hover or focus the still comes up in its own colour.type Genre = { key: string; name: string; href: string; art: string; hue: number };@@ -17,6 +18,8 @@type Entry = { key: string; name: string; label: string; href: string; art: string; arts?: string[]; all?: boolean; tile?: BrowseTile & { section: string }; tint?: string };const tint = (hue: number) => `hsl(${(((hue % 24) + 24) % 24) * 15} 52% 36%)`;let failed = $state<Record<string, boolean>>({});+ // The minimal look draws plain tiles with no stills, so none are fetched.+ const minimal = $derived(minimalLook());const entries = $derived<Entry[]>(genres ? [...genres.map((g) => ({ key: g.key, name: g.name, label: t('discover.categoryStrip.genre'), href: g.href, art: g.art, tint: tint(g.hue) })),{ key: 'all', name: t('discover.categoryStrip.allGenres'), label: t('discover.categoryStrip.browse'), href: to('/search?kind=music'), art: '', all: true }@@ -38,9 +41,9 @@<div class="cat-strip" data-row-id="category_strip"><Shelf title={t('discover.categoryStrip.categories')} item="clamp(184px, 15vw, 236px)" items={entries} key={(e) => e.key} lines={1}>{#snippet card(e: Entry)}- <a class="cat" class:all={e.all} class:tinted={e.tint && (!e.art || failed[e.key])} href={e.href} style="--chars: {Math.max(e.name.length, 6)}" style:--tint={e.tint} onclick={() => e.tile && onopen?.(e.tile)}>- {#if e.art && !failed[e.key]}<img class="art" src={e.art} alt="" loading="lazy" decoding="async" onerror={() => (failed[e.key] = true)} />{/if}- {#if e.arts?.length}<span class="art mosaic">{#each e.arts as a, i (i)}<img src={a} alt="" loading="lazy" decoding="async" />{/each}</span>{/if}+ <a class="cat" class:all={e.all} class:tinted={e.tint && (minimal || !e.art || failed[e.key])} class:minimal href={e.href} style="--chars: {Math.max(e.name.length, 6)}" style:--tint={e.tint} onclick={() => e.tile && onopen?.(e.tile)}>+ {#if !minimal && e.art && !failed[e.key]}<img class="art" src={e.art} alt="" loading="lazy" decoding="async" onerror={() => (failed[e.key] = true)} />{/if}+ {#if !minimal && e.arts?.length}<span class="art mosaic">{#each e.arts as a, i (i)}<img src={a} alt="" loading="lazy" decoding="async" />{/each}</span>{/if}<span class="txt"><small>{e.label}</small><strong>{e.name}{#if e.all}<Icon name="chevronRight" size={18} />{/if}</strong>@@ -87,6 +90,8 @@.cat.tinted { background: linear-gradient(120deg, color-mix(in srgb, var(--tint) 70%, #120a0b), #120a0b 75%); }:global(:root[data-theme='light']) .cat { box-shadow: 0 6px 18px -10px rgba(20, 8, 9, .45); border-color: rgba(0, 0, 0, .12); }@media (prefers-color-scheme: light) { :global(:root:not([data-theme='dark'])) .cat { box-shadow: 0 6px 18px -10px rgba(20, 8, 9, .45); border-color: rgba(0, 0, 0, .12); } }+ /* Minimal: no lift or zoom on hover. */+ .cat.minimal:hover, .cat.minimal:is(:hover, :focus-visible) strong { transform: none; }@media (prefers-reduced-motion: reduce) {.cat, .art, .cat::before, .cat::after, strong { transition: none; }.cat:hover, .cat:active, .cat:is(:hover, :focus-visible) .art, .cat:is(:hover, :focus-visible) strong { transform: none; }diff --git a/app/frontend/src/lib/discover/ExploreHero.svelte b/app/frontend/src/lib/discover/ExploreHero.svelteindex 3245b05..1053a0b 100644--- a/app/frontend/src/lib/discover/ExploreHero.svelte+++ b/app/frontend/src/lib/discover/ExploreHero.svelte@@ -15,6 +15,7 @@title,href,backdrop,+ poster,subtitle,settled = true,vtName,@@ -27,6 +28,8 @@href?: string;/** A backdrop known already, shown at once. */backdrop?: string | null;+ /** The card's poster, shown at once in the minimal look. */+ poster?: string | null;subtitle?: string;/** The page has finished its first load. */settled?: boolean;@@ -50,7 +53,7 @@const line = $derived([rich?.year, ...(rich?.genres ?? []).slice(0, 3)].filter(Boolean).join(' · ') || subtitle || '');</script>-<Billboard label={t('discover.exploreHero.featured', { title })} testid="explore-hero" {kind} {tmdb} {title} videos={rich?.videos} {pictures} {vtName} {settled}>+<Billboard label={t('discover.exploreHero.featured', { title })} testid="explore-hero" {kind} {tmdb} {title} videos={rich?.videos} {pictures} {vtName} {settled} thumb={sized(poster ?? rich?.poster, 'poster', 148) || null}>{#snippet heading()}{#if rich?.logo}<h2 class="bb-logo"><img src={proxied(rich.logo)} alt={title} /></h2>@@ -80,4 +83,7 @@.info:hover { background: rgb(255 255 255 / 26%); }.info:active { transform: scale(.97); }.info:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff; }+ :global(.ui-billboard.minimal) .info { font-size: 15px !important; }+ /* Minimal look on phones: the floating type pills overlap the card's top, so the words start below them. */+ @media (max-width: 767px) { :global(html .ui-billboard.minimal[data-testid='explore-hero']) { padding-top: 48px; } }</style>diff --git a/app/frontend/src/lib/discover/GenreBanner.svelte b/app/frontend/src/lib/discover/GenreBanner.svelteindex 4ed184f..86d5959 100644--- a/app/frontend/src/lib/discover/GenreBanner.svelte+++ b/app/frontend/src/lib/discover/GenreBanner.svelte@@ -4,6 +4,7 @@import Icon from '#lib/ui/Icon.svelte';import type { Snippet } from 'svelte';import { proxied } from '../core/tmdb-image.ts';+ import { minimalLook } from '../core/look.svelte.ts';// Explore's banner for the household's favourite genre: slow art, the genre in large type, a short line and a row of picks not in the Library yet. One click opens the genre page. `layout` 1 lays the picks along the bottom, 2 puts them in a panel on the right.let {@@ -30,14 +31,18 @@/** Posters rendered by the page so they match every other row. */picks: Snippet;} = $props();- const bg = $derived(proxied(art[0]));+ // The minimal look shows no backdrop, so it is never fetched.+ const minimal = $derived(minimalLook());+ const bg = $derived(minimal ? '' : proxied(art[0]));</script>-<section class="gb l{layout}" class:square aria-label={eyebrow} data-testid="genre-banner" data-layout={layout}>- <div class="art" aria-hidden="true">- {#if bg}<img src={bg} alt="" loading="lazy" decoding="async" />{/if}- <span class="veil"></span>- </div>+<section class="gb l{layout}" class:square class:minimal aria-label={eyebrow} data-testid="genre-banner" data-layout={layout}>+ {#if !minimal}+ <div class="art" aria-hidden="true">+ {#if bg}<img src={bg} alt="" loading="lazy" decoding="async" />{/if}+ <span class="veil"></span>+ </div>+ {/if}<div class="words"><ArtPill text={eyebrow} icon="sparkle" /><h2 class="name"><a {href} class="stretch">{name}</a></h2>@@ -81,4 +86,11 @@.name { font-size: clamp(36px, 12cqw, 56px); }}@media (prefers-reduced-motion: reduce) { .art img { animation: none; } }+ /* Minimal: a plain theme panel with no art, so the words take theme colours. */+ .gb.minimal { color: var(--text); }+ .minimal.l1 { min-height: 0; }+ .minimal .name { font-size: clamp(28px, 3.2cqw, 40px); text-shadow: none; }+ .minimal .line { color: var(--text-muted); }+ .minimal .open { color: var(--text); }+ .minimal .words :global(.ui-art-pill) { --tint: var(--text-muted); color: var(--text); background: var(--surface-3); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }</style>diff --git a/app/frontend/src/lib/discover/hero-prefetch.test.ts b/app/frontend/src/lib/discover/hero-prefetch.test.tsnew file mode 100644index 0000000..bea7d3c--- /dev/null+++ b/app/frontend/src/lib/discover/hero-prefetch.test.ts@@ -0,0 +1,39 @@+import { afterEach, describe, expect, it, vi } from 'vitest';+import { heroAhead } from './hero-prefetch.ts';+import { setLook } from '../core/look.svelte.ts';+import { registerPictures } from '../core/pictures.ts';++// Two artists with a stored wide picture, so heroPictures has something to warm in either look.+const QUIET = '0383dadf-2a4e-4d10-a46a-e9e041da8eb3';+const LOUD = '1f9df192-a621-4f54-8850-2c5373b7eac9';+registerPictures({ [`wide:${QUIET}`]: { v: 'a1', w: 1920, h: 1080 }, [`wide:${LOUD}`]: { v: 'a1', w: 1920, h: 1080 } });++function catchImages(): string[] {+ const made: string[] = [];+ vi.stubGlobal('Image', class { decoding = ''; set src(u: string) { made.push(u); } });+ return made;+}++describe('heroAhead', () => {+ afterEach(() => {+ setLook('full');+ vi.unstubAllGlobals();+ });+ it('warms nothing in the minimal look', () => {+ const made = catchImages();+ const preload = vi.fn();+ setLook('minimal');+ heroAhead('/title/movie/550', preload);+ heroAhead(`/music/artist/${QUIET}`, preload);+ expect(preload).not.toHaveBeenCalled();+ expect(made).toEqual([]);+ });+ it('warms the artist picture and hands a title link to the preloader in the full look', () => {+ const made = catchImages();+ const preload = vi.fn();+ heroAhead('/title/movie/550', preload);+ heroAhead(`/music/artist/${LOUD}`, preload);+ expect(preload).toHaveBeenCalledTimes(1);+ expect(made.some((u) => u.includes(`/music-trending/art/wide/${LOUD}`))).toBe(true);+ });+});diff --git a/app/frontend/src/lib/discover/hero-prefetch.ts b/app/frontend/src/lib/discover/hero-prefetch.tsindex 72a3025..1439f43 100644--- a/app/frontend/src/lib/discover/hero-prefetch.ts+++ b/app/frontend/src/lib/discover/hero-prefetch.ts@@ -3,6 +3,7 @@ import { appPicture, coverFor } from '../music/index.ts';import { remembered, type DetailKind } from '../metadata/index.ts';import { pictureFor } from '../core/pictures.ts';import { proxied } from '../core/tmdb-image.ts';+import { minimalLook } from '../core/look.svelte.ts';const album = /\/music\/album\/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:[?#]|$)/;const artist = /\/music\/artist\/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:[?#]|$)/;@@ -22,7 +23,8 @@ const asked = new Set<string>();/** Preloads the hero behind a link: music pictures here, a title's backdrop through `preload` (the title page's own preloadHero). */export function heroAhead(href: string | null | undefined, preload: (backdrop: string | null | undefined) => void): void {- if (!href) return;+ // The minimal look shows no big pictures, so none are fetched ahead.+ if (!href || minimalLook()) return;for (const u of heroPictures(href)) warm(u);const t = title.exec(href);if (t) preload(remembered(t[1] as DetailKind, t[2])?.backdrop);diff --git a/app/frontend/src/lib/downloads/pick-rules.test.ts b/app/frontend/src/lib/downloads/pick-rules.test.tsindex 52f0a7f..ecec8ea 100644--- a/app/frontend/src/lib/downloads/pick-rules.test.ts+++ b/app/frontend/src/lib/downloads/pick-rules.test.ts@@ -256,6 +256,18 @@ describe('tidyBody', () => {expect(tidyBody(b).proper_policy.max_age_days).toBe(14);expect(b.min_points).toBe('');});++ it('keeps good enough points as a whole number and drops them when the box is cleared', () => {+ const b = blankBody('movie');+ b.good_enough_points = 99.6;+ expect(tidyBody(b).good_enough_points).toBe(100);+ for (const empty of [null, '', undefined]) {+ b.good_enough_points = empty as unknown as number;+ const t = tidyBody(b);+ expect('good_enough_points' in t).toBe(false);+ expect(checkBody('Mine', ['movie'], t).good_enough_points).toBeUndefined();+ }+ });});describe('server fields', () => {diff --git a/app/frontend/src/lib/downloads/pick-rules.ts b/app/frontend/src/lib/downloads/pick-rules.tsindex e294ae4..927798c 100644--- a/app/frontend/src/lib/downloads/pick-rules.ts+++ b/app/frontend/src/lib/downloads/pick-rules.ts@@ -272,7 +272,10 @@ export function tidyBody(body: PickRulesBody): PickRulesBody {b.traits = b.traits.map((t) => ({ trait: t.trait, points: whole(t.points) }));b.min_points = whole(b.min_points);b.upgrade_min_points = whole(b.upgrade_min_points);- if (b.good_enough_points !== undefined && b.good_enough_points !== null) b.good_enough_points = whole(b.good_enough_points);+ // An empty good enough points box means the step alone decides.+ const gep = b.good_enough_points as unknown;+ if (gep === undefined || gep === null || gep === '') delete b.good_enough_points;+ else b.good_enough_points = whole(gep);b.protocol.wait_minutes_torrent = whole(b.protocol.wait_minutes_torrent);b.protocol.wait_minutes_usenet = whole(b.protocol.wait_minutes_usenet);const days = whole(b.proper_policy.max_age_days);diff --git a/app/frontend/src/lib/mediafiles/LibraryList.svelte b/app/frontend/src/lib/mediafiles/LibraryList.svelteindex de3cc32..a970045 100644--- a/app/frontend/src/lib/mediafiles/LibraryList.svelte+++ b/app/frontend/src/lib/mediafiles/LibraryList.svelte@@ -27,7 +27,7 @@import BannerArt from './BannerArt.svelte';import LibraryLetterRail from './LibraryLetterRail.svelte';import LibraryPoster from './LibraryPoster.svelte';- import { exceptionChip, firstOfLetter, letterOf, letters, missingEpisodes, posterStatus, type Kind } from './library.ts';+ import { emptyAdds, exceptionChip, firstOfLetter, letterOf, letters, missingEpisodes, posterStatus, type AddKind, type Kind } from './library.ts';import { libraryState } from './library-state.ts';import { partOff } from './parts.svelte.ts';import { buildEntries, cell, grow, isProgressCol, posterExtra, posterFacts, requestedBy, rowCell, scoreText, shrink, tone, type Entry, type View } from './library-view.ts';@@ -78,6 +78,8 @@setKeep: (ids: number[], keep: boolean) => void;refreshTitle: (t: TitleView) => void;};+ // The empty Library's add buttons, named for the kind each one adds.+ const addWords = $derived<Record<AddKind, string>>({ movie: tr('mediafiles.list.addMovie'), show: tr('mediafiles.list.addShow'), artist: tr('mediafiles.list.addArtist') });let { titles, shown, loaded, error, view, kind, libKind, filter, sort, grouped, kindTitle, q, filtersOn, who, canManage, selecting, picked, lastOpenedId, chosenCols, density, posterSize, posterDetail, seriesOfTitle, seriesName, phone, listWidth = $bindable(), gridEl = $bindable(), listEl = $bindable(), progressText, artistHref, episodeLabel, retryLoad, clearFilters, togglePick, startSelecting, setSort, searchTitles, setKeep, refreshTitle }: Props = $props();const kindLabel = (k: string) => tr(`mediafiles.kindCap.${k}`);@@ -304,10 +306,10 @@{#if error}<LoadError hasData={false} message={plainReason(error).text} onretry={retryLoad} />{:else if titles.length === 0}- <EmptyState icon="library" title={tr('mediafiles.list.nothingYet')} action={{ label: tr('mediafiles.list.addMovie'), href: to('/search'), icon: 'search' }} />+ {@const [firstAdd, ...moreAdds] = emptyAdds(kind, partOff)}+ <EmptyState icon="library" title={tr('mediafiles.list.nothingYet')} action={firstAdd ? { label: addWords[firstAdd.kind], href: to(firstAdd.href), icon: 'search' } : undefined} /><div class="empty-more">- {#if !partOff('shows')}<Button href={to('/search?kind=show')}>{tr('mediafiles.list.addShow')}</Button>{/if}- {#if !partOff('music')}<Button href={to('/search?kind=music')}>{tr('mediafiles.list.addArtist')}</Button>{/if}+ {#each moreAdds as a (a.kind)}<Button href={to(a.href)}>{addWords[a.kind]}</Button>{/each}{#if session.can('settings')}<Button href={to('/settings/library-folders')}>{tr('mediafiles.list.folders')}</Button>{/if}</div>{:else if shown.length === 0}diff --git a/app/frontend/src/lib/mediafiles/library.test.ts b/app/frontend/src/lib/mediafiles/library.test.tsindex 2792317..bb18ddb 100644--- a/app/frontend/src/lib/mediafiles/library.test.ts+++ b/app/frontend/src/lib/mediafiles/library.test.ts@@ -1,5 +1,5 @@import { describe, expect, it } from 'vitest';-import { byName, counts, slotNotes, loadChoices, matches, matchesTitleQuery, ofKind, pickId, saveChoices, secondVersion, titleQuery, letterOf, firstOfLetter, letters, exceptionChip, missingEpisodes, posterStatus } from './library.ts';+import { byName, counts, emptyAdds, slotNotes, loadChoices, matches, matchesTitleQuery, ofKind, pickId, saveChoices, secondVersion, titleQuery, letterOf, firstOfLetter, letters, exceptionChip, missingEpisodes, posterStatus } from './library.ts';import type { TitleView } from '../core/types.ts';function title(name: string, ...states: string[]): TitleView {@@ -167,3 +167,17 @@ describe('library letters and quiet states', () => {expect(missingEpisodes([ep(1, true, 'wanted'), ep(2, true, 'in_library'), ep(3, false, 'wanted'), ep(4, true, 'downloading'), ep(5, true, 'not_out_yet')]).map((e) => e.id)).toEqual([1, 4]);});});++describe('emptyAdds', () => {+ const allOn = () => false;+ it('offers only the page kind on a kind page', () => {+ expect(emptyAdds('movie', allOn)).toEqual([{ kind: 'movie', href: '/search?kind=movie' }]);+ expect(emptyAdds('show', allOn)).toEqual([{ kind: 'show', href: '/search?kind=show' }]);+ expect(emptyAdds('artist', allOn)).toEqual([{ kind: 'artist', href: '/search?kind=music' }]);+ });+ it('offers every part that is on for All, movies first', () => {+ expect(emptyAdds('all', allOn).map((a) => a.kind)).toEqual(['movie', 'show', 'artist']);+ expect(emptyAdds('all', (p) => p === 'music').map((a) => a.kind)).toEqual(['movie', 'show']);+ expect(emptyAdds('all', (p) => p === 'movies').map((a) => a.kind)).toEqual(['show', 'artist']);+ });+});diff --git a/app/frontend/src/lib/mediafiles/library.ts b/app/frontend/src/lib/mediafiles/library.tsindex 72db07f..6917c63 100644--- a/app/frontend/src/lib/mediafiles/library.ts+++ b/app/frontend/src/lib/mediafiles/library.ts@@ -205,3 +205,13 @@ export function posterStatus(t: TitleView, who: Audience): TitleStatus | null {export function missingEpisodes<E extends { keep_up_to_date: boolean; slots: { state: string }[] }>(eps: E[]): E[] {return eps.filter((e) => e.keep_up_to_date && e.slots.some((s) => s.state === 'wanted' || busyStates.includes(s.state)));}++export type AddKind = 'movie' | 'show' | 'artist';+const addParts: Record<AddKind, string> = { movie: 'movies', show: 'shows', artist: 'music' };+const addSearch: Record<AddKind, string> = { movie: '/search?kind=movie', show: '/search?kind=show', artist: '/search?kind=music' };++/** The add buttons on an empty Library page: a kind's own page offers that kind; All offers every part that is on, movies first. */+export function emptyAdds(kind: Kind, partOff: (part: string) => boolean): { kind: AddKind; href: string }[] {+ const kinds: AddKind[] = kind === 'all' ? (['movie', 'show', 'artist'] as AddKind[]).filter((k) => !partOff(addParts[k])) : [kind];+ return kinds.map((k) => ({ kind: k, href: addSearch[k] }));+}diff --git a/app/frontend/src/lib/migrate/ChooseStep.svelte b/app/frontend/src/lib/migrate/ChooseStep.svelteindex 02fb8fc..030861c 100644--- a/app/frontend/src/lib/migrate/ChooseStep.svelte+++ b/app/frontend/src/lib/migrate/ChooseStep.svelte@@ -13,7 +13,7 @@import Icon from '#lib/ui/Icon.svelte';import Sheet from '#lib/ui/Sheet.svelte';import type { ShowList } from './ItemsSheet.svelte';- import { appName, folderProblem, OTHER, type PathRule, type PersonChoice, type Plan, type PlanGroup, type PlanItem } from './move.ts';+ import { appName, cleanPath, folderProblem, folderTo, OTHER, sharedTargets, type PathRule, type PersonChoice, type Plan, type PlanGroup, type PlanItem } from './move.ts';const countSteps = moveContext<boolean | undefined>('move-hide-count') !== true;@@ -26,6 +26,8 @@extra,extraErrors,suggested,+ missing = {},+ seen = [],skip,people,onfolder,@@ -44,6 +46,8 @@extra: PathRule[];extraErrors: string[];suggested: Record<string, string>;+ missing?: Record<string, string>;+ seen?: string[];skip: string[];people: Record<string, PersonChoice>;onfolder: (from: string, pick: string) => void;@@ -82,6 +86,9 @@const asked = $derived(peopleItems.filter((it) => it.person?.was_owner || it.person?.was_admin));const pathRules = $derived(!!plan && oldRows.length === 0 && (extra.length > 0 || plan.not_moved.some((n) => n.group === 'titles')));const needFolders = $derived(oldRows.filter((p) => held.includes(p) || !picks[p]));+ const shared = $derived(sharedTargets(picks, others));+ // The last plan's word on this row's new folder, while the row still points there.+ const goneFor = (p: string) => (missing[p] && cleanPath(missing[p]) === cleanPath(folderTo(picks[p], others[p])) ? missing[p] : '');const lead = $derived.by(() => {const b = big.map((n) => on.find((g) => g.name === n)).filter((g): g is PlanGroup => !!g);if (b.length > 0 || on.length === 0) return b;@@ -142,7 +149,7 @@if (add.length > 0) held = [...held, ...add];});$effect(() => {- if (oldRows.some((p) => !needFolders.includes(p) && folderProblem(p, picks[p] ?? '', others[p]) !== '')) open = true;+ if (oldRows.some((p) => !needFolders.includes(p) && (folderProblem(p, picks[p] ?? '', others[p]) !== '' || goneFor(p) || shared[p]))) open = true;if (extraErrors.some((e) => e !== '')) {open = true;advOpen = true;@@ -165,6 +172,7 @@const out = folders.filter((f) => !k || !f.kind || f.kind === k).map((f) => ({ value: f.path, label: f.path }));const s = suggested[p];if (s && !out.some((o) => o.value === s)) out.unshift({ value: s, label: s });+ for (const f of seen) if (!out.some((o) => o.value === f)) out.push({ value: f, label: f });return out;}function groupNote(g: PlanGroup): { text: string; warn: boolean } {@@ -209,6 +217,8 @@{#snippet folderRow(p: string, n: number, id: string, testid: string, note: boolean)}{@const pick = picks[p] ?? ''}{@const err = folderProblem(p, pick, others[p])}+ {@const gone = err ? '' : goneFor(p)}+ {@const twins = shared[p] ?? []}<li class="mrow wrap" data-testid={testid}><div class="txt"><label for={id} class="mono path one" title={p}><span aria-hidden="true">{clipMiddle(p)}</span><span class="sr-only">{p}</span></label>@@ -220,13 +230,15 @@{#each choicesFor(p) as o (o.value)}<option value={o.value}>{o.label}</option>{/each}<option value={OTHER}>{t('migrate.otherPath')}</option></select>- {#if pick === OTHER || err}+ {#if pick === OTHER || err || gone || twins.length}<div class="below">{#if pick === OTHER}<label class="sr-only" for="{id}-other">{t('migrate.pathHereFor', { path: p })}</label><input id="{id}-other" class="input mono wide" value={others[p] ?? ''} placeholder="/data/movies" aria-invalid={err ? 'true' : undefined} aria-describedby={err ? `${id}-err` : undefined} oninput={(e) => onother(p, e.currentTarget.value)} onblur={oncommit} onkeydown={keyDone} />{/if}{#if err}<p class="form-error" id="{id}-err">{err}</p>{/if}+ {#if gone}<p class="sub warn note" data-testid="folder-not-here">{t('migrate.notInContainer', { path: gone })}{#if seen.length} {t('migrate.foldersItSees', { list: seen.join(', ') })}{/if}</p>{/if}+ {#if twins.length}<p class="sub warn note" data-testid="folder-shared">{t('migrate.sameNewFolder', { list: twins.join(', ') })}</p>{/if}</div>{/if}</li>@@ -464,7 +476,7 @@.half { flex: 1 1 0; min-width: 0; min-height: 36px; height: 36px; }.wide { width: 100%; max-width: 100%; box-sizing: border-box; min-height: 36px; }.below { flex-basis: 100%; padding-bottom: 6px; }- .below .form-error { margin: 6px 0 0; }+ .below .form-error, .below .note { margin: 6px 0 0; }.quiet { flex: none; border: 0; padding: 4px 0; background: none; color: var(--text-muted); font: 500 13px/1.2 var(--font-ui); cursor: pointer; }.quiet:hover:not(:disabled) { color: var(--text); }diff --git a/app/frontend/src/lib/migrate/move-plan.svelte.ts b/app/frontend/src/lib/migrate/move-plan.svelte.tsindex c9fed08..e8f2686 100644--- a/app/frontend/src/lib/migrate/move-plan.svelte.ts+++ b/app/frontend/src/lib/migrate/move-plan.svelte.ts@@ -18,9 +18,11 @@ export function createMovePlan(ctx: { extra: PathRule[]; skip: string[]; [key: sctx.planning = true;ctx.planError = '';try {- const r = await api.request<{ plan: Plan; suggested_path_rules?: PathRule[] }>('/migrate/plan', { method: 'POST', body: ctx.choices(), signal: ctx.planCtrl.signal });+ const r = await api.request<{ plan: Plan; suggested_path_rules?: PathRule[]; missing_paths?: Record<string, string>; seen_folders?: string[] }>('/migrate/plan', { method: 'POST', body: ctx.choices(), signal: ctx.planCtrl.signal });if (seq !== ctx.planSeq || ctx.destroyed) return;ctx.plan = r.plan;+ ctx.missingPaths = r.missing_paths ?? {};+ ctx.seenFolders = r.seen_folders ?? [];const sug: Record<string, string> = {};for (const s of r.suggested_path_rules ?? []) sug[s.from] = s.to;ctx.suggested = sug;diff --git a/app/frontend/src/lib/migrate/move-plan.test.ts b/app/frontend/src/lib/migrate/move-plan.test.tsindex eb358a9..b3a18e1 100644--- a/app/frontend/src/lib/migrate/move-plan.test.ts+++ b/app/frontend/src/lib/migrate/move-plan.test.ts@@ -53,6 +53,18 @@ describe('createMovePlan', () => {expect(ctx.planError).toBe('');});+ it('keeps the folders that are not here and the folders HolyArrs can see', async () => {+ req.mockResolvedValue({ plan: {}, suggested_path_rules: [], missing_paths: { '/mnt/78/Movies': '/home/mark/Movies' }, seen_folders: ['/data/movies'] });+ const ctx = ctxOf();+ await createMovePlan(ctx).makePlan();+ expect(ctx.missingPaths).toEqual({ '/mnt/78/Movies': '/home/mark/Movies' });+ expect(ctx.seenFolders).toEqual(['/data/movies']);+ req.mockResolvedValue({ plan: {}, suggested_path_rules: [] });+ await createMovePlan(ctx).makePlan();+ expect(ctx.missingPaths).toEqual({});+ expect(ctx.seenFolders).toEqual([]);+ });+it('does not plan with nothing picked or with rule errors', async () => {req.mockResolvedValue({ plan: {} });await createMovePlan(ctxOf({ picked: [] })).makePlan();diff --git a/app/frontend/src/lib/migrate/move.test.ts b/app/frontend/src/lib/migrate/move.test.tsindex a2a6161..b428c4d 100644--- a/app/frontend/src/lib/migrate/move.test.ts+++ b/app/frontend/src/lib/migrate/move.test.ts@@ -1,5 +1,5 @@import { describe, expect, it } from 'vitest';-import { appName, hostOf, instanceKey, latestPerInstance, asStep, buckets, chooseHint, cleanRules, countWord, countWords, extraProblems, folderProblem, moveCounts, moveStateWord, moveTotal, needsGroups, OTHER, placeholderFor, resultWords, ruleProblem, rulesFrom, running, setChoice, stepGate, summary, tone, type Report } from './move.ts';+import { appName, hostOf, instanceKey, latestPerInstance, asStep, buckets, chooseHint, cleanPath, cleanRules, countWord, countWords, extraProblems, folderProblem, moveCounts, moveStateWord, moveTotal, needsGroups, OTHER, placeholderFor, resultWords, ruleProblem, rulesFrom, running, setChoice, sharedTargets, stepGate, summary, tone, type Report } from './move.ts';describe('move helpers', () => {it('names apps, with what they bring and their usual port', () => {@@ -182,4 +182,20 @@ describe('reads per copy of an app', () => {expect(hostOf('http://sonarr-4k:8989')).toBe('sonarr-4k:8989');expect(hostOf('not an address')).toBe('not an address');});++ it('lists the other old folders that point at the same new folder', () => {+ const picks = { '/mnt/78/Movies': OTHER, '/mnt/78/4K Movies': OTHER, '/tv': '/data/tv', '/off': '' };+ const others = { '/mnt/78/Movies': '/data/movies ', '/mnt/78/4K Movies': '/data/movies' };+ expect(sharedTargets(picks, others)).toEqual({ '/mnt/78/Movies': ['/mnt/78/4K Movies'], '/mnt/78/4K Movies': ['/mnt/78/Movies'] });+ expect(sharedTargets({ '/a': '/x', '/b': '/y' }, {})).toEqual({});+ expect(sharedTargets({ '/a': OTHER, '/b': OTHER }, { '/a': '/data/movies/', '/b': '/data//movies' })).toEqual({ '/a': ['/b'], '/b': ['/a'] });+ });++ it('cleans a path the way the server does before comparing', () => {+ expect(cleanPath('/data/movies/')).toBe('/data/movies');+ expect(cleanPath('D:\\Media\\Movies')).toBe('D:/Media/Movies');+ expect(cleanPath('/data//movies')).toBe('/data/movies');+ expect(cleanPath('/')).toBe('/');+ expect(cleanPath('')).toBe('');+ });});diff --git a/app/frontend/src/lib/migrate/move.ts b/app/frontend/src/lib/migrate/move.tsindex 1feda0d..5cbad3b 100644--- a/app/frontend/src/lib/migrate/move.ts+++ b/app/frontend/src/lib/migrate/move.ts@@ -462,12 +462,31 @@ export function folderTo(pick: string | undefined, other: string | undefined): sreturn pick === OTHER ? (other ?? '').trim() : pick;}+// A path written the way the server keeps it: forward slashes, no doubled+// or trailing slash, so two spellings of one folder compare equal.+export function cleanPath(p: string): string {+ const c = p.trim().replace(/\\/g, '/').replace(/\/{2,}/g, '/');+ return c.length > 1 ? c.replace(/\/$/, '') : c;+}+export function folderProblem(from: string, pick: string | undefined, other: string | undefined): string {if (!pick) return '';if (pick === OTHER && !(other ?? '').trim()) return t('migrate.typeThePathHere');return ruleProblem({ from, to: folderTo(pick, other) });}+// For each old folder, the other old folders that point at the same new folder.+export function sharedTargets(picks: Record<string, string>, others: Record<string, string>): Record<string, string[]> {+ const by = new Map<string, string[]>();+ for (const [from, pick] of Object.entries(picks)) {+ const to = cleanPath(folderTo(pick, others[from]));+ if (to) by.set(to, [...(by.get(to) ?? []), from]);+ }+ const out: Record<string, string[]> = {};+ for (const froms of by.values()) if (froms.length > 1) for (const f of froms) out[f] = froms.filter((x) => x !== f);+ return out;+}+export function extraProblems(rules: PathRule[]): string[] {return rules.map((r) => {const c = { from: r.from.trim(), to: r.to.trim() };diff --git a/app/frontend/src/lib/music/ArtistAbout.svelte b/app/frontend/src/lib/music/ArtistAbout.svelteindex 8888ceb..0a6a782 100644--- a/app/frontend/src/lib/music/ArtistAbout.svelte+++ b/app/frontend/src/lib/music/ArtistAbout.svelte@@ -3,6 +3,7 @@import Icon from '#lib/ui/Icon.svelte';import ArtPlaceholder from '#lib/ui/ArtPlaceholder.svelte';import Sheet from '#lib/ui/Sheet.svelte';+ import { minimalLook } from '#lib/core/look.svelte.ts';import { artistKind, changeWords, countryName, fullCount, type ArtistCoreData, type Catalog } from './music-pages.ts';// The About card (photo, rank disc, two lines of the bio) and the sheet it opens.@@ -25,11 +26,13 @@// The wide photo and the square photo take turns with a slow zoom, like the people page.const aboutStills = $derived([wideFace && !wideFailed ? wideFace : '', picture && !photoFailed ? picture : ''].filter((x, i, a): x is string => !!x && a.indexOf(x) === i));let still = $state(0);+ // The minimal look: a plain text card and a sheet without the big photo.+ const minimal = $derived(minimalLook());// The wide stills, else the one portrait.const shots = $derived(aboutStills.length ? aboutStills : picture ? [picture] : []);$effect(() => {const n = aboutStills.length;- if (n < 2 || matchMedia('(prefers-reduced-motion: reduce)').matches) return;+ if (n < 2 || minimal || matchMedia('(prefers-reduced-motion: reduce)').matches) return;const t = setInterval(() => (still = (still + 1) % n), 7000);return () => clearInterval(t);});@@ -37,8 +40,8 @@<section class="block about"><h2>{t('music.about')}</h2>- <button type="button" class="acard" aria-haspopup="dialog" aria-label={t('music.aboutReadMore', { name: hero.name })} onclick={() => (open = true)} onpointermove={(e) => { const b = e.currentTarget.getBoundingClientRect(); e.currentTarget.style.setProperty('--mx', `${((e.clientX - b.left) / b.width) * 100}%`); e.currentTarget.style.setProperty('--my', `${((e.clientY - b.top) / b.height) * 100}%`); }} data-testid="artist-about">- {#if aboutStills.length}{#each aboutStills as src, i (src)}<img class="ab-frame" class:on={i === still % aboutStills.length} {src} alt="" loading="lazy" decoding="async" />{/each}<span class="a-glow" aria-hidden="true"></span>{:else if cardImg}<img class="ab-frame on" src={cardImg} alt="" loading="lazy" decoding="async" />{:else}<span class="a-none" aria-hidden="true"><ArtPlaceholder name={hero.name ?? ''} shape="wide" /></span>{/if}+ <button type="button" class="acard" class:minimal aria-haspopup="dialog" aria-label={t('music.aboutReadMore', { name: hero.name })} onclick={() => (open = true)} onpointermove={(e) => { const b = e.currentTarget.getBoundingClientRect(); e.currentTarget.style.setProperty('--mx', `${((e.clientX - b.left) / b.width) * 100}%`); e.currentTarget.style.setProperty('--my', `${((e.clientY - b.top) / b.height) * 100}%`); }} data-testid="artist-about">+ {#if minimal}{:else if aboutStills.length}{#each aboutStills as src, i (src)}<img class="ab-frame" class:on={i === still % aboutStills.length} {src} alt="" loading="lazy" decoding="async" />{/each}<span class="a-glow" aria-hidden="true"></span>{:else if cardImg}<img class="ab-frame on" src={cardImg} alt="" loading="lazy" decoding="async" />{:else}<span class="a-none" aria-hidden="true"><ArtPlaceholder name={hero.name ?? ''} shape="wide" /></span>{/if}{#if listen?.rank}<span class="disc" aria-hidden="true"><b>#{listen.rank}</b><small>{t('music.inTheWorld')}</small></span>{/if}<span class="a-foot">{#if listenWords || catalog?.span || genres}<span class="a-lis">{[listenWords, catalog?.span, genres.split(', ').slice(0, 2).join(', ')].filter(Boolean).join(' · ')}</span>{/if}@@ -50,7 +53,7 @@<Sheet bind:open title={t('music.about2', { name: hero.name })} size="lg"><div class="sheet" data-testid="artist-about-sheet">- {#if shots.length}+ {#if shots.length && !minimal}<figure class="col-photo">{#each shots as src, i (src)}<img class:on={i === still % shots.length} {src} alt="" decoding="async" />{/each}{#if shots.length > 1}@@ -106,6 +109,18 @@.a-bio { max-width: 64ch; color: rgb(255 255 255 / .9); font: 500 19px/1.45 var(--font-ui); text-shadow: 0 1px 12px rgb(0 0 0 / .35); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }.a-more { align-self: flex-start; margin-top: 6px; padding: 9px 16px; border-radius: 999px; background: rgb(255 255 255 / 14%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%); backdrop-filter: blur(20px) saturate(160%); font: 600 14px/1 var(--font-ui); transition: background var(--dur-fast) var(--ease-out); }.acard:hover .a-more { background: rgb(255 255 255 / 24%); }+ /* Minimal: a plain card in the theme's colours, the text in the flow. */+ .acard.minimal { display: flex; align-items: center; gap: 20px; height: auto; padding: 20px; background: var(--surface-1); color: var(--text); box-shadow: 0 0 0 1px var(--line); }+ .acard.minimal::after { content: none; }+ .acard.minimal:focus-visible { box-shadow: var(--focus-ring); }+ .acard.minimal .disc { position: static; flex: none; box-shadow: none; }+ .acard.minimal .a-foot { position: static; min-width: 0; }+ .acard.minimal .a-bio { color: var(--text); text-shadow: none; }+ .acard.minimal .a-more { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }+ .acard.minimal:hover .a-more { background: var(--line); }+ :global(html[data-look='minimal'] .ui-sheet:has(.sheet[data-testid='artist-about-sheet'])) { --text: inherit; --text-muted: inherit; --surface-1: inherit; --surface-2: inherit; --line: inherit; --border: inherit; color-scheme: inherit; color: var(--text); background: var(--surface-1); box-shadow: var(--shadow-modal); }+ :global(html[data-look='minimal']) .chips span { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }+ :global(html[data-look='minimal']) .col-bio p { color: var(--text); }@media (prefers-reduced-motion: reduce) { .acard:hover { translate: none; } .ab-frame { transition: opacity 1.2s; scale: 1; } }:global(.ui-sheet:has(.sheet[data-testid='artist-about-sheet'])) { --w: 1040px; max-height: min(92dvh, 980px); --text: #fff; --text-muted: rgb(235 235 245 / .62); --surface-1: rgb(255 255 255 / 7%); --surface-2: rgb(255 255 255 / 12%); --line: rgb(255 255 255 / 10%); --border: rgb(255 255 255 / 10%); color-scheme: dark; color: #fff; background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--tint-bg, #2a2c33) 85%, #fff 6%), color-mix(in srgb, var(--tint-bg, #1b1c20) 55%, #050506) 70%); box-shadow: 0 0 0 1px rgb(255 255 255 / 8%), 0 40px 120px rgb(0 0 0 / .6); }.sheet { display: flex; flex-direction: column; gap: 24px; }@@ -147,5 +162,6 @@.disc b { font-size: 21px; }.disc small { font-size: 10px; }.a-foot { left: 16px; right: 16px; bottom: 16px; }+ .acard.minimal { height: auto; gap: 14px; padding: 16px; }}</style>diff --git a/app/frontend/src/lib/music/ArtistOverview.svelte b/app/frontend/src/lib/music/ArtistOverview.svelteindex ed1eda9..7a13f6e 100644--- a/app/frontend/src/lib/music/ArtistOverview.svelte+++ b/app/frontend/src/lib/music/ArtistOverview.svelte@@ -49,6 +49,7 @@import { refreshInbox } from '#lib/core/inbox.svelte.ts';import { toasts } from '#lib/core/toasts.svelte.ts';import { to } from '#lib/core/paths.ts';+ import { minimalLook } from '#lib/core/look.svelte.ts';import type { Ask, LibraryFolder, PickRulesView } from '#lib/core/types.ts';// The one artist page: any MusicBrainz artist, in the Library or not. The Library route passes `library` (its menu, progress and ask) and `below` (albums to keep, how HolyArrs keeps it, history, requests).@@ -273,9 +274,12 @@try { kept = localStorage.getItem(tintKey(id)); } catch {}sampledTint = kept;});- const pageTint = $derived(sampledTint || tint ? tintOf(sampledTint || tint) : null);+ // The minimal look has no banner and no colour from the art: the page keeps the theme.+ const minimal = $derived(minimalLook());+ const pageTint = $derived(!minimal && (sampledTint || tint) ? tintOf(sampledTint || tint) : null);$effect(() => {if (pageTint) paintWindow(pageTint);+ else if (minimal) unpaintWindow();});let toTinted = false;beforeNavigate((nav) => (toTinted = nav.to?.route.id === page.route.id || !!nav.to?.route.id?.startsWith('/music/album')));@@ -285,7 +289,7 @@// The colour is read from the artist's round photo (one picture per artist, so every visitor gets the same colour); the banner only when there is no photo.$effect(() => {const src = picture, id = mbid;- if (!src || sampledTint) return;+ if (!src || sampledTint || minimal) return;const img = new Image();img.onload = () => {if (id !== mbid || sampledTint) return;@@ -494,7 +498,7 @@{#snippet slimBar()}<!-- The slim bar: the main button and the name, tinted from the banner, once the name has scrolled away. --><div class="slimwrap">- <div class="slim" class:on={slimOn} style:--tint={tint || undefined} data-testid="artist-slim-bar" aria-hidden={!slimOn} inert={!slimOn}>+ <div class="slim" class:on={slimOn} style:--tint={(!minimal && tint) || undefined} data-testid="artist-slim-bar" aria-hidden={!slimOn} inert={!slimOn}>{@render mainAct()}<span class="slim-name">{hero?.name}</span></div>@@ -637,11 +641,11 @@{@render similarRow()}{/snippet}-<div class="artist" class:tinted={!!pageTint} style={pageTint ? `--ar-bg:${pageTint.bg};--ar-soft:${pageTint.soft}` : undefined}>+<div class="artist" class:tinted={!!pageTint} class:minimal style={pageTint ? `--ar-bg:${pageTint.bg};--ar-soft:${pageTint.soft}` : undefined}>{#if error && !hero}<LoadError hasData={false} message={error} network={errorNet} onretry={load} {busy} />{/if}<PageLoader loading={!hero && !error} cached={fromCache} label={t('music.loadingThisArtist')} onretry={load}>{#if hero}- <ArtistHeroBanner {mbid} ready={!!hero && hero.mbid === mbid} list={heroList} {picture} backgrounds={art.backgrounds ?? []} {gone} bind:box={heroBox} onimage={heroLoaded} />+ {#if !minimal}<ArtistHeroBanner {mbid} ready={!!hero && hero.mbid === mbid} list={heroList} {picture} backgrounds={art.backgrounds ?? []} {gone} bind:box={heroBox} onimage={heroLoaded} />{/if}{@render slimBar()}{@render compactLine()}{@render libBits()}@@ -696,6 +700,11 @@.slimwrap { position: sticky; top: var(--topbar); z-index: 25; height: 0; margin-bottom: calc(var(--gap) * -1); transition: transform var(--bar-glide); }:global(html.bar-hidden) .slimwrap { transform: translateY(calc(-1 * var(--topbar))); }.slim { --tint: #3a3d44; position: absolute; top: 0; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 var(--gutter); box-sizing: border-box; background: color-mix(in srgb, var(--tint) 45%, #0b0c0f); color: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / .22); opacity: 0; translate: 0 -8px; pointer-events: none; transition: opacity var(--dur) var(--ease-out), translate var(--dur) var(--ease-out); }+ /* Minimal: no banner, so the row is a plain header under the top bar, and the slim bar takes the theme. */+ .artist.minimal .cline { margin-top: 0; padding-top: 8px; }+ .artist.minimal .photo { box-shadow: 0 4px 12px rgb(0 0 0 / .18), 0 0 0 4px var(--bg); }+ .artist.minimal .slim { background: var(--bg); color: var(--text); border-bottom: 1px solid var(--line); box-shadow: none; }+ :global(html:not([data-theme='dark'])) .artist.minimal .slim :global(.ui-act.primary) { background: var(--text); border-color: var(--text); color: var(--bg); box-shadow: none; }.slim.on { opacity: 1; translate: 0 0; pointer-events: auto; }.slim-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 22px/1.1 var(--font-display); letter-spacing: -.01em; }@media (prefers-reduced-motion: reduce) { .slim, .slimwrap { transition: none; translate: none; } }diff --git a/app/frontend/src/lib/music/MusicTrendingRows.svelte b/app/frontend/src/lib/music/MusicTrendingRows.svelteindex e0b8fbc..684ad8d 100644--- a/app/frontend/src/lib/music/MusicTrendingRows.svelte+++ b/app/frontend/src/lib/music/MusicTrendingRows.svelte@@ -23,6 +23,7 @@import { toasts } from '../core/toasts.svelte.ts';import { refreshInbox } from '../core/inbox.svelte.ts';import { to } from '../core/paths.ts';+ import { minimalLook } from '../core/look.svelte.ts';import type { Ask, LibraryFolder, PickRulesView, TitleView } from '../core/types.ts';// Explore > Music. The server builds every row (personal first, then the charts, similar artists, missing albums and genre rows). Every row says why it is there; albums are square, artists round.@@ -303,7 +304,8 @@{#if !cv.src || noCover[c.key]}<ArtPlaceholder name={c.name} shape="wide" />{/if}{#if cv.src && !noCover[c.key]}<!-- The square cover on a blurred, darker copy of itself fills the wide frame. -->- <img class="blur" src={coverFor(musicImage(c), 120).src} alt="" aria-hidden="true" loading={hi < 2 ? 'eager' : 'lazy'} decoding="async" />+ <!-- The minimal look skips the blurred copy and shows the cover on a plain surface. -->+ {#if !minimalLook()}<img class="blur" src={coverFor(musicImage(c), 120).src} alt="" aria-hidden="true" loading={hi < 2 ? 'eager' : 'lazy'} decoding="async" />{/if}<!-- The first 2 cards are on screen at once; the rest wait until scrolled near. --><img class="sq" src={cv.src} alt="" fetchpriority={hi < 2 ? 'high' : 'auto'} loading={hi < 2 ? 'eager' : 'lazy'} decoding="async" onerror={() => (noCover[c.key] = true)} />{/if}@@ -462,6 +464,7 @@.feature:hover .frame { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgb(0 0 0 / .7); }.blur { position: absolute; inset: 0; width: 100%; height: 100%; transform: scale(1.35); object-fit: cover; filter: blur(28px) saturate(1.3) brightness(.7); z-index: -1; }.sq { position: absolute; top: 50%; left: 50%; height: 78%; aspect-ratio: 1; translate: -50% -50%; object-fit: cover; border-radius: 8px; box-shadow: 0 12px 30px -8px rgb(0 0 0 / .65); }+ :global(html[data-look='minimal']) .sq { box-shadow: 0 4px 12px -6px rgb(0 0 0 / .35); }.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; opacity: 0; transition: opacity var(--dur) var(--ease-out); }.photo.in { opacity: 1; }.mini { position: absolute; right: 12px; bottom: 10px; z-index: 1; width: 56px; height: 56px; border-radius: 4px; object-fit: cover; box-shadow: 0 2px 10px rgb(0 0 0 / .45); }diff --git a/app/frontend/src/lib/music/artist-video-prefetch.ts b/app/frontend/src/lib/music/artist-video-prefetch.tsindex 39bb817..a555f3b 100644--- a/app/frontend/src/lib/music/artist-video-prefetch.ts+++ b/app/frontend/src/lib/music/artist-video-prefetch.ts@@ -1,5 +1,6 @@// Every link to an artist page (rows, cards, similar artists, credits) gets the trailers' two moments: on screen for a while, the artist is named in the in-view batch; at hover start, its video is asked for.import { prefetchArtistVideo, watchArtistVideo } from '../core/trailer/autoplay.svelte.ts';+import { minimalLook } from '../core/look.svelte.ts';const ARTIST = /\/music\/artist\/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:[/?#]|$)/i;@@ -14,6 +15,8 @@ export function installArtistVideoPrefetch(): () => void {if (typeof window === 'undefined' || typeof MutationObserver === 'undefined') return () => {};const stops = new Map<Element, () => void>();const scan = (root: ParentNode) => {+ // The minimal look plays no videos, so it asks for none.+ if (minimalLook()) return;for (const a of root.querySelectorAll?.('a[href*="/music/artist/"]') ?? []) {if (stops.has(a)) continue;const mbid = artistOfHref(a.getAttribute('href'));@@ -41,7 +44,7 @@ export function installArtistVideoPrefetch(): () => void {mo.observe(document.body, { childList: true, subtree: true });scan(document);const over = (e: PointerEvent) => {- if (e.pointerType !== 'mouse') return;+ if (e.pointerType !== 'mouse' || minimalLook()) return;const mbid = artistOfHref((e.target as Element | null)?.closest?.('a[href]')?.getAttribute('href'));if (mbid) prefetchArtistVideo(mbid);};diff --git a/app/frontend/src/lib/requests/RequestWindow.svelte b/app/frontend/src/lib/requests/RequestWindow.svelteindex f0def41..ef95ef0 100644--- a/app/frontend/src/lib/requests/RequestWindow.svelte+++ b/app/frontend/src/lib/requests/RequestWindow.svelte@@ -269,6 +269,8 @@tmdb={picked.kind === 'artist' ? null : picked.tmdb_id}title={picked.name}{pictures}+ thumb={music ? (artistPhoto(picked) ? proxied(artistPhoto(picked)!) : null) : picked.poster ? to(picked.poster) : null}+ thumbSquare={music}position="60% 25%"art={music && (artistBg || mvideo) ? artistArt : undefined}>@@ -420,7 +422,11 @@.sh-title { font: 800 20px/1.1 var(--font-display, var(--font-ui)); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.sh-kind { color: var(--text-muted); font: 500 13px/1 var(--font-ui); white-space: nowrap; }.frame.status.choosing :global(.ui-billboard .content) { opacity: 0; pointer-events: none; }+ /* Minimal look: the poster fades with the words while choosing; on phones the words keep clear of the close button and pager. */+ .frame :global(.ui-billboard.minimal .thumb) { transition: opacity 300ms var(--ease-out); }+ .frame.choosing :global(.ui-billboard.minimal .thumb) { opacity: 0; }@media (max-width: 767px) {+ .frame :global(.ui-billboard.minimal) { padding-top: 64px; }.sh-h:has(.sh-title) { flex-wrap: wrap; row-gap: 6px; }.sh-h h3:has(.sh-title) { flex: 1 0 100%; flex-direction: column; align-items: flex-start; gap: 2px; }.sh-h:has(.sh-title) .tl-sheet { margin-left: 0; }diff --git a/app/frontend/src/lib/ui/Billboard.svelte b/app/frontend/src/lib/ui/Billboard.svelteindex 3629955..db72bd2 100644--- a/app/frontend/src/lib/ui/Billboard.svelte+++ b/app/frontend/src/lib/ui/Billboard.svelte@@ -8,7 +8,8 @@import { autoplayHere, loadUISettings, prefetchTrailer, trailerSources, type TrailerSource } from '../core/trailer/autoplay.svelte.ts';import { dwell, HERO_DELAY, type Video } from '../core/trailer/trailer.ts';import { fromHandoff, openTheater, resumedPlaying, takeBack, theater, type TheaterHandoff } from '../core/trailer/theater.svelte.ts';- import { THEATER_CHROME_MS, THEATER_SHRINK_MS } from '../core/motion.ts';+ import { THEATER_CHROME_MS, THEATER_SHRINK_MS, viewTransitionName } from '../core/motion.ts';+ import { minimalLook } from '../core/look.svelte.ts';let {label,@@ -24,6 +25,8 @@reveal = false,once = false,onpictureerror,+ thumb,+ thumbSquare = false,art,top,heading,@@ -45,6 +48,9 @@reveal?: boolean;once?: boolean;onpictureerror?: () => void;+ /** Small picture for the minimal look: left out means none, null means the initials tile. */+ thumb?: string | null;+ thumbSquare?: boolean;art?: Snippet;top?: Snippet;heading: Snippet;@@ -75,7 +81,13 @@const quiet = $derived(!wordsShown(phase));const artReady = $derived(artLoaded || !!art || !pictures.length);- const trailer = $derived(!!kind && !!tmdb && painted && artReady);+ const minimal = $derived(minimalLook());+ let thumbFailed = $state(false);+ $effect(() => {+ void thumb;+ thumbFailed = false;+ });+ const trailer = $derived(!minimal && !!kind && !!tmdb && painted && artReady);$effect(() => () => words.dispose());@@ -172,7 +184,14 @@}</script>-<section class="ui-billboard" class:quiet class:reveal bind:this={box} data-hero aria-label={label} data-testid={testid}>+<section class="ui-billboard" class:quiet class:reveal class:minimal bind:this={box} data-hero={minimal ? undefined : ''} aria-label={label} data-testid={testid}>+ {#if minimal}+ {#if thumb !== undefined}+ <div class="thumb" class:sq={thumbSquare} aria-hidden="true">+ {#if thumb && !thumbFailed}<img src={thumb} alt="" decoding="async" fetchpriority="high" use:viewTransitionName={vtName} onerror={() => (thumbFailed = true)} />{:else}<ArtPlaceholder name={title} shape={thumbSquare ? 'square' : 'poster'} />{/if}+ </div>+ {/if}+ {:else}<div class="art" aria-hidden={!sources.length}>{#if !art && (!pictures.length || artFailed || !artLoaded)}<ArtPlaceholder name={!pictures.length || artFailed ? title : ''} shape="wide" loading={!!pictures.length && !artFailed} />@@ -189,6 +208,7 @@{/if}<div class="shade" class:playing></div></div>+ {/if}{#if top}<div class="top">{@render top()}</div>{/if}<div class="content" class:playing><div class="heading">{@render heading()}</div>@@ -265,6 +285,29 @@.top { left: var(--gutter); }.actions :global(.ui-act.primary) { flex: 1 1 100%; }}+ /* Minimal look: a compact flat card with a small poster instead of the big art. */+ .ui-billboard.minimal { --hero-ink: #161618; min-height: 0; overflow: visible; flex-direction: row; align-items: center; justify-content: flex-start; gap: clamp(16px, 2vw, 28px); padding: clamp(16px, 2vw, 28px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%); }+ .thumb { position: relative; flex: none; width: clamp(96px, 9vw, 148px); aspect-ratio: 2 / 3; overflow: hidden; border-radius: 10px; background: rgb(255 255 255 / 6%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%); }+ .thumb.sq { aspect-ratio: 1; }+ .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }+ .minimal .content { --title-h: clamp(32px, 3.6vw, 56px); flex: 1 1 auto; width: auto; min-width: 0; max-width: 640px; padding: 0; }+ /* Smaller buttons and type than the full hero, so the compact card stays compact. */+ .minimal .actions { --hero-btn: 40px; gap: 8px; }+ .minimal .actions :global(:is(.ui-act, .ui-actmenu .ui-pop > .trigger)) { font-size: 15px; }+ .minimal .heading :global(h1), .minimal .heading :global(h2) { min-height: 0; }+ .minimal .heading :global(.bb-name) { font-size: clamp(24px, 2.8vw, 40px); }+ /* A wide title logo may ask for most of the screen; keep it inside the text column. */+ .minimal .heading :global(.bb-logo img) { max-width: min(100%, 420px) !important; min-height: 0; }+ @media (max-width: 767px) {+ .ui-billboard.minimal { --hero-r: 16px; min-height: 0; align-items: flex-start; gap: 14px; padding: 16px; }+ .ui-billboard.minimal { gap: 12px; }+ .minimal .thumb { width: 64px; border-radius: 8px; }+ .minimal .actions { --hero-btn: 38px; gap: 6px; }+ .minimal .actions :global(.ui-act:not(.primary):not(.round)) { padding: 0 14px 0 12px; }+ .minimal .content { width: auto; padding: 0; }+ .minimal .actions :global(.ui-act.primary) { flex: 0 1 auto; }+ .minimal .actions :global(:is(.ui-act, .ui-actmenu .ui-pop > .trigger)) { font-size: 14px; }+ }@media (prefers-reduced-motion: reduce) {.shade, .content { transition: none; }.fold { transition: opacity var(--dur-slow) linear; }diff --git a/app/frontend/src/lib/ui/GrowCard.svelte b/app/frontend/src/lib/ui/GrowCard.svelteindex 4ae0c32..eba9140 100644--- a/app/frontend/src/lib/ui/GrowCard.svelte+++ b/app/frontend/src/lib/ui/GrowCard.svelte@@ -13,6 +13,7 @@import { api, message } from '../core/api.ts';import { toasts } from '../core/toasts.svelte.ts';import { proxied, sized } from '../core/tmdb-image.ts';+ import { minimalLook } from '../core/look.svelte.ts';import { autoplayHere, loadUISettings, trailerSources, type TrailerSource } from '../core/trailer/autoplay.svelte.ts';import { fromHandoff, openTheater } from '../core/trailer/theater.svelte.ts';import { THEATER_GROW_MS } from '../core/motion.ts';@@ -93,8 +94,8 @@const followTarget = $derived<FollowTarget | null>(followId && kind === 'show' ? { titleId: followId } : followTmdb ? { tmdb, kind } : null);const showing = $derived(playing && !held);const pic = $derived(image ?? (meta?.backdrop ? sized(meta.backdrop, 'backdrop') || null : null));- // Only TMDB sizes have a bigger variant to swap in.- const big = $derived(pic && /\/artwork\/tmdb\/w(?:300|780)\//.test(pic) ? pic.replace(/\/w(?:300|780)\//, '/w1280/') : null);+ // Only TMDB sizes have a bigger variant to swap in. The minimal look keeps the card's own picture.+ const big = $derived(!minimalLook() && pic && /\/artwork\/tmdb\/w(?:300|780)\//.test(pic) ? pic.replace(/\/w(?:300|780)\//, '/w1280/') : null);const shownLogo = $derived(logoFailed ? null : logo ? logo : meta?.logo ? sized(meta.logo, 'poster') : null);const facts = $derived(growFacts({ kind, year: meta?.year ?? year, seasons: meta?.seasons, runtime: meta?.runtime, certification: meta?.certification, score: meta?.score }));const tags = $derived(fitTags(meta?.moods, meta?.genres));@@ -320,6 +321,8 @@transform-origin: 0 0;visibility: hidden;}+ /* Minimal: a lighter shadow. */+ :global(html[data-look='minimal']) .ui-grow { --grow-shadow: 0 8px 24px rgb(0 0 0 / 0.22); }.ui-grow.shown { visibility: visible; }.media { position: relative; display: block; container-type: inline-size; aspect-ratio: var(--wide-ratio, 16 / 9); background: var(--surface-2); overflow: hidden; }.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }diff --git a/app/frontend/src/lib/ui/TitleHero.svelte b/app/frontend/src/lib/ui/TitleHero.svelteindex 995e093..f6fa743 100644--- a/app/frontend/src/lib/ui/TitleHero.svelte+++ b/app/frontend/src/lib/ui/TitleHero.svelte@@ -70,6 +70,7 @@import { autoplayHere, loadUISettings, trailerClickSources } from '../core/trailer/autoplay.svelte.ts';import { openTheater } from '../core/trailer/theater.svelte.ts';import { api } from '../core/api.ts';+ import { minimalLook } from '../core/look.svelte.ts';let {title,@@ -149,6 +150,8 @@// a cover replaces the wide backdrop; a poster fills in only when no backdrop existsconst wide = $derived(heroBackdrop && !backdropFailed && !cover ? heroBackdrop : null);const pictures = $derived(wide ? heroPictures(wide, backdrops).map((u) => sized(u, 'backdrop')) : []);+ // The minimal look shows only a small picture: the cover, else the poster.+ const thumb = $derived(cover ?? (heroPoster ? sized(heroPoster, 'poster', 148) : null));const stand = $derived(cover ?? (!wide && heroPoster && !posterFailed ? heroPoster : null));const shown = $derived(shownRatings(extras.scores, score, ratingPicks.list, !ratingPicks.custom));@@ -263,9 +266,9 @@<!-- description and byline sit under the banner, outside the art --><div class="ui-thero" class:square>- <Billboard label={title} testid="title-hero" {kind} {tmdb} {title} {videos} {pictures} {vtName} {settled} once position="70% 30%" onpictureerror={() => (backdropFailed = true)} art={stand ? standArt : undefined}>+ <Billboard label={title} testid="title-hero" {kind} {tmdb} {title} {videos} {pictures} {vtName} {settled} once position="70% 30%" onpictureerror={() => (backdropFailed = true)} art={stand ? standArt : undefined} {thumb} thumbSquare={square || !!cover}>{#snippet heading()}- {#if cover}+ {#if cover && !minimalLook()}<img class="cover" src={cover} alt="" decoding="async" use:viewTransitionName={vtName} />{/if}{#if shownLogo}diff --git a/app/frontend/src/lib/ui/WideCard.svelte b/app/frontend/src/lib/ui/WideCard.svelteindex 212ddd2..ec528d7 100644--- a/app/frontend/src/lib/ui/WideCard.svelte+++ b/app/frontend/src/lib/ui/WideCard.svelte@@ -238,6 +238,8 @@@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {a.hit:hover .art { transform: translateY(var(--lift)); box-shadow: var(--shadow-lift); }a.hit:hover img { transform: scale(1.03); }+ /* Minimal: the still does not zoom. */+ :global(html[data-look='minimal']) a.hit:hover img { transform: none; }}.over { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; }.over.bottom { top: auto; bottom: 8px; }diff --git a/app/frontend/src/routes/(home)/+page.svelte b/app/frontend/src/routes/(home)/+page.svelteindex dfa4dc1..beb4dea 100644--- a/app/frontend/src/routes/(home)/+page.svelte+++ b/app/frontend/src/routes/(home)/+page.svelte@@ -18,7 +18,7 @@import PageLoader from '#lib/ui/PageLoader.svelte';import Icon from '#lib/ui/Icon.svelte';import { artGone, lightOnDark } from './art-check.ts';- import { arrivedHead, attention, downloadMoved, downloadingNow, fallbackRows, homeStrip, n, type HomeAnswer, type HomeCard, type HomeRow } from './home.ts';+ import { arrivedHead, attention, downloadMoved, downloadingNow, fallbackRows, homeDownloadsURL, homeStrip, n, type HomeAnswer, type HomeCard, type HomeRow } from './home.ts';import { MetadataNotice } from '#lib/metadata/index.ts';import { homeFacts, homeGreeting, homeNews } from './home-line.ts';import type { Health, HealthChecks } from '#lib/health/index.ts';@@ -160,7 +160,7 @@first,manager ? api.get<{ library_folders: LibraryFolder[] }>('/library-folders') : Promise.resolve(null),// Members may only read the Library and their own asks; the rest needs manage_library.- manager ? api.get<{ downloads: DownloadRow[] }>('/downloads/view?limit=100') : Promise.resolve(null),+ manager ? api.get<{ downloads: DownloadRow[] }>(homeDownloadsURL) : Promise.resolve(null),manager ? api.get<Health>('/health') : Promise.resolve(null),// The checks need manage_library only; people without Settings get Status links instead of Fix.manager ? api.get<HealthChecks>('/health/checks') : Promise.resolve(null),diff --git a/app/frontend/src/routes/(home)/HomeOverview.svelte b/app/frontend/src/routes/(home)/HomeOverview.svelteindex 8f35eca..15964d9 100644--- a/app/frontend/src/routes/(home)/HomeOverview.svelte+++ b/app/frontend/src/routes/(home)/HomeOverview.svelte@@ -230,7 +230,7 @@</ol>{#if fetchingAll.length}<ul class="dl-list">- {#each downloading.dlList as d (d.id)}+ {#each downloading.dlList as d (d.live_key ?? d.id)}{@const moving = ['downloading', 'stalled'].includes(stageOf(d))}<li><b dir="auto">{d.title || d.name}</b><span>{downloading.dlState(d)}</span>{#if moving}<i class="pb"><i style="width: {percent(d.progress)}%"></i></i>{/if}</li>{/each}@@ -242,7 +242,7 @@{/each}</ul>{:else}- <span class="quiet">{t('home.nothingIsDownloadingRight')}{downloading.pausedCount ? ' ' + t('home.paused2', { n: n(downloading.pausedCount) }) : ''}</span>+ <span class="quiet">{downloading.notSent ? t('home.notSentByHolyArrs', { n: n(downloading.notSent) }) : t('home.nothingIsDownloadingRight')}{downloading.pausedCount ? ' ' + t('home.paused2', { n: n(downloading.pausedCount) }) : ''}</span>{/if}{/if}</a>diff --git a/app/frontend/src/routes/(home)/home-downloads.svelte.ts b/app/frontend/src/routes/(home)/home-downloads.svelte.tsindex de38ed0..cba2a10 100644--- a/app/frontend/src/routes/(home)/home-downloads.svelte.ts+++ b/app/frontend/src/routes/(home)/home-downloads.svelte.ts@@ -1,7 +1,7 @@// Home's downloads tile: the counts, the steps and what finished lately.import type { IconName } from '#lib/ui/Icon.svelte';import { stageOf } from '#lib/downloads/index.ts';-import { n } from './home.ts';+import { homeCounts, n, notSentNow } from './home.ts';import { bytes, percent } from '#lib/core/format.ts';import type { DownloadRow } from '#lib/core/types.ts';import type { Ask } from '#lib/core/types.ts';@@ -19,7 +19,9 @@ export function createHomeDownloads(ctx: Pick<HomeContext, 'waiting' | 'askPic');// Downloads, counted once and used everywhere: waiting (queued), downloading (bytes coming in, stalled and checking included), importing, and paused apart (a paused download is not in the list or the row). The tile, the note beside the switch and the row all read these.const speed = $derived(ctx.fetchingAll.reduce((t, d) => t + (d.speed || 0), 0));- const pausedCount = $derived(ctx.manager ? ctx.downloads.filter((d) => !d.client_item && stageOf(d) === 'paused').length : 0);+ const pausedCount = $derived(ctx.manager ? ctx.downloads.filter((d) => homeCounts(d) && stageOf(d) === 'paused').length : 0);+ // Torrents the Downloader is fetching that HolyArrs did not send: the tile names them instead of saying nothing is downloading.+ const notSent = $derived(ctx.manager ? notSentNow(ctx.downloads).length : 0);function countStages(rows: DownloadRow[], paused = 0) {const c = { waiting: 0, down: 0, imp: 0, paused };for (const d of rows) {@@ -69,5 +71,6 @@ export function createHomeDownloads(ctx: Pick<HomeContext, 'waiting' | 'askPic'dlState,get recentDone() { return recentDone; },get pausedCount() { return pausedCount; },+ get notSent() { return notSent; },};}diff --git a/app/frontend/src/routes/(home)/home.test.ts b/app/frontend/src/routes/(home)/home.test.tsindex 145228d..0d2db28 100644--- a/app/frontend/src/routes/(home)/home.test.ts+++ b/app/frontend/src/routes/(home)/home.test.ts@@ -1,5 +1,5 @@import { describe, expect, it } from 'vitest';-import { arrivedAt, libraryCards, n, arrivedTitle, arrivedHead, askProgressLine, attention, downloadMoved, downloadingNow, fallbackRows, groupAttention, homeFailures, homeStrip, downloadLine, downloadSubtitle, healthFix, homeFresh, isActive, mixLine, moreLink, shownState, soonLine, splitArrivals, uncheckedLine, freeSpace, partCount } from './home.ts';+import { arrivedAt, libraryCards, n, arrivedTitle, arrivedHead, askProgressLine, attention, downloadMoved, downloadingNow, homeDownloadsURL, notSentNow, fallbackRows, groupAttention, homeFailures, homeStrip, downloadLine, downloadSubtitle, healthFix, homeFresh, isActive, mixLine, moreLink, shownState, soonLine, splitArrivals, uncheckedLine, freeSpace, partCount } from './home.ts';import type { HealthCheck } from '#lib/core/types.ts';const check = (key: string, state: HealthCheck['state'], kind: HealthCheck['kind'] = 'source'): HealthCheck => ({ id: 1, key, kind, subject: 'S', state, message: `${key} broke`, since: '', checked_at: '' });@@ -141,7 +141,7 @@ describe('home', () => {row(2, 'waiting', 'queued', 0),row(3, 'downloading', 'downloading', 0.8),row(4, 'done', 'seeding', 1, { active: true }),- row(5, 'downloading', 'downloading', 0.5, { client_item: true }),+ row(5, 'downloading', 'downloading', 0.5, { client_item: true, outside: true }),row(6, 'failed', 'failed', 0.3),row(7, 'done', 'completed', 1),row(8, 'stalled', 'stalled', 0.2)@@ -272,6 +272,30 @@ describe('downloads that are being imported', () => {});});+describe('torrents only the Downloader lists', () => {+ const row = (id: number, extra: object = {}) => ({ id, phase: 'downloading', state: 'downloading', progress: 0.5, active: true, client_item: true, live_key: `2:${id}`, ...extra });+ const rows = [+ row(1, { outside: true }),+ row(2, { outside: true, title_id: 40 }),+ row(3),+ row(4, { outside: true, phase: 'waiting', state: 'queued', progress: 0 }),+ row(5, { outside: true, phase: 'done', state: 'seeding', progress: 1 })+ ];+ it('count when linked to a Library title or when HolyArrs sent them before its newest 100', () => {+ expect(downloadingNow(rows).map((d) => d.live_key).sort()).toEqual(['2:2', '2:3']);+ });+ it('that HolyArrs did not send are counted apart, only while they are fetching', () => {+ expect(notSentNow(rows).map((d) => d.live_key).sort()).toEqual(['2:1', '2:4']);+ expect(notSentNow([])).toEqual([]);+ });+ it('are all read, not only the first 200 Downloader rows', () => {+ const q = new URLSearchParams(homeDownloadsURL.split('?')[1]);+ expect(homeDownloadsURL.startsWith('/downloads/view?')).toBe(true);+ expect(q.get('limit')).toBe('100');+ expect(Number(q.get('outside_limit'))).toBe(2000);+ });+});+describe('System grid numbers', () => {it('counts parts that are on and working; only disabled is off', () => {expect(partCount([{ state: 'ok' }, { state: 'disabled' }, { state: 'unreachable' }])).toEqual({ total: 3, on: 2, working: 1, off: 1, failing: 1 });diff --git a/app/frontend/src/routes/(home)/home.ts b/app/frontend/src/routes/(home)/home.tsindex ca9afb3..112b3cd 100644--- a/app/frontend/src/routes/(home)/home.ts+++ b/app/frontend/src/routes/(home)/home.ts@@ -37,19 +37,40 @@ export function homeFailures<T extends StageBits>(rows: T[]): T[] {const fetching = new Set(['checking', 'queued', 'downloading', 'stalled', 'importing']);+type CardRow = StageBits & Pick<DownloadRow, 'id' | 'active' | 'client_item' | 'outside' | 'title_id'>;++/**+ * homeCounts says whether Home counts a download as HolyArrs's: its own, its+ * own older ones that only come back as Downloader rows, and torrents linked+ * to a title in the Library.+ */+export function homeCounts(d: Pick<DownloadRow, 'client_item' | 'outside' | 'title_id'>): boolean {+ return !d.client_item || !d.outside || !!d.title_id;+}++const fetchingNow = (d: CardRow) => fetching.has(stageOf(d)) && (isActive(d) || stageOf(d) === 'importing');+/*** downloadingNow is Home's Downloading row: what HolyArrs is fetching now,* furthest along first, at most `cap`. A download being imported counts: the- * server no longer calls it active (its state is finished), but it is not in the Library yet. Torrents only the Downloader knows,+ * server no longer calls it active (its state is finished), but it is not in the Library yet. Torrents HolyArrs did not send,* seeding, finished and failed rows stay on Downloads.*/-export function downloadingNow<T extends StageBits & Pick<DownloadRow, 'id' | 'active' | 'client_item'>>(rows: T[], cap = 20): T[] {+export function downloadingNow<T extends CardRow>(rows: T[], cap = 20): T[] {return rows- .filter((d) => !d.client_item && fetching.has(stageOf(d)) && (isActive(d) || stageOf(d) === 'importing'))+ .filter((d) => homeCounts(d) && fetchingNow(d)).sort((a, b) => (b.progress || 0) - (a.progress || 0) || b.id - a.id).slice(0, cap);}+/** homeDownloadsURL reads every Downloader row (up to the server's 2000), so a busy Downloader or a second one is not cut off after 200. */+export const homeDownloadsURL = '/downloads/view?limit=100&outside_limit=2000';++/** notSentNow is what the Downloader is fetching that HolyArrs did not send and Home does not count. */+export function notSentNow<T extends CardRow>(rows: T[]): T[] {+ return rows.filter((d) => !homeCounts(d) && fetchingNow(d));+}+export interface Attention {key: string;tone: 'fail' | 'wait';diff --git a/app/frontend/src/routes/+layout.svelte b/app/frontend/src/routes/+layout.svelteindex dc4ab0b..ae62b36 100644--- a/app/frontend/src/routes/+layout.svelte+++ b/app/frontend/src/routes/+layout.svelte@@ -30,6 +30,7 @@import { installHeroPrefetch } from '#lib/metadata/index.ts';import { idlePages, installRowAhead } from '#lib/core/smart-preload.ts';import { preloadHero } from '#lib/core/tmdb-image.ts';+ import { minimalLook } from '#lib/core/look.svelte.ts';import AppShell from './(frame)/AppShell.svelte';import PosterWall from './(frame)/PosterWall.svelte';import Sidebar from './(frame)/Sidebar.svelte';@@ -496,7 +497,7 @@{:else}<a class="skip" href="#main">{t('frame.layout.skip')}</a><!-- Background behind every page: plain by default, or this Library's posters (Settings > Appearance). Settings home draws its own. -->- {#if backdrop.value === 'posters' && path !== '/settings'}<PosterWall />{/if}+ {#if backdrop.value === 'posters' && path !== '/settings' && !minimalLook()}<PosterWall />{/if}<AppShell {collapsed} {overlay} onscrim={() => closeOverlay()}>{#snippet sidebar()}<Sidebardiff --git a/app/frontend/src/routes/explore/+page.svelte b/app/frontend/src/routes/explore/+page.svelteindex c40606c..fb08884 100644--- a/app/frontend/src/routes/explore/+page.svelte+++ b/app/frontend/src/routes/explore/+page.svelte@@ -604,7 +604,7 @@{:else}{#if heroCards.length}{@const h = live(heroCards[heroAt % heroCards.length])}- <ExploreHero kind={h.kind === 'show' ? 'show' : 'movie'} tmdb={cardTmdb(h)} title={h.name} href={cardHref(h)} backdrop={h.wide ?? h.image} vtName={h.vtName} subtitle={h.year ? (h.kind === 'show' ? t('discover.explore.yearShow', { year: h.year }) : t('discover.explore.yearMovie', { year: h.year })) : h.subtitle} settled={headLoaded && !busy}>+ <ExploreHero kind={h.kind === 'show' ? 'show' : 'movie'} tmdb={cardTmdb(h)} title={h.name} href={cardHref(h)} backdrop={h.wide ?? h.image} poster={h.image} vtName={h.vtName} subtitle={h.year ? (h.kind === 'show' ? t('discover.explore.yearShow', { year: h.year }) : t('discover.explore.yearMovie', { year: h.year })) : h.subtitle} settled={headLoaded && !busy}>{#snippet action()}{@render heroAction(h)}{/snippet}{#snippet badge()}{@const why = whyShown({ kind: h.kind, tmdb: cardTmdb(h) ?? '', genres: heroGenres[`${h.kind}:${cardTmdb(h)}`], fresh: h.fresh }, { taste })}@@ -742,6 +742,8 @@.genre-pick :global(.trigger) { transition: transform var(--bar-glide); transform-origin: top center; }.types.stuck .genre-pick :global(.trigger) { transform: scale(0.9); }.types.stuck .genre-pick :global(.trigger) { background: color-mix(in srgb, var(--surface-2) 70%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 10px 30px rgb(0 0 0 / 0.28), 0 0 0 0.5px color-mix(in srgb, var(--text) 14%, transparent); }+ /* Minimal look: the floating pills are solid, with no blur and only a hairline edge. */+ :global(html[data-look='minimal']) .types.stuck :global(.ui-seg), :global(html[data-look='minimal']) .types.stuck .genre-pick :global(.trigger) { background: var(--surface-2); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 0.5px color-mix(in srgb, var(--text) 14%, transparent); }/* The picker panel is the one scroll: a thin themed bar, never taller than the screen allows. */.genre-pick :global(.panel) { max-height: min(calc(100dvh - var(--topbar, 64px) - 96px), 560px); padding: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text) 28%, transparent) transparent; }.genre-pick :global(.panel::-webkit-scrollbar) { width: 8px; }@@ -752,6 +754,7 @@/* Hero badges, next to the facts line: small glass pills. */.why { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }.why li { font: 600 12px/1 var(--font-ui); letter-spacing: .02em; padding: 6px 10px; border-radius: 999px; color: #fff; background: rgb(255 255 255 / 14%); border: 1px solid rgb(255 255 255 / 22%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }+ :global(html[data-look='minimal']) .why li { -webkit-backdrop-filter: none; backdrop-filter: none; }.row-wrap { display: contents; }/* Wide title rows sit almost edge to edge: about 279px cards at a 1536px window with a 5px gap. */@media (min-width: 768px) { .row-wrap.wide-row { --shelf-gap: 5px; } }diff --git a/app/frontend/src/routes/library/+page.svelte b/app/frontend/src/routes/library/+page.svelteindex 7ea6017..913351f 100644--- a/app/frontend/src/routes/library/+page.svelte+++ b/app/frontend/src/routes/library/+page.svelte@@ -328,7 +328,7 @@const countHint = (n: number) => (loaded ? String(n) : undefined);// Add only adds. Everything that looks after the Library is in Tools (people are found by the search, movie series by Group by series, and held files are on Downloads).const addItems = $derived<MenuItem[]>([- ...(!partOff('movies') ? ([{ label: tr('library.page.addMovie'), icon: 'film', href: to('/search') }] as MenuItem[]) : []),+ ...(!partOff('movies') ? ([{ label: tr('library.page.addMovie'), icon: 'film', href: to('/search?kind=movie') }] as MenuItem[]) : []),...(!partOff('shows') ? ([{ label: tr('library.page.addShow'), icon: 'tv', href: to('/search?kind=show') }] as MenuItem[]) : []),...(!partOff('music') ? ([{ label: tr('library.page.addArtist'), icon: 'music', href: to('/search?kind=music') }] as MenuItem[]) : []),...(canManage ? ([{ label: tr('library.page.importFromFolder'), icon: 'folder', href: to('/library/import') }] as MenuItem[]) : [])diff --git a/app/frontend/src/routes/music/album/[mbid]/+page.svelte b/app/frontend/src/routes/music/album/[mbid]/+page.svelteindex 6b23a69..1a16ac3 100644--- a/app/frontend/src/routes/music/album/[mbid]/+page.svelte+++ b/app/frontend/src/routes/music/album/[mbid]/+page.svelte@@ -25,6 +25,7 @@import { toasts } from '#lib/core/toasts.svelte.ts';import { to } from '#lib/core/paths.ts';import { pictureOf } from '#lib/core/pictures.ts';+ import { minimalLook } from '#lib/core/look.svelte.ts';import type { Ask, LibraryFolder, PickRulesView } from '#lib/core/types.ts';// An album's page: the cover beside its title and actions, the tracklist with what the Library has, its other editions, and where to go next.@@ -144,11 +145,14 @@const coverTint = $derived(pictureOf(cover)?.color || null);// The page colour: sampled from the cover once it shows (truer than the stored colour, which can miss a blue cover), else the stored one (lib/music/album-tint.ts).let sampled = $state<string | null>(null);- const tint = $derived(sampled || coverTint ? tintOf(sampled || coverTint) : null);+ // The minimal look keeps the cover but not its colour: the page follows the theme.+ const minimal = $derived(minimalLook());+ const tint = $derived(!minimal && (sampled || coverTint) ? tintOf(sampled || coverTint) : null);const tintStyle = $derived(tint ? `--al-bg:${tint.bg};--al-band:${tint.band};--al-soft:${tint.soft}` : '');// The whole window (side menu, top bar, page) takes the colour while the album shows. Between two albums it keeps the last colour until the next is known, and fades back to the normal look on leaving.$effect(() => {if (tint) paintWindow(tint);+ else if (minimal) unpaintWindow();});// Going on to another album keeps the colour until that album's is known (no flash between two).let toAlbum = false;@@ -158,7 +162,7 @@});function coverLoaded(e: Event) {coverIn = true;- sampled = sampleCover(e.currentTarget as HTMLImageElement);+ if (!minimal) sampled = sampleCover(e.currentTarget as HTMLImageElement);}const songs = $derived.by(() => {const n = list.length;@@ -275,7 +279,7 @@subtitle={[albumYear(a.release_date), kindWord(a)].filter(Boolean).join(' · ')} badges={a.explicit ? ['E'] : undefined} owned={owned(a)} />{/snippet}-<div class="album" class:tinted={!!tint} style={tintStyle} data-tint={tint?.bg ?? ''}>+<div class="album" class:tinted={!!tint} class:minimal style={tintStyle} data-tint={tint?.bg ?? ''}>{#if error && !data}<LoadError hasData={false} message={error} network={errorNet} onretry={load} {busy} />{/if}<PageLoader loading={!hero && !error} cached={fromCache} label={t('music.loadingThisAlbum')} onretry={load}>{#if hero && !(error && !data)}@@ -435,6 +439,22 @@.band { display: flex; flex-direction: column; gap: 28px; margin: 4px calc(var(--gutter) * -1) 0; padding: 28px var(--gutter) 56px; background: var(--al-band); border-top: 1px solid rgb(255 255 255 / 8%); transition: background-color var(--dur-slow) var(--ease-out); }.circles { display: flex; gap: 18px; overflow-x: auto; margin: 0; padding: 4px 2px 8px; list-style: none; scrollbar-width: none; }.sq-rail { --poster-ratio: 1; }+ /* Minimal: the theme's own colours instead of the dark cover palette, and a smaller cover. */+ .album.minimal { --al-bg: var(--bg); --al-band: var(--surface-2); --al-soft: var(--text-muted); --text: inherit; --text-muted: inherit; --surface-1: inherit; --surface-2: inherit; --accent: inherit; --border: inherit; color: var(--text); color-scheme: inherit; }+ .album.minimal .hero { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }+ .album.minimal .cover { width: 200px; background: var(--surface-2); box-shadow: 0 4px 14px rgb(0 0 0 / .16); }+ .album.minimal .by:hover, .album.minimal .t-have.in_library, .album.minimal .ed-link { color: var(--text); }+ .album.minimal .pill { background: var(--surface-2); color: var(--text); }+ .album.minimal .tracks li + li::before { background: var(--line); }+ .album.minimal .tracks li:hover, .album.minimal .tracks li:focus-within { background: var(--surface-2); }+ .album.minimal .band { border-top-color: var(--line); }+ :global(html:not([data-theme='dark'])) .album.minimal .actions :global(.ui-act) { background: color-mix(in srgb, var(--text) 7%, transparent); border-color: var(--line); color: var(--text); backdrop-filter: none; -webkit-backdrop-filter: none; }+ :global(html:not([data-theme='dark'])) .album.minimal .actions :global(.ui-act.primary), :global(html:not([data-theme='dark'])) .album.minimal .actions :global(.ui-act[aria-pressed='true']) { background: var(--text); border-color: var(--text); color: var(--bg); box-shadow: none; }+ :global(html:not([data-theme='dark'])) .album.minimal .actions :global(.ui-act:focus-visible) { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }+ @media (max-width: 767px) {+ .album.minimal .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }+ .album.minimal .cover { width: min(200px, 60vw); }+ }@media (max-width: 767px) {.album { --music-item: calc((100cqi - var(--shelf-gap, 12px)) / 2.3); gap: 24px; padding-top: 24px; }.hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 20px; }diff --git a/app/frontend/src/routes/people/[id]/+page.svelte b/app/frontend/src/routes/people/[id]/+page.svelteindex 1ad3f1f..3cf9c47 100644--- a/app/frontend/src/routes/people/[id]/+page.svelte+++ b/app/frontend/src/routes/people/[id]/+page.svelte@@ -29,6 +29,7 @@import { to } from '#lib/core/paths.ts';import { plainReason } from '#lib/core/plain.ts';import { setTopCrumbs } from '#lib/core/top-crumbs.svelte.ts';+ import { minimalLook } from '#lib/core/look.svelte.ts';import { autoplayHere, loadUISettings, trailerSources, type TrailerSource } from '#lib/core/trailer/autoplay.svelte.ts';import { HERO_DELAY } from '#lib/core/trailer/trailer.ts';import { fromHandoff, openTheater } from '#lib/core/trailer/theater.svelte.ts';@@ -173,9 +174,10 @@return { rows, wins: wins.length, noms, awards, paras, span, most, stills: aboutStills, wikiUrl: wiki.bio?.url ?? '' };});let still = $state(0);+ const minimal = $derived(minimalLook()); // The minimal look: no banner, no trailers, no colour from the art and plain About cards.$effect(() => {const n = about?.stills.length ?? 0;- if (!view || n < 2 || matchMedia('(prefers-reduced-motion: reduce)').matches) return;+ if (!view || minimal || n < 2 || matchMedia('(prefers-reduced-motion: reduce)').matches) return;const t = setInterval(() => (still = (still + 1) % n), 6000);return () => clearInterval(t);});@@ -241,6 +243,7 @@let slimOn = $state(false);// The top bar and the slim bar are one solid band in the person's colour.$effect(() => {+ if (minimal) return;const c = document.documentElement.classList;c.add('pbar');return () => c.remove('pbar');@@ -265,12 +268,12 @@let sampled = $state<string | null>(null);$effect(() => {const src = photo || hero;- if (!view || !src || sampled) return;+ if (!view || minimal || !src || sampled) return;const img = new Image();img.onload = () => (sampled = sampleCover(img));img.src = src;});- const tint = $derived(view && sampled ? tintOf(sampled) : null);+ const tint = $derived(view && !minimal && sampled ? tintOf(sampled) : null);$effect(() => {if (tint) {paintWindow(tint);@@ -292,7 +295,7 @@const m = top[clip % Math.max(1, top.length)];sources = [];clipOn = false;- if (view !== 2 || !m || clipDone) return;+ if (view !== 2 || minimal || !m || clipDone) return;const ctl = new AbortController();const t = setTimeout(() => {if (!autoplayHere()) return;@@ -321,7 +324,7 @@setTopCrumbs(null);</script>-<svelte:head><title>{data?.person.name ?? t('discover.people.person')} · HolyArrs</title>{#if hero}<link rel="preload" as="image" href={hero} />{/if}</svelte:head>+<svelte:head><title>{data?.person.name ?? t('discover.people.person')} · HolyArrs</title>{#if hero && !minimal}<link rel="preload" as="image" href={hero} />{/if}</svelte:head>{#snippet filmCard(m: PersonMovie)}<WideCard cover title={m.name} href={href(m)} image={m.backdrop || m.poster} kind="movie" subtitle={roleLine(m) || undefined} owned={owned(m)} preview={{ kind: 'movie', tmdb: m.ids.tmdb, year: m.year || undefined, titleId: m.title_id }}@@ -351,8 +354,8 @@<PageLoader loading={(!data || !(wikiDone || wikiWaited)) && !error} label={t('discover.people.loadingThisPerson')} onretry={load}>{#if data && (wikiDone || wikiWaited) && view}- <div class="ap" class:tinted={!!tint} style={tint ? `--ap-bg:${tint.bg};--ap-soft:${tint.soft}` : undefined}>- <header class="banner" bind:this={heroBox} style:--gone={gone.toFixed(3)} class:playing={clipOn} class:held={clipHeld} data-hero data-testid="person-banner">+ <div class="ap" class:tinted={!!tint} class:minimal style={tint ? `--ap-bg:${tint.bg};--ap-soft:${tint.soft}` : undefined}>+ {#if !minimal}<header class="banner" bind:this={heroBox} style:--gone={gone.toFixed(3)} class:playing={clipOn} class:held={clipHeld} data-hero data-testid="person-banner"><div class="stage" aria-hidden="true">{#if reel.length}<HeroMotion pictures={reel} paused={clipOn && !clipHeld} position="center 25%" onload={() => (heroIn = true)} />@@ -368,7 +371,7 @@<div class="b-shade" aria-hidden="true"></div><div class="dim" aria-hidden="true"></div>{#if view === 2 && clipOn && nowShowing}<a class="showing" href={href(nowShowing)}>{nowShowing.name}{nowShowing.year ? ` · ${nowShowing.year}` : ''}</a>{/if}- </header>+ </header>{/if}<div class="cline"><span class="photo">{#if photo}<img src={photo} alt="" fetchpriority="high" />{:else}<span class="initials">{data.person.name.split(' ').map((w) => w[0]).slice(0, 2).join('')}</span>{/if}</span>@@ -428,9 +431,8 @@{#if bio || facts.length}<section class="block"><h2>{t('discover.people.about2')}</h2>- <button type="button" class="acard" aria-haspopup="dialog" aria-label={t('discover.people.aboutReadMore', { name: data.person.name })} onclick={() => (aboutOpen = true)} onpointermove={(e) => { const b = e.currentTarget.getBoundingClientRect(); e.currentTarget.style.setProperty('--mx', `${((e.clientX - b.left) / b.width) * 100}%`); e.currentTarget.style.setProperty('--my', `${((e.clientY - b.top) / b.height) * 100}%`); }} data-testid="person-about">- {#each about?.stills ?? [] as src, i (src)}<img class="ab-frame" class:on={i === still % (about?.stills.length || 1)} {src} alt="" loading="lazy" decoding="async" />{/each}- <span class="a-glow" aria-hidden="true"></span>+ <button type="button" class="acard" class:minimal aria-haspopup="dialog" aria-label={t('discover.people.aboutReadMore', { name: data.person.name })} onclick={() => (aboutOpen = true)} onpointermove={(e) => { const b = e.currentTarget.getBoundingClientRect(); e.currentTarget.style.setProperty('--mx', `${((e.clientX - b.left) / b.width) * 100}%`); e.currentTarget.style.setProperty('--my', `${((e.clientY - b.top) / b.height) * 100}%`); }} data-testid="person-about">+ {#if !minimal}{#each about?.stills ?? [] as src, i (src)}<img class="ab-frame" class:on={i === still % (about?.stills.length || 1)} {src} alt="" loading="lazy" decoding="async" />{/each}<span class="a-glow" aria-hidden="true"></span>{/if}{#if wiki.badges[0]}<span class="disc" aria-hidden="true"><b>{wiki.badges[0].split(' ')[0]}</b><small>{wiki.badges[0].split(' ').slice(1).join(' ')}</small></span>{/if}<span class="a-foot"><span class="a-lis">{[stats?.films ? t('discover.people.filmsCount', { n: stats.films }) : '', yearsLine].filter(Boolean).join(' · ')}</span>@@ -442,9 +444,9 @@<Sheet bind:open={aboutOpen} title={t('discover.people.about', { name: data.person.name })} size="lg">{#if about}<div class="ab ab-{aboutView}" data-testid="person-about-sheet">- {#if aboutView !== 'dossier' && about.stills.length}- <figure class="ab-still">- {#each about.stills as src, i (src)}<img class="ab-frame" class:on={i === still % about.stills.length} {src} alt="" decoding="async" loading={i ? 'lazy' : 'eager'} />{/each}+ {#if aboutView !== 'dossier' && (minimal || about.stills.length)}+ <figure class="ab-still" class:plain={minimal}>+ {#if !minimal}{#each about.stills as src, i (src)}<img class="ab-frame" class:on={i === still % about.stills.length} {src} alt="" decoding="async" loading={i ? 'lazy' : 'eager'} />{/each}{/if}<figcaption>{#if photo}<img class="ab-face" src={photo} alt="" />{/if}<span><b>{data.person.name}</b>{#if lead}<small>{lead}</small>{/if}</span>@@ -636,6 +638,7 @@/* The top bar and the slim bar read as one solid band in the person's colour. */:global(html.pbar .ui-topbar), :global(html.pbar[data-tint] .ui-topbar) { background-color: var(--tint-bg, #1b1c20); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }:global(html.pbar) .slim { background: var(--tint-bg, #1b1c20); box-shadow: 0 10px 24px rgb(0 0 0 / .3); }+ /* Minimal: no banner, so the photo row is a plain header under the top bar, and the bars take the theme. */ .ap.minimal .cline { margin-top: 0; padding-top: 8px; } .ap.minimal .photo { box-shadow: var(--shadow-card); } .ap.minimal .initials { color: var(--text-muted); } .ap.minimal .slim { background: var(--bg); color: var(--text); border-bottom: 1px solid var(--line); box-shadow: none; } :global(html:not([data-theme='dark'])) .ap.minimal .acts :global(.ui-act) { background: color-mix(in srgb, var(--text) 7%, transparent); border-color: var(--line); color: var(--text); backdrop-filter: none; -webkit-backdrop-filter: none; } :global(html:not([data-theme='dark'])) .ap.minimal .acts :global(.ui-act.primary), :global(html:not([data-theme='dark'])) .ap.minimal .slim :global(.ui-act.primary) { background: var(--text); border-color: var(--text); color: var(--bg); box-shadow: none; } :global(html:not([data-theme='dark'])) .ap.minimal .acts :global(.ui-act:focus-visible) { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }.slim.on { opacity: 1; translate: 0 0; pointer-events: auto; }.s-photo { width: 32px; height: 48px; border-radius: 6px; object-fit: cover; object-position: center 20%; }.slim-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 22px/1.1 var(--font-display); letter-spacing: -.01em; }@@ -669,6 +672,7 @@.a-foot { position: absolute; left: 28px; right: 28px; bottom: 26px; display: flex; flex-direction: column; gap: 8px; }.a-lis { font: 700 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; opacity: .8; }.a-bio { font: 500 19px/1.45 var(--font-ui); color: rgb(255 255 255 / .9); text-shadow: 0 1px 12px rgb(0 0 0 / .35); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 72ch; }+ /* Minimal: a plain card in the theme's colours, the text in the flow. */ .acard.minimal { display: flex; align-items: center; gap: 20px; height: auto; padding: 20px; background: var(--surface-1); color: var(--text); box-shadow: 0 0 0 1px var(--line); } .acard.minimal::after { content: none; } .acard.minimal:focus-visible { box-shadow: var(--focus-ring); } .acard.minimal .disc { position: static; flex: none; box-shadow: none; } .acard.minimal .a-foot { position: static; min-width: 0; } .acard.minimal .a-bio { color: var(--text); text-shadow: none; } .acard.minimal .a-more { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; } .acard.minimal:hover .a-more { background: var(--line); }.s-facts { margin: 0 0 12px; color: var(--text-muted); font: var(--t-subhead); }.s-bio { margin: 0; font: var(--t-body); line-height: 1.6; white-space: pre-line; }.circles { display: flex; gap: 20px; overflow-x: auto; margin: 0; padding: 4px 2px 8px; list-style: none; scrollbar-width: none; }@@ -707,6 +711,7 @@.ab-still figcaption span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }.ab-still b { font: 800 clamp(24px, 3vw, 34px)/1 var(--font-display); letter-spacing: -.02em; }.ab-still small { font: 600 14px/1.3 var(--font-ui); opacity: .82; }+ /* Minimal: the face and the name as a plain row, no stills. */ .ab-still.plain { aspect-ratio: auto; border-radius: 0; box-shadow: none; overflow: visible; background: none; animation: none; } .ab-still.plain::after { content: none; } .ab-still.plain figcaption { position: static; color: var(--text); } .ab-still.plain .ab-face { box-shadow: 0 0 0 1px var(--line); } :global(html[data-look='minimal'] .ui-sheet:has(.ab)) { --text: inherit; --text-muted: inherit; --surface-1: inherit; --surface-2: inherit; --line: inherit; --border: inherit; color-scheme: inherit; color: var(--text); background: var(--surface-1); box-shadow: var(--shadow-modal); } :global(html[data-look='minimal']) .ab-tiles div { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; } :global(html[data-look='minimal']) .ab-tiles div:hover { background: var(--surface-3, var(--surface-2)); } :global(html[data-look='minimal']) .ab-bio p, :global(html[data-look='minimal']) .ab-bio p.lead { color: var(--text); }.ab-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }.ab-tiles div { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 16px; background: rgb(255 255 255 / 7%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%), inset 0 1px 0 rgb(255 255 255 / 10%); backdrop-filter: blur(24px) saturate(160%); transition: background var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out); }.ab-tiles div:hover { background: rgb(255 255 255 / 11%); translate: 0 -1px; }@@ -786,7 +791,7 @@.disc { width: 76px; height: 76px; top: 14px; left: 14px; }.disc b { font-size: 21px; }.a-foot { left: 16px; right: 16px; bottom: 16px; }- .a-bio { font-size: 17px; }+ .a-bio { font-size: 17px; } .acard.minimal { height: auto; gap: 14px; padding: 16px; }.person { --title-item: calc((100cqi - var(--shelf-gap, 12px)) / 1.6 / .78); gap: 26px; }.hero-in { grid-template-columns: 96px minmax(0, 1fr); }.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }diff --git a/app/frontend/src/routes/popular/+page.svelte b/app/frontend/src/routes/popular/+page.svelteindex 1deac2d..47784cc 100644--- a/app/frontend/src/routes/popular/+page.svelte+++ b/app/frontend/src/routes/popular/+page.svelte@@ -293,7 +293,7 @@{:else}{#if hero.length}{@const h = live(hero[heroAt % hero.length])}- <ExploreHero kind={h.kind === 'show' ? 'show' : 'movie'} tmdb={cardTmdb(h)} title={h.name} href={cardHref(h)} backdrop={h.wide ?? h.image} vtName={h.vtName} subtitle={h.year ? (h.kind === 'show' ? t('discover.popular.yearShow', { year: h.year }) : t('discover.popular.yearMovie', { year: h.year })) : h.subtitle} settled={loaded}>+ <ExploreHero kind={h.kind === 'show' ? 'show' : 'movie'} tmdb={cardTmdb(h)} title={h.name} href={cardHref(h)} backdrop={h.wide ?? h.image} poster={h.image} vtName={h.vtName} subtitle={h.year ? (h.kind === 'show' ? t('discover.popular.yearShow', { year: h.year }) : t('discover.popular.yearMovie', { year: h.year })) : h.subtitle} settled={loaded}>{#snippet action()}{@render hoverAction(h, cardAction(h, { manage, ask: mayAsk }), null)}{/snippet}{#snippet badge()}{@const why = heroWhy(h)}diff --git a/app/frontend/src/routes/settings/(home)/settings-search.ts b/app/frontend/src/routes/settings/(home)/settings-search.tsindex 9464fe7..47728b4 100644--- a/app/frontend/src/routes/settings/(home)/settings-search.ts+++ b/app/frontend/src/routes/settings/(home)/settings-search.ts@@ -41,6 +41,7 @@ export const entryWords = (entry: SettingEntry): string => (entry.id ? said(`${eexport const settingIndex: SettingEntry[] = [e('/settings/appearance', 'theme', 'Theme', 'appearance light dark automatic mode colours colors night'),+ e('/settings/appearance', 'look', 'Look', 'minimal plain simple calm no photos no glow autoplay'),e('/settings/appearance', 'language', 'Language', 'language translation locale english words'),e('/settings/appearance', 'autoplay-trailers', 'Play trailers by themselves', 'autoplay trailers video explore muted'),e('/settings/appearance', 'signin-art', 'Show Library art on the sign-in page', 'sign-in login page background posters art'),diff --git a/app/frontend/src/routes/settings/+layout.svelte b/app/frontend/src/routes/settings/+layout.svelteindex 07c2adc..a02e899 100644--- a/app/frontend/src/routes/settings/+layout.svelte+++ b/app/frontend/src/routes/settings/+layout.svelte@@ -10,6 +10,7 @@import { wall } from './(home)/pick.ts';import { arrive, coverPage, push, settingsNav, swap } from './(home)/zoom.ts';import { backdrop } from '#lib/accounts/index.ts';+ import { minimalLook } from '#lib/core/look.svelte.ts';import { partsNow, offPartName } from '#lib/mediafiles/index.ts';import { settingsNow, refreshSettingsStatus, pageState, stateWords } from '#lib/alerts/index.ts';import type { Snippet } from 'svelte';@@ -159,7 +160,7 @@{/snippet}<!-- Background: this Library's posters, blurred and dimmed, still. -->-{#if tiles.length && home && backdrop.value === 'posters'}+{#if tiles.length && home && backdrop.value === 'posters' && !minimalLook()}<div class="sx-wall" aria-hidden="true" data-poster-wall><div class="tiles">{#each tiles as src, i (i)}<img {src} alt="" decoding="async" />{/each}</div><div class="veil"></div>diff --git a/app/frontend/src/routes/settings/appearance/+page.svelte b/app/frontend/src/routes/settings/appearance/+page.svelteindex 9dca411..f621c3b 100644--- a/app/frontend/src/routes/settings/appearance/+page.svelte+++ b/app/frontend/src/routes/settings/appearance/+page.svelte@@ -12,6 +12,7 @@import { session } from '#lib/core/session.svelte.ts';import { toasts } from '#lib/core/toasts.svelte.ts';import { setAutoplaySetting } from '#lib/core/trailer/autoplay.svelte.ts';+ import { look, setLook, minimalLook, type Look } from '#lib/core/look.svelte.ts';const aboutGroups = ['Information', 'Production', 'Links', 'Ratings', 'Feel'] as const;const isDefault = $derived(!ratingPicks.custom && ratingPicks.list.length === DEFAULT_RATINGS.length && DEFAULT_RATINGS.every((r) => ratingPicks.list.includes(r)));@@ -21,6 +22,11 @@{ value: 'plain', label: t('settings.appearance.plain') },{ value: 'posters', label: t('settings.appearance.posterWall') }]);+ let lookChoice = $state<Look>(look.value);+ const looks = $derived<{ value: Look; label: string }[]>([+ { value: 'full', label: t('settings.appearance.lookFull') },+ { value: 'minimal', label: t('settings.appearance.lookMinimal') }+ ]);const themes = $derived<{ value: ThemeChoice; label: string; icon: 'sun' | 'moon' | 'settings' }[]>([{ value: 'light', label: t('settings.appearance.light'), icon: 'sun' },{ value: 'dark', label: t('settings.appearance.dark'), icon: 'moon' },@@ -99,6 +105,12 @@</div></SettingsCard>+<SettingsCard id="look-card" title={t('settings.appearance.look')} description={t('settings.appearance.lookDesc')} icon="appearance">+ <div id="look" tabindex="-1">+ <SegmentedControl label={t('settings.appearance.look')} options={looks} bind:value={lookChoice} onchange={(v) => setLook(v)} />+ </div>+</SettingsCard>+<SettingsCard id="language-card" title={t('accounts.language.label')} description={t('accounts.language.hint')} icon="appearance"><LanguagePicker id="language" /></SettingsCard>@@ -106,6 +118,7 @@<SettingsCard id="backdrop-card" title={t('settings.appearance.background')} description={t('settings.appearance.backgroundDesc')} icon="appearance"><div id="backdrop" tabindex="-1"><SegmentedControl label={t('settings.appearance.background')} options={backdrops} bind:value={backdropChoice} onchange={(v) => setBackdrop(v)} />+ {#if minimalLook()}<p class="look-hint" data-testid="wall-off-minimal">{t('settings.appearance.wallOffMinimal')}</p>{/if}</div></SettingsCard>@@ -183,5 +196,6 @@.picks { display: flex; flex-direction: column; gap: 0; margin: 0; padding-block: 0 !important; list-style: none; box-shadow: none !important; }.picks > li { padding: 6px 0; }.picks > li + li { box-shadow: inset 0 1px 0 var(--line); }+ .look-hint { margin: 8px 0 0; color: var(--text-muted); font: var(--t-subhead); }.motion-line { margin: 0; padding-block: 14px; color: var(--text-muted); font: var(--t-subhead); }</style>diff --git a/app/frontend/src/routes/settings/move/+page.svelte b/app/frontend/src/routes/settings/move/+page.svelteindex 3ff9b1e..0b0f8d0 100644--- a/app/frontend/src/routes/settings/move/+page.svelte+++ b/app/frontend/src/routes/settings/move/+page.svelte@@ -87,6 +87,8 @@let others = $state<Record<string, string>>({});let extra = $state<PathRule[]>([]);let suggested = $state<Record<string, string>>({});+ let missingPaths = $state<Record<string, string>>({});+ let seenFolders = $state<string[]>([]);let skip = $state<string[]>([]);let people = $state<Record<string, PersonChoice>>({});let changes = $state(0);@@ -420,6 +422,10 @@set plan(v) { plan = v; },get suggested() { return suggested; },set suggested(v) { suggested = v; },+ get missingPaths() { return missingPaths; },+ set missingPaths(v) { missingPaths = v; },+ get seenFolders() { return seenFolders; },+ set seenFolders(v) { seenFolders = v; },get picks() { return picks; },set picks(v) { picks = v; },get extra() { return extra; },@@ -539,6 +545,7 @@planHash = '';plan = null;suggested = {};+ missingPaths = {};tryNotice = '';enter('read');}@@ -644,6 +651,8 @@{extra}{extraErrors}{suggested}+ missing={missingPaths}+ seen={seenFolders}{skip}{people}onfolder={planFlow.onfolder}diff --git a/app/frontend/src/routes/settings/pick-rules/[id]/+page.svelte b/app/frontend/src/routes/settings/pick-rules/[id]/+page.svelteindex 15e442e..36ad879 100644--- a/app/frontend/src/routes/settings/pick-rules/[id]/+page.svelte+++ b/app/frontend/src/routes/settings/pick-rules/[id]/+page.svelte@@ -216,6 +216,7 @@kinds: 'pr-kinds',steps: 'pr-steps',good_enough_at: 'pr-good-enough',+ good_enough_points: 'pr-good-enough-points',traits: 'pr-traits',must_have: 'pr-must-add',never: 'pr-never-add',@@ -350,6 +351,9 @@{#each [...ladderOn].reverse() as s (s.quality)}<option value={s.quality}>{stepLabel(s.quality)}</option>{/each}</select></Field>+ <Field id="pr-good-enough-points" label={t('settings.pickRuleEdit.goodEnoughPoints')} hint={t('settings.pickRuleEdit.goodEnoughPointsHint')} error={errors.good_enough_points}>+ <input id="pr-good-enough-points" class="input narrow" type="number" min="-10000" max="10000" step="1" bind:value={form.body.good_enough_points} {...bad('good_enough_points')} />+ </Field></SettingsCard>{#snippet options(list: string[])}diff --git a/app/tests/whole-app/settings.spec.ts b/app/tests/whole-app/settings.spec.tsindex 85136ca..a1f1a85 100644--- a/app/tests/whole-app/settings.spec.ts+++ b/app/tests/whole-app/settings.spec.ts@@ -73,6 +73,20 @@ test('a failed trailers save puts the switch back and says why, in plain words',await page.unroute('**/api/v1/settings/ui');});+test('the minimal look is saved in this browser, lasts a reload, and Full brings the full look back', async () => {+ await page.goto('/settings/appearance');+ const looks = page.locator('#look');+ await looks.getByRole('radio', { name: 'Minimal' }).click();+ await expect(page.locator('html')).toHaveAttribute('data-look', 'minimal');+ await expect(page.getByTestId('wall-off-minimal')).toBeVisible();+ await page.reload();+ await expect(page.locator('html')).toHaveAttribute('data-look', 'minimal');+ await expect(looks.getByRole('radio', { name: 'Minimal' })).toHaveAttribute('aria-checked', 'true');+ await looks.getByRole('radio', { name: 'Full' }).click();+ await expect(page.locator('html')).not.toHaveAttribute('data-look', /./);+ await expect(page.getByTestId('wall-off-minimal')).toHaveCount(0);+});+test('search by another word, and the keyboard reaches the result', async () => {await page.goto('/settings');const box = page.getByTestId('search-box');diff --git a/docs/library/folders.md b/docs/library/folders.mdindex 5810b86..ad88e31 100644--- a/docs/library/folders.md+++ b/docs/library/folders.md@@ -44,7 +44,9 @@ Under 100 MB free adds a low space note. Imports work until the disk fills.**Rename** changes the name you see. Nothing moves on disk.-The trash button removes the folder from HolyArrs and leaves every file in place. HolyArrs refuses while titles use the folder. Move those titles first.+The trash button removes the folder from HolyArrs and leaves every file in place. HolyArrs refuses while titles in the Library use the folder. Move those titles first. Titles you deleted from the Library don't count. They stay in History.++HolyArrs also keeps the folder while deleted files in it can still be restored from **Recently deleted**. Remove it once their holding days are over, or delete its `.holyarrs-replaced` folder on disk. A folder that is gone from disk has nothing left to restore, so it can always be removed once no title in the Library uses it.## If it does not work@@ -60,7 +62,7 @@ The trash button removes the folder from HolyArrs and leaves every file in place**Fix:** set `HOLYARRS_SAVE_PATH`, or add the download folder, such as `/downloads`, under **Extra import folders**.**Symptom:** cannot remove a folder.-**Fix:** move its titles to another folder first.+**Fix:** move its titles to another folder first. If it says deleted files can still be restored, wait until their holding days are over, or delete the folder's `.holyarrs-replaced` folder on disk. If an outside list adds to it, point that list at another folder.## For experts