One self-hosted app for your shows, movies and music.
HolyArrs 1.0.9 (#192)
CoderLuii33d46681031a
diff --git a/.github/readme/README.ar.md b/.github/readme/README.ar.mdindex f2766a4..30fc49f 100644--- a/.github/readme/README.ar.md+++ b/.github/readme/README.ar.md@@ -202,7 +202,7 @@ docker compose up -d| الوسم | استخدمه لـ || :----: | --- || `latest` | أحدث إصدار. |-| `1.0.8` | إصدار واحد بعينه. لا يتحرك أبدًا. |+| `1.0.9` | إصدار واحد بعينه. لا يتحرك أبدًا. |## الاستخدامdiff --git a/.github/readme/README.de.md b/.github/readme/README.de.mdindex 69b5462..e64bd00 100644--- a/.github/readme/README.de.md+++ b/.github/readme/README.de.md@@ -200,7 +200,7 @@ Die Images liegen auf Docker Hub als [`holyarrs/holyarrs`](https://hub.docker.co| Tag | Dafür nutzen || :----: | --- || `latest` | Die neueste Version. |-| `1.0.8` | Eine genaue Version. Sie ändert sich nie. |+| `1.0.9` | Eine genaue Version. Sie ändert sich nie. |## Verwendungdiff --git a/.github/readme/README.es.md b/.github/readme/README.es.mdindex a346aa6..dfd7e93 100644--- a/.github/readme/README.es.md+++ b/.github/readme/README.es.md@@ -200,7 +200,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.8` | Una versión exacta. Nunca se mueve. |+| `1.0.9` | Una versión exacta. Nunca se mueve. |## Usodiff --git a/.github/readme/README.fr.md b/.github/readme/README.fr.mdindex e81ef0f..3ae3a55 100644--- a/.github/readme/README.fr.md+++ b/.github/readme/README.fr.md@@ -200,7 +200,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.8` | Une version précise. Elle ne bouge jamais. |+| `1.0.9` | Une version précise. Elle ne bouge jamais. |## Utilisationdiff --git a/.github/readme/README.hi.md b/.github/readme/README.hi.mdindex f469682..a2dc80d 100644--- a/.github/readme/README.hi.md+++ b/.github/readme/README.hi.md@@ -200,7 +200,7 @@ NAS पर चला रहे हैं? देखिए [Unraid, Synology औ| टैग | किसके लिए || :----: | --- || `latest` | नवीनतम रिलीज़। |-| `1.0.8` | एक तय वर्ज़न। यह कभी नहीं बदलता। |+| `1.0.9` | एक तय वर्ज़न। यह कभी नहीं बदलता। |## इस्तेमालdiff --git a/.github/readme/README.it.md b/.github/readme/README.it.mdindex 157ac97..e804c1d 100644--- a/.github/readme/README.it.md+++ b/.github/readme/README.it.md@@ -200,7 +200,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.8` | Una versione esatta. Non cambia mai. |+| `1.0.9` | Una versione esatta. Non cambia mai. |## Utilizzodiff --git a/.github/readme/README.ja.md b/.github/readme/README.ja.mdindex 74d3e79..438fbad 100644--- a/.github/readme/README.ja.md+++ b/.github/readme/README.ja.md@@ -200,7 +200,7 @@ NAS をお使いですか。[Unraid、Synology などの NAS](https://docs.HolyA| タグ | 用途 || :----: | --- || `latest` | 最新のリリース。 |-| `1.0.8` | 特定の1つのバージョンです。動くことはありません。 |+| `1.0.9` | 特定の1つのバージョンです。動くことはありません。 |## 使い方diff --git a/.github/readme/README.ko.md b/.github/readme/README.ko.mdindex b6dd0e6..0be3cd2 100644--- a/.github/readme/README.ko.md+++ b/.github/readme/README.ko.md@@ -200,7 +200,7 @@ NAS를 쓰세요? [Unraid, Synology 및 기타 NAS](https://docs.HolyArrs.com/ru| 태그 | 용도 || :----: | --- || `latest` | 최신 릴리스. |-| `1.0.8` | 정확히 한 버전이에요. 절대 움직이지 않아요. |+| `1.0.9` | 정확히 한 버전이에요. 절대 움직이지 않아요. |## 사용법diff --git a/.github/readme/README.nl.md b/.github/readme/README.nl.mdindex 18a52d9..f8aaa3e 100644--- a/.github/readme/README.nl.md+++ b/.github/readme/README.nl.md@@ -200,7 +200,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.8` | Eén exacte versie. Die verandert nooit. |+| `1.0.9` | Eén exacte versie. Die verandert nooit. |## Gebruikdiff --git a/.github/readme/README.pl.md b/.github/readme/README.pl.mdindex 140bab3..0381773 100644--- a/.github/readme/README.pl.md+++ b/.github/readme/README.pl.md@@ -200,7 +200,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.8` | Jedna dokładna wersja. Nigdy się nie zmienia. |+| `1.0.9` | 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 a461f6a..bb73274 100644--- a/.github/readme/README.pt-BR.md+++ b/.github/readme/README.pt-BR.md@@ -200,7 +200,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.8` | Uma versão exata. Nunca muda. |+| `1.0.9` | Uma versão exata. Nunca muda. |## Usodiff --git a/.github/readme/README.ru.md b/.github/readme/README.ru.mdindex 35ed3b3..23b8bd1 100644--- a/.github/readme/README.ru.md+++ b/.github/readme/README.ru.md@@ -200,7 +200,7 @@ HolyArrs только читает ваши старые приложения и| Тег | Для чего || :----: | --- || `latest` | Самая новая версия. |-| `1.0.8` | Одна точная версия. Никогда не сдвигается. |+| `1.0.9` | Одна точная версия. Никогда не сдвигается. |## Использованиеdiff --git a/.github/readme/README.tr.md b/.github/readme/README.tr.mdindex 35ad099..5c8040f 100644--- a/.github/readme/README.tr.md+++ b/.github/readme/README.tr.md@@ -200,7 +200,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.8` | Tam olarak tek bir sürüm. Asla değişmez. |+| `1.0.9` | 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 09b1424..d9ce074 100644--- a/.github/readme/README.uk.md+++ b/.github/readme/README.uk.md@@ -200,7 +200,7 @@ HolyArrs лише читає твої старі застосунки й ніч| Тег | Для чого || :----: | --- || `latest` | Найновіша версія. |-| `1.0.8` | Одна точна версія. Вона ніколи не змінюється. |+| `1.0.9` | Одна точна версія. Вона ніколи не змінюється. |## Використанняdiff --git a/.github/readme/README.zh-CN.md b/.github/readme/README.zh-CN.mdindex c91e4c6..4946c1c 100644--- a/.github/readme/README.zh-CN.md+++ b/.github/readme/README.zh-CN.md@@ -200,7 +200,7 @@ HolyArrs 只读取你的旧应用,不会改动它们里面的任何东西,| 标签 | 用途 || :----: | --- || `latest` | 最新版本。 |-| `1.0.8` | 固定的某一个版本,永远不会变。 |+| `1.0.9` | 固定的某一个版本,永远不会变。 |## 用法diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ef5225d..5edc4c1 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.9++### Added++- Library > Add > Import from a folder opens the page to match a title by hand. ([#183](https://github.com/HolyArrs/HolyArrs/issues/183))++### Fixed++- A Source that searches through Prowlarr or Jackett says when that app isn't answering. ([#179](https://github.com/HolyArrs/HolyArrs/issues/179))+- Sources from Prowlarr and Jackett read the right feed address. ([#180](https://github.com/HolyArrs/HolyArrs/issues/180))+- Settings > Subtitles no longer shows "404 page not found". ([#182](https://github.com/HolyArrs/HolyArrs/issues/182))+- Files a scan saved before the episodes were known can now be imported by hand. ([#185](https://github.com/HolyArrs/HolyArrs/issues/185))+- Home hides the Requests box while Requests is turned off. ([#186](https://github.com/HolyArrs/HolyArrs/issues/186))+- Deleting a title asks you to type its name only when the files go for good. ([#187](https://github.com/HolyArrs/HolyArrs/issues/187))+- Importing a large Lidarr library works. ([#188](https://github.com/HolyArrs/HolyArrs/issues/188))+- Drop-down lists are readable in dark mode. ([#190](https://github.com/HolyArrs/HolyArrs/issues/190))+## 1.0.8### Addeddiff --git a/README.md b/README.mdindex 599d319..fb92d18 100644--- a/README.md+++ b/README.md@@ -200,7 +200,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.8` | One exact version. It never moves. |+| `1.0.9` | One exact version. It never moves. |## Usagediff --git a/VERSION b/VERSIONindex b0f3d96..66c4c22 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-1.0.8+1.0.9diff --git a/app/backend/internal/importer/manual.go b/app/backend/internal/importer/manual.goindex 9b02a8d..ea8ff4d 100644--- a/app/backend/internal/importer/manual.go+++ b/app/backend/internal/importer/manual.go@@ -123,7 +123,7 @@ func libraryFile(ctx context.Context, db *sql.DB, folders []mediafiles.LibraryFo}var n intif 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'`, 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 != '[]'`, lf.ID, filepath.ToSlash(rel)).Scan(&n) == nil && n > 0 {return true}}@@ -550,6 +550,10 @@ 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 {+ return err+ }id, err := database.Insert(tx, "files", f, by)if err != nil {return errdiff --git a/app/backend/internal/migrate/albums_by_artist_test.go b/app/backend/internal/migrate/albums_by_artist_test.gonew file mode 100644index 0000000..05deb8d--- /dev/null+++ b/app/backend/internal/migrate/albums_by_artist_test.go@@ -0,0 +1,33 @@+package migrate++import (+ "context"+ "fmt"+ "net/http"+ "net/http/httptest"+ "testing"+)++// A Lidarr whose whole album list is too big is read one artist at a time.+func TestAlbumsReadPerArtist(t *testing.T) {+ srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {+ w.Header().Set("Content-Type", "application/json")+ id := r.URL.Query().Get("artistId")+ if id == "" {+ t.Fatal("asked for every album at once")+ }+ fmt.Fprintf(w, `[{"id":%s0,"artistId":%s,"title":"a"}]`, id, id)+ }))+ defer srv.Close()+ c, err := newAPIClient(Source{Kind: Lidarr, URL: srv.URL, AllowLocal: true, Limits: Limits{MaxAnswer: 4096}}, nil)+ if err != nil {+ t.Fatal(err)+ }+ got, err := (arrReader{kind: Lidarr}).albumsByArtist(context.Background(), c, []map[string]any{{"id": float64(1)}, {"id": float64(2)}})+ if err != nil {+ t.Fatal(err)+ }+ if n := len(got.([]any)); n != 2 {+ t.Fatalf("want 2 albums, got %d", n)+ }+}diff --git a/app/backend/internal/migrate/arr.go b/app/backend/internal/migrate/arr.goindex 1a8987c..c7ed938 100644--- a/app/backend/internal/migrate/arr.go+++ b/app/backend/internal/migrate/arr.go@@ -231,6 +231,10 @@ func (r arrReader) fromAPI(ctx context.Context, src Source) (*arrRows, error) {break}}+ // A large Lidarr answers its whole album list in one piece; read it artist by artist instead.+ if s.name == "albums" && errors.Is(lastErr, ErrTooBig) {+ got, lastErr = r.albumsByArtist(ctx, c, out.sets["titles"])+ }if lastErr != nil {if s.needed || !errors.Is(lastErr, ErrBadAnswer) {return nil, lastErr@@ -430,3 +434,20 @@ func first(m map[string]any, keys ...string) any {}return nil}++// albumsByArtist reads Lidarr's albums one artist at a time.+func (r arrReader) albumsByArtist(ctx context.Context, c *apiClient, artists []map[string]any) (any, error) {+ all := []any{}+ for _, a := range artists {+ var got []any+ q := url.Values{"artistId": {strconv.FormatInt(num(a["id"]), 10)}}+ if err := c.getJSON(ctx, r.apiBase()+"/album", q, &got); err != nil {+ return nil, err+ }+ all = append(all, got...)+ if len(all) > c.lim.MaxRows {+ return nil, ErrTooBig+ }+ }+ return all, nil+}diff --git a/app/backend/internal/migrate/feed_path_test.go b/app/backend/internal/migrate/feed_path_test.gonew file mode 100644index 0000000..2e90dde--- /dev/null+++ b/app/backend/internal/migrate/feed_path_test.go@@ -0,0 +1,26 @@+package migrate++import "testing"++// An indexer the old app reaches through Prowlarr or Jackett keeps its+// feed path, as the old app calls it: base address plus "/api".+func TestImportedProwlarrSiteKeepsItsFeedPath(t *testing.T) {+ for base, want := range map[string]string{+ "http://192.168.1.36:9696/5/": "http://192.168.1.36:9696/5/api",+ "http://192.168.1.36:9696/5/api": "http://192.168.1.36:9696/5/api",+ "http://jackett:9117/api/v2.0/indexers/x/results/torznab/": "http://jackett:9117/api/v2.0/indexers/x/results/torznab/api",+ } {+ ix := Provider{ID: 1, Name: "Nyaa.si (Prowlarr)", Kind: "Torznab", Enabled: true, Priority: 25,+ Settings: map[string]any{"baseUrl": base, "apiPath": "/api"}, NeedsReentry: []string{"apiKey"}}+ p := BuildPlan([]Input{{1, &Snapshot{Kind: Sonarr, Indexers: []Provider{ix}}}}, Choices{})+ var got string+ for _, it := range p.Group(GroupSources).Items {+ if it.Source != nil {+ got = it.Source.URL+ }+ }+ if got != want {+ t.Errorf("%s: imported as %q, want %q", base, got, want)+ }+ }+}diff --git a/app/backend/internal/migrate/plan_services.go b/app/backend/internal/migrate/plan_services.goindex 23e7e81..438e2e5 100644--- a/app/backend/internal/migrate/plan_services.go+++ b/app/backend/internal/migrate/plan_services.go@@ -108,8 +108,17 @@ func (b *builder) indexers(s *Snapshot) {b.not(GroupSources, from, ix.Name, "a link-local or cloud metadata address; HolyArrs never reaches those")continue}- if p := setStr(ix.Settings, "apiPath"); format != "rss" && p != "" && p != "/api" {- u = strings.TrimSuffix(u, "/") + "/" + strings.TrimPrefix(clip(p, 100), "/")+ // The old apps call the address plus its feed path ("/api" unless+ // set), as Prowlarr's per-site addresses (http://prowlarr:9696/5/)+ // need. A path the address already ends in is not added twice.+ if format != "rss" {+ p := strings.Trim(clip(setStr(ix.Settings, "apiPath"), 100), "/")+ if p == "" {+ p = "api"+ }+ if base := strings.TrimSuffix(u, "/"); !strings.HasSuffix(base, "/"+p) {+ u = base + "/" + p+ }}protocol := "torrent"if format == "newznab" || ix.Protocol == "usenet" {diff --git a/app/backend/internal/migrate/plan_test.go b/app/backend/internal/migrate/plan_test.goindex 5fe9e20..4d48471 100644--- a/app/backend/internal/migrate/plan_test.go+++ b/app/backend/internal/migrate/plan_test.go@@ -295,7 +295,7 @@ func TestPlanMapsEachGroup(t *testing.T) {if src.Source.Format != "torznab" || !src.Source.NeedsKey || *src.Source.MinSeeders != 2 || src.Needs != "your key" || src.Source.Categories["movie"][0] != 2000 {t.Fatalf("source %+v", src.Source)}- if g := item(t, p, GroupSources, "source:nzbgeek").Source; g.Format != "newznab" || g.Protocol != "usenet" || g.URL != "https://api.nzbgeek.example" {+ if g := item(t, p, GroupSources, "source:nzbgeek").Source; g.Format != "newznab" || g.Protocol != "usenet" || g.URL != "https://api.nzbgeek.example/api" {t.Fatalf("newznab %+v", g)}if _, ok := notMoved(p, "radarr indexers[1]"); !ok {diff --git a/app/backend/internal/sources/client.go b/app/backend/internal/sources/client.goindex a37e66d..51ec9e1 100644--- a/app/backend/internal/sources/client.go+++ b/app/backend/internal/sources/client.go@@ -9,6 +9,7 @@ import ("net""net/http""net/url"+ "regexp""strconv""strings""sync"@@ -670,12 +671,20 @@ func parseItems(body []byte, protocol string) ([]Item, error) {return out, nil}-// feedAddress is a Newznab or Torznab address ready to call: an address-// with no path (https://indexer.example) means its /api.+// feedAddress is a Newznab or Torznab address ready to call. An address+// with no path (https://indexer.example) means its /api, and so do a+// Prowlarr site address (http://prowlarr:9696/5) and a Jackett one+// (.../results/torznab) saved without it by earlier versions.func feedAddress(raw string) string {raw = strings.TrimRight(raw, "/")- if u, err := url.Parse(raw); err == nil && u.Host != "" && u.Path == "" && u.RawQuery == "" {+ u, err := url.Parse(raw)+ if err != nil || u.Host == "" || u.RawQuery != "" {+ return raw+ }+ if u.Path == "" || prowlarrSitePath.MatchString(u.Path) || strings.HasSuffix(u.Path, "/results/torznab") {return raw + "/api"}return raw}++var prowlarrSitePath = regexp.MustCompile(`^/[0-9]+$`)diff --git a/app/backend/internal/sources/explain_via_test.go b/app/backend/internal/sources/explain_via_test.gonew file mode 100644index 0000000..12f310e--- /dev/null+++ b/app/backend/internal/sources/explain_via_test.go@@ -0,0 +1,22 @@+package sources++import (+ "errors"+ "strings"+ "testing"+)++// A Source that searches through Prowlarr or Jackett names that app when it cannot be reached.+func TestExplainViaNamesTheBridge(t *testing.T) {+ down := errors.New("dial tcp 192.168.1.36:9696: connect: connection refused")+ for addr, want := range map[string]string{+ "http://192.168.1.36:9696/12/api": "Prowlarr isn't answering",+ "http://192.168.1.36:9696/12": "Prowlarr isn't answering",+ "http://jackett:9117/api/v2.0/indexers/nyaa/results/torznab/": "Jackett isn't answering",+ "https://indexer.example/api": "HolyArrs could not reach the Source",+ } {+ if got := ExplainVia(addr, down); !strings.HasPrefix(got, want) {+ t.Errorf("%s: got %q, want it to start %q", addr, got, want)+ }+ }+}diff --git a/app/backend/internal/sources/feed_address_test.go b/app/backend/internal/sources/feed_address_test.goindex a23f200..c94bd68 100644--- a/app/backend/internal/sources/feed_address_test.go+++ b/app/backend/internal/sources/feed_address_test.go@@ -5,12 +5,17 @@ import "testing"// An address with no path calls /api; anything else is left alone.func TestFeedAddress(t *testing.T) {for in, want := range map[string]string{- "https://indexer.example": "https://indexer.example/api",- "https://indexer.example/": "https://indexer.example/api",- "https://indexer.example/api": "https://indexer.example/api",- "http://prowlarr:9696/1/api": "http://prowlarr:9696/1/api",- "http://jackett:9117/api/v2.0/x/": "http://jackett:9117/api/v2.0/x",- "https://indexer.example/feed?t=x": "https://indexer.example/feed?t=x",+ "https://indexer.example": "https://indexer.example/api",+ "https://indexer.example/": "https://indexer.example/api",+ "https://indexer.example/api": "https://indexer.example/api",+ "http://prowlarr:9696/1/api": "http://prowlarr:9696/1/api",+ "http://jackett:9117/api/v2.0/x/": "http://jackett:9117/api/v2.0/x",+ "https://indexer.example/feed?t=x": "https://indexer.example/feed?t=x",+ "http://192.168.1.36:9696/5": "http://192.168.1.36:9696/5/api",+ "http://192.168.1.36:9696/5/": "http://192.168.1.36:9696/5/api",+ "http://192.168.1.36:9696/5/api": "http://192.168.1.36:9696/5/api",+ "http://jackett:9117/api/v2.0/indexers/x/results/torznab": "http://jackett:9117/api/v2.0/indexers/x/results/torznab/api",+ "http://jackett:9117/api/v2.0/indexers/x/results/torznab/": "http://jackett:9117/api/v2.0/indexers/x/results/torznab/api",} {if got := feedAddress(in); got != want {t.Errorf("feedAddress(%q) = %q, want %q", in, got, want)diff --git a/app/backend/internal/sources/routes_check.go b/app/backend/internal/sources/routes_check.goindex 697b4d8..80cfbb7 100644--- a/app/backend/internal/sources/routes_check.go+++ b/app/backend/internal/sources/routes_check.go@@ -112,7 +112,7 @@ func checkOne(ctx context.Context, h *Handlers, sec SecretReader, src domain.SouRecord(context.WithoutCancel(ctx), h.Store, src.ID, "test", took, err)c.MS = took.Milliseconds()if err != nil {- c.Error = Explain(err)+ c.Error = ExplainVia(src.URL, err)return}c.Answered = truediff --git a/app/backend/internal/sources/routes_sources.go b/app/backend/internal/sources/routes_sources.goindex a533bb7..7dd5ad7 100644--- a/app/backend/internal/sources/routes_sources.go+++ b/app/backend/internal/sources/routes_sources.go@@ -265,7 +265,7 @@ func (h *Handlers) runTest(w http.ResponseWriter, r *http.Request, x domain.SourRecord(context.WithoutCancel(r.Context()), h.Store, x.ID, "test", took, err)out := map[string]any{"ok": err == nil, "ms": took.Milliseconds()}if err != nil {- out["text"] = Explain(err)+ out["text"] = ExplainVia(x.URL, err)if repause && x.State == "enabled" && h.search() != nil {h.search().TryFailed(context.WithoutCancel(r.Context()), x, err)if database.Get(r.Context(), h.Store.Read(), "sources", x.ID, &x) == nil {diff --git a/app/backend/internal/sources/service.go b/app/backend/internal/sources/service.goindex 18fa17b..13776b8 100644--- a/app/backend/internal/sources/service.go+++ b/app/backend/internal/sources/service.go@@ -326,6 +326,36 @@ func Explain(err error) string {return "HolyArrs could not reach the Source (" + se.Msg + ")."}+// ExplainVia is Explain for one Source: when it searches through Prowlarr or+// Jackett and cannot be reached, it names that app and what to do.+func ExplainVia(sourceURL string, err error) string {+ text := Explain(err)+ if !strings.HasPrefix(text, "HolyArrs could not reach the Source") && !strings.HasPrefix(text, "The Source took too long") {+ return text+ }+ via := bridgeOf(sourceURL)+ if via == "" {+ return text+ }+ return via + " isn't answering. Sources brought in from " + via + " search through it, so keep " + via + " running, or change the address."+}++// bridgeOf names the app a Source's address goes through ("" for a site of its own).+func bridgeOf(sourceURL string) string {+ u, err := url.Parse(sourceURL)+ if err != nil {+ return ""+ }+ p := strings.TrimSuffix(u.Path, "/")+ switch {+ case strings.Contains(p, "/api/v2.0/indexers/"):+ return "Jackett"+ case prowlarrSitePath.MatchString(strings.TrimSuffix(p, "/api")):+ return "Prowlarr"+ }+ return ""+}+// splitRSS takes the query out of an rss address, because feeds keep their passkey there.// The query is stored as the Source's key.func splitRSS(raw string) (base, query string) {diff --git a/app/frontend/src/app.css b/app/frontend/src/app.cssindex a3207ed..9747717 100644--- a/app/frontend/src/app.css+++ b/app/frontend/src/app.css@@ -67,6 +67,12 @@ textarea {font: inherit;color: inherit;}+/* Some browsers draw a drop-down's list with system colours; give its rows the page's own. */+select option,+select optgroup {+ background-color: var(--surface-2);+ color: var(--text);+}button {background: none;border: 0;diff --git a/app/frontend/src/lib/core/i18n/messages/ar/library.json b/app/frontend/src/lib/core/i18n/messages/ar/library.jsonindex 229ab06..2568cb8 100644--- a/app/frontend/src/lib/core/i18n/messages/ar/library.json+++ b/app/frontend/src/lib/core/i18n/messages/ar/library.json@@ -222,6 +222,7 @@"library.page.addMovie": "فيلم","library.page.addShow": "مسلسل","library.page.addArtist": "فنان",+ "library.page.importFromFolder": "استيراد من مجلد","library.page.oneTitle": "عمل واحد","library.page.nTitles": "{n} أعمال","library.report.failedBody": "تعذّر تغيير {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 d103dc8..9e33727 100644--- a/app/frontend/src/lib/core/i18n/messages/ar/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/ar/migrate.json@@ -208,6 +208,8 @@"migrate.itemFailed": "فشل {n} عنصر","migrate.itemsFailed": "فشل {n} عناصر","migrate.reasonsAreInResults": "الأسباب في النتائج.",+ "migrate.reasonsMatchByHand": "الأسباب في النتائج. يمكن مطابقة مسلسل أو فيلم لم يُتعرَّف عليه يدويًا.",+ "migrate.matchByHand": "مطابقة يدوية","migrate.results": "النتائج","migrate.show4": "اعرض {label}","migrate.notMoved": "لم يُستورد",diff --git a/app/frontend/src/lib/core/i18n/messages/de/library.json b/app/frontend/src/lib/core/i18n/messages/de/library.jsonindex 7c4608c..6af124b 100644--- a/app/frontend/src/lib/core/i18n/messages/de/library.json+++ b/app/frontend/src/lib/core/i18n/messages/de/library.json@@ -222,6 +222,7 @@"library.page.addMovie": "Film","library.page.addShow": "Serie","library.page.addArtist": "Künstler",+ "library.page.importFromFolder": "Aus einem Ordner importieren","library.page.oneTitle": "1 Titel","library.page.nTitles": "{n} Titel","library.report.failedBody": "{n} ließen sich nicht ändern",diff --git a/app/frontend/src/lib/core/i18n/messages/de/migrate.json b/app/frontend/src/lib/core/i18n/messages/de/migrate.jsonindex 8796ecc..e2aa927 100644--- a/app/frontend/src/lib/core/i18n/messages/de/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/de/migrate.json@@ -208,6 +208,8 @@"migrate.itemFailed": "{n} Eintrag fehlgeschlagen","migrate.itemsFailed": "{n} Einträge fehlgeschlagen","migrate.reasonsAreInResults": "Die Gründe stehen unter Ergebnisse.",+ "migrate.reasonsMatchByHand": "Die Gründe stehen unter Ergebnisse. Eine nicht erkannte Serie oder einen nicht erkannten Film kannst du von Hand zuordnen.",+ "migrate.matchByHand": "Von Hand zuordnen","migrate.results": "Ergebnisse","migrate.show4": "{label} anzeigen","migrate.notMoved": "Nicht importiert",diff --git a/app/frontend/src/lib/core/i18n/messages/en/library.json b/app/frontend/src/lib/core/i18n/messages/en/library.jsonindex 1bf9773..f0c43a9 100644--- a/app/frontend/src/lib/core/i18n/messages/en/library.json+++ b/app/frontend/src/lib/core/i18n/messages/en/library.json@@ -222,6 +222,7 @@"library.page.addMovie": "Movie","library.page.addShow": "TV show","library.page.addArtist": "Artist",+ "library.page.importFromFolder": "Import from a folder","library.page.oneTitle": "1 title","library.page.nTitles": "{n} titles","library.report.failedBody": "{n} couldn't be changed",diff --git a/app/frontend/src/lib/core/i18n/messages/en/migrate.json b/app/frontend/src/lib/core/i18n/messages/en/migrate.jsonindex 5ad1e2b..458684c 100644--- a/app/frontend/src/lib/core/i18n/messages/en/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/en/migrate.json@@ -208,6 +208,8 @@"migrate.itemFailed": "{n} item failed","migrate.itemsFailed": "{n} items failed","migrate.reasonsAreInResults": "Reasons are in Results.",+ "migrate.reasonsMatchByHand": "Reasons are in Results. A show or movie that wasn't recognised can be matched by hand.",+ "migrate.matchByHand": "Match by hand","migrate.results": "Results","migrate.show4": "Show {label}","migrate.notMoved": "Not imported",diff --git a/app/frontend/src/lib/core/i18n/messages/es/library.json b/app/frontend/src/lib/core/i18n/messages/es/library.jsonindex 686f90f..efcf520 100644--- a/app/frontend/src/lib/core/i18n/messages/es/library.json+++ b/app/frontend/src/lib/core/i18n/messages/es/library.json@@ -222,6 +222,7 @@"library.page.addMovie": "Película","library.page.addShow": "Serie","library.page.addArtist": "Artista",+ "library.page.importFromFolder": "Importar desde una carpeta","library.page.oneTitle": "1 título","library.page.nTitles": "{n} títulos","library.report.failedBody": "{n} no se pudieron cambiar",diff --git a/app/frontend/src/lib/core/i18n/messages/es/migrate.json b/app/frontend/src/lib/core/i18n/messages/es/migrate.jsonindex 568c30c..7192ea1 100644--- a/app/frontend/src/lib/core/i18n/messages/es/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/es/migrate.json@@ -208,6 +208,8 @@"migrate.itemFailed": "{n} elemento falló","migrate.itemsFailed": "{n} elementos fallaron","migrate.reasonsAreInResults": "Los motivos están en Resultados.",+ "migrate.reasonsMatchByHand": "Los motivos están en Resultados. Una serie o película que no se reconoció se puede emparejar a mano.",+ "migrate.matchByHand": "Emparejar a mano","migrate.results": "Resultados","migrate.show4": "Ver {label}","migrate.notMoved": "No importado",diff --git a/app/frontend/src/lib/core/i18n/messages/fr/library.json b/app/frontend/src/lib/core/i18n/messages/fr/library.jsonindex ae52392..7f23d5a 100644--- a/app/frontend/src/lib/core/i18n/messages/fr/library.json+++ b/app/frontend/src/lib/core/i18n/messages/fr/library.json@@ -222,6 +222,7 @@"library.page.addMovie": "Film","library.page.addShow": "Série","library.page.addArtist": "Artiste",+ "library.page.importFromFolder": "Importer depuis un dossier","library.page.oneTitle": "1 titre","library.page.nTitles": "{n} titres","library.report.failedBody": "{n} n'ont pas pu être modifiés",diff --git a/app/frontend/src/lib/core/i18n/messages/fr/migrate.json b/app/frontend/src/lib/core/i18n/messages/fr/migrate.jsonindex b436bfc..6e0db7c 100644--- a/app/frontend/src/lib/core/i18n/messages/fr/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/fr/migrate.json@@ -208,6 +208,8 @@"migrate.itemFailed": "{n} élément échoué","migrate.itemsFailed": "{n} éléments échoués","migrate.reasonsAreInResults": "Les raisons sont dans Résultats.",+ "migrate.reasonsMatchByHand": "Les raisons sont dans Résultats. Une série ou un film non reconnu peut être associé à la main.",+ "migrate.matchByHand": "Associer à la main","migrate.results": "Résultats","migrate.show4": "Afficher {label}","migrate.notMoved": "Non importé",diff --git a/app/frontend/src/lib/core/i18n/messages/hi/library.json b/app/frontend/src/lib/core/i18n/messages/hi/library.jsonindex b9766dd..3ac7d8e 100644--- a/app/frontend/src/lib/core/i18n/messages/hi/library.json+++ b/app/frontend/src/lib/core/i18n/messages/hi/library.json@@ -222,6 +222,7 @@"library.page.addMovie": "फ़िल्म","library.page.addShow": "टीवी शो","library.page.addArtist": "कलाकार",+ "library.page.importFromFolder": "फ़ोल्डर से इंपोर्ट करें","library.page.oneTitle": "1 टाइटल","library.page.nTitles": "{n} टाइटल","library.report.failedBody": "{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 a15fdfe..c8a23f1 100644--- a/app/frontend/src/lib/core/i18n/messages/hi/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/hi/migrate.json@@ -208,6 +208,8 @@"migrate.itemFailed": "{n} आइटम नाकाम रहा","migrate.itemsFailed": "{n} आइटम नाकाम रहे","migrate.reasonsAreInResults": "वजहें नतीजों में हैं।",+ "migrate.reasonsMatchByHand": "वजहें नतीजों में हैं। जो शो या फ़िल्म पहचानी नहीं गई, उसे हाथ से मिलाया जा सकता है।",+ "migrate.matchByHand": "हाथ से मिलाएं","migrate.results": "नतीजे","migrate.show4": "{label} दिखाएं","migrate.notMoved": "इंपोर्ट नहीं हुआ",diff --git a/app/frontend/src/lib/core/i18n/messages/ja/library.json b/app/frontend/src/lib/core/i18n/messages/ja/library.jsonindex e3cc9c2..0f9db44 100644--- a/app/frontend/src/lib/core/i18n/messages/ja/library.json+++ b/app/frontend/src/lib/core/i18n/messages/ja/library.json@@ -222,6 +222,7 @@"library.page.addMovie": "映画","library.page.addShow": "TV 番組","library.page.addArtist": "アーティスト",+ "library.page.importFromFolder": "フォルダーから取り込む","library.page.oneTitle": "1 作品","library.page.nTitles": "{n} 作品","library.report.failedBody": "{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 38da3eb..8fb85d8 100644--- a/app/frontend/src/lib/core/i18n/messages/ja/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/ja/migrate.json@@ -208,6 +208,8 @@"migrate.itemFailed": "{n} 件が失敗","migrate.itemsFailed": "{n} 件が失敗","migrate.reasonsAreInResults": "理由は結果に表示されます。",+ "migrate.reasonsMatchByHand": "理由は結果に表示されます。認識されなかった番組や映画は手動で照合できます。",+ "migrate.matchByHand": "手動で照合","migrate.results": "結果","migrate.show4": "{label} を表示","migrate.notMoved": "インポートされていません",diff --git a/app/frontend/src/lib/core/i18n/messages/ko/library.json b/app/frontend/src/lib/core/i18n/messages/ko/library.jsonindex f637ab7..df97ac1 100644--- a/app/frontend/src/lib/core/i18n/messages/ko/library.json+++ b/app/frontend/src/lib/core/i18n/messages/ko/library.json@@ -222,6 +222,7 @@"library.page.addMovie": "영화","library.page.addShow": "TV 시리즈","library.page.addArtist": "아티스트",+ "library.page.importFromFolder": "폴더에서 가져오기","library.page.oneTitle": "작품 1개","library.page.nTitles": "작품 {n}개","library.report.failedBody": "{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 2d4192e..89d794a 100644--- a/app/frontend/src/lib/core/i18n/messages/ko/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/ko/migrate.json@@ -208,6 +208,8 @@"migrate.itemFailed": "항목 {n}개 실패","migrate.itemsFailed": "항목 {n}개 실패","migrate.reasonsAreInResults": "이유는 결과에 있습니다.",+ "migrate.reasonsMatchByHand": "이유는 결과에 있습니다. 인식되지 않은 쇼나 영화는 직접 맞출 수 있습니다.",+ "migrate.matchByHand": "직접 맞추기","migrate.results": "결과","migrate.show4": "{label} 보기","migrate.notMoved": "가져오지 않음",diff --git a/app/frontend/src/lib/core/i18n/messages/pt-br/library.json b/app/frontend/src/lib/core/i18n/messages/pt-br/library.jsonindex 21fdcee..d31322d 100644--- a/app/frontend/src/lib/core/i18n/messages/pt-br/library.json+++ b/app/frontend/src/lib/core/i18n/messages/pt-br/library.json@@ -222,6 +222,7 @@"library.page.addMovie": "Filme","library.page.addShow": "Série","library.page.addArtist": "Artista",+ "library.page.importFromFolder": "Importar de uma pasta","library.page.oneTitle": "1 título","library.page.nTitles": "{n} títulos","library.report.failedBody": "{n} não puderam ser alterados",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 5ea95a4..018ec1b 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@@ -208,6 +208,8 @@"migrate.itemFailed": "{n} item falhou","migrate.itemsFailed": "{n} itens falharam","migrate.reasonsAreInResults": "Os motivos estão em Resultados.",+ "migrate.reasonsMatchByHand": "Os motivos estão em Resultados. Uma série ou filme que não foi reconhecido pode ser associado à mão.",+ "migrate.matchByHand": "Associar à mão","migrate.results": "Resultados","migrate.show4": "Mostrar {label}","migrate.notMoved": "Não importado",diff --git a/app/frontend/src/lib/core/i18n/messages/ru/library.json b/app/frontend/src/lib/core/i18n/messages/ru/library.jsonindex ba146af..7c74464 100644--- a/app/frontend/src/lib/core/i18n/messages/ru/library.json+++ b/app/frontend/src/lib/core/i18n/messages/ru/library.json@@ -222,6 +222,7 @@"library.page.addMovie": "Фильм","library.page.addShow": "Сериал","library.page.addArtist": "Исполнитель",+ "library.page.importFromFolder": "Импорт из папки","library.page.oneTitle": "1 тайтл","library.page.nTitles": "Тайтлов: {n}","library.report.failedBody": "Не удалось изменить: {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 51c041d..609ae66 100644--- a/app/frontend/src/lib/core/i18n/messages/ru/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/ru/migrate.json@@ -208,6 +208,8 @@"migrate.itemFailed": "{n} элемент не удался","migrate.itemsFailed": "Элементов не удалось: {n}","migrate.reasonsAreInResults": "Причины в разделе «Результаты».",+ "migrate.reasonsMatchByHand": "Причины в разделе «Результаты». Нераспознанный сериал или фильм можно сопоставить вручную.",+ "migrate.matchByHand": "Сопоставить вручную","migrate.results": "Результаты","migrate.show4": "Показать {label}","migrate.notMoved": "Не импортировано",diff --git a/app/frontend/src/lib/core/i18n/messages/uk/library.json b/app/frontend/src/lib/core/i18n/messages/uk/library.jsonindex 30ce4a3..ac0a108 100644--- a/app/frontend/src/lib/core/i18n/messages/uk/library.json+++ b/app/frontend/src/lib/core/i18n/messages/uk/library.json@@ -222,6 +222,7 @@"library.page.addMovie": "Фільм","library.page.addShow": "Серіал","library.page.addArtist": "Виконавець",+ "library.page.importFromFolder": "Імпорт із теки","library.page.oneTitle": "1 тайтл","library.page.nTitles": "Тайтлів: {n}","library.report.failedBody": "Не вдалося змінити: {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 af2d96e..5af6ef9 100644--- a/app/frontend/src/lib/core/i18n/messages/uk/migrate.json+++ b/app/frontend/src/lib/core/i18n/messages/uk/migrate.json@@ -208,6 +208,8 @@"migrate.itemFailed": "{n} елемент не вдалося","migrate.itemsFailed": "Елементів не вдалося: {n}","migrate.reasonsAreInResults": "Причини — у «Результатах».",+ "migrate.reasonsMatchByHand": "Причини — у «Результатах». Нерозпізнаний серіал чи фільм можна зіставити вручну.",+ "migrate.matchByHand": "Зіставити вручну","migrate.results": "Результати","migrate.show4": "Показати {label}","migrate.notMoved": "Не імпортовано",diff --git a/app/frontend/src/lib/core/i18n/messages/zh-cn/library.json b/app/frontend/src/lib/core/i18n/messages/zh-cn/library.jsonindex 01de6cd..d8fedbf 100644--- a/app/frontend/src/lib/core/i18n/messages/zh-cn/library.json+++ b/app/frontend/src/lib/core/i18n/messages/zh-cn/library.json@@ -222,6 +222,7 @@"library.page.addMovie": "电影","library.page.addShow": "剧集","library.page.addArtist": "艺人",+ "library.page.importFromFolder": "从文件夹导入","library.page.oneTitle": "1 个条目","library.page.nTitles": "{n} 个条目","library.report.failedBody": "{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 844250e..e2ce7e8 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@@ -208,6 +208,8 @@"migrate.itemFailed": "{n} 项失败","migrate.itemsFailed": "{n} 项失败","migrate.reasonsAreInResults": "原因见“结果”。",+ "migrate.reasonsMatchByHand": "原因见“结果”。未识别的剧集或电影可以手动匹配。",+ "migrate.matchByHand": "手动匹配","migrate.results": "结果","migrate.show4": "显示{label}","migrate.notMoved": "未导入",diff --git a/app/frontend/src/lib/mediafiles/DeleteSheet.svelte b/app/frontend/src/lib/mediafiles/DeleteSheet.svelteindex dc575fc..354ad48 100644--- a/app/frontend/src/lib/mediafiles/DeleteSheet.svelte+++ b/app/frontend/src/lib/mediafiles/DeleteSheet.svelte@@ -20,7 +20,9 @@let ask = 0;const kindWord = $derived(t(`mediafiles.kind.${kind}`));- const sure = $derived(!files || typed.trim().toLowerCase() === name.trim().toLowerCase());+ // Typing the name is asked only when the files are deleted for good; held files come back with Undo.+ const forGood = $derived(files && !!plan && plan.holding_days <= 0);+ const sure = $derived(!forGood || typed.trim().toLowerCase() === name.trim().toLowerCase());// Each time the sheet opens it starts clean; untrack so edits inside do not rerun this.$effect(() => {@@ -95,7 +97,7 @@{/if}</section>- {#if files}+ {#if forGood}<label class="ds-type"><span><Words key="mediafiles.delete.type" vars={{ name }} /></span><input bind:value={typed} autocomplete="off" spellcheck="false" placeholder={name} />diff --git a/app/frontend/src/lib/migrate/DoneStep.svelte b/app/frontend/src/lib/migrate/DoneStep.svelteindex 88e1d66..5695808 100644--- a/app/frontend/src/lib/migrate/DoneStep.svelte+++ b/app/frontend/src/lib/migrate/DoneStep.svelte@@ -86,7 +86,7 @@{@render card(openChoices === 1 ? t('migrate.chooseForPerson', { n: openChoices }) : t('migrate.chooseForPeople', { n: openChoices }), t('migrate.theyStayBehindUntil'), t('migrate.choose'), onchoose)}{/if}{#if (counts.failed ?? 0) > 0}- {@render card((counts.failed ?? 0) === 1 ? t('migrate.itemFailed', { n: counts.failed ?? 0 }) : t('migrate.itemsFailed', { n: counts.failed ?? 0 }), t('migrate.reasonsAreInResults'), '', () => {})}+ {@render card((counts.failed ?? 0) === 1 ? t('migrate.itemFailed', { n: counts.failed ?? 0 }) : t('migrate.itemsFailed', { n: counts.failed ?? 0 }), t('migrate.reasonsMatchByHand'), t('migrate.matchByHand'), to('/library/import'))}{/if}</div>{/if}diff --git a/app/frontend/src/routes/(home)/+page.svelte b/app/frontend/src/routes/(home)/+page.svelteindex 26a16d7..dfa4dc1 100644--- a/app/frontend/src/routes/(home)/+page.svelte+++ b/app/frontend/src/routes/(home)/+page.svelte@@ -24,6 +24,7 @@import type { Health, HealthChecks } from '#lib/health/index.ts';import { onMount } from 'svelte';import { to } from '#lib/core/paths.ts';+ import { partOff } from '#lib/mediafiles/index.ts';import { api } from '#lib/core/api.ts';import { afterHandoff } from '#lib/core/loader.ts';import { live } from '#lib/core/live.svelte.ts';@@ -84,7 +85,7 @@const mineOpen = $derived(attentionView.mine.filter((a) => a.state !== 'turned_down').length);const mineDeclined = $derived(attentionView.mine.length - mineOpen);const asksLine = $derived([mineOpen ? t('home.stillOpen', { n: n(mineOpen) }) : '', mineDeclined ? t('home.turnedDown', { n: n(mineDeclined) }) : ''].filter(Boolean).join(' · '));- const canAsk = $derived(session.can('ask') || approver);+ const canAsk = $derived((session.can('ask') || approver) && !partOff('wishlist'));const progress = $derived(home?.ask_progress ?? {});// While one of this person's own asks is downloading, Home re-reads, so it sees the title arrive.const busy = $derived(attentionView.mineShown.some((a) => !!a.title_id && !!progress[a.title_id]));@@ -163,7 +164,7 @@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),- session.can('ask') || approver ? api.get<{ asks: Ask[] }>('/asks') : Promise.resolve(null)+ canAsk ? api.get<{ asks: Ask[] }>('/asks') : Promise.resolve(null)]);if (fo.status === 'fulfilled' && fo.value) folders = fo.value.library_folders;if (dl.status === 'fulfilled' && dl.value) downloads = dl.value.downloads ?? [];diff --git a/app/frontend/src/routes/library/+page.svelte b/app/frontend/src/routes/library/+page.svelteindex 462e587..07cc3f7 100644--- a/app/frontend/src/routes/library/+page.svelte+++ b/app/frontend/src/routes/library/+page.svelte@@ -330,7 +330,8 @@const addItems = $derived<MenuItem[]>([...(!partOff('movies') ? ([{ label: tr('library.page.addMovie'), icon: 'film', href: to('/search') }] 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[]) : [])+ ...(!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[]) : [])]);// Recently deleted lives in Sort & filter: its count is read when the panel opens (at most once a minute).let deletedCount = $state<number | null>(null);diff --git a/app/frontend/src/routes/settings/subtitles/+page.svelte b/app/frontend/src/routes/settings/subtitles/+page.svelteindex 3e71e37..f789dc2 100644--- a/app/frontend/src/routes/settings/subtitles/+page.svelte+++ b/app/frontend/src/routes/settings/subtitles/+page.svelte@@ -60,8 +60,9 @@saved = JSON.stringify(s);}),api.get<{ languages: Language[] }>('/subtitles/languages').then((r) => (langs = r.languages)),- api.get<{ kinds: SiteKind[] }>('/subtitle-sites/kinds').then((r) => (kinds = r.kinds)),- loadSites()+ ...(session.held('subtitle_sites')+ ? []+ : [api.get<{ kinds: SiteKind[] }>('/subtitle-sites/kinds').then((r) => (kinds = r.kinds)), loadSites()])]).catch((e) => (error = message(e))).finally(() => (loaded = true));@@ -71,9 +72,11 @@void load();const offs = [live.on('event', (d) => {- if (String((d as { Kind?: string })?.Kind) === 'subtitle_site_paused') void loadSites();+ if (String((d as { Kind?: string })?.Kind) === 'subtitle_site_paused' && !session.held('subtitle_sites')) void loadSites();}),- live.on('resync', () => void loadSites())+ live.on('resync', () => {+ if (!session.held('subtitle_sites')) void loadSites();+ })];return () => offs.forEach((off) => off());});diff --git a/docs/migrate/lidarr-bazarr-prowlarr.md b/docs/migrate/lidarr-bazarr-prowlarr.mdindex 335eea9..6991375 100644--- a/docs/migrate/lidarr-bazarr-prowlarr.md+++ b/docs/migrate/lidarr-bazarr-prowlarr.md@@ -44,6 +44,8 @@ Stays behind: other subtitle sites and their accounts. HolyArrs reaches Addic7edStays behind: app links, sync profiles, indexer proxies and notification kinds HolyArrs does not have.+Sources brought in from Prowlarr still search through Prowlarr, so keep it running. If it stops, those Sources say Prowlarr isn't answering.+:::tipTo keep Prowlarr running and let it push Sources into HolyArrs instead, see [Old-app API](../reference/old-app-api.md).:::