Metadata rescan reports success when Audible has no record for the ASIN in that region (the book is left unchanged, other regions are never tried)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 74/100
調査の方向性
Start with LibraryMetadataRescanWorkflow.cs, especially TryMetadataLookupByAsinAsync and EnumerateMetadataRescanRegions; the issue identifies the empty-record check that stops the lookup. Trace how the rescan reports success and applies patches, then check the existing rescan tests. Done means empty Audible records let lookup continue through regions and identifiers, and a rescan with no usable metadata reports failure.
索引モデルが issue の本文から書いたものです。
説明
What happens
POST /api/v1/library/{id}/rescan-metadata answers "Metadata rescanned successfully" and logs Metadata rescan updated audiobook … even when Audible has no record for the book's ASIN in the region it is stored with. Nothing is updated: the book keeps every field it had. The regions where the record does exist are never tried.
Audible answers an ASIN it doesn't sell in a region with an empty record (an ASIN, no title). The rescan takes any non-null answer as a hit (TryMetadataLookupByAsinAsync in LibraryMetadataRescanWorkflow.cs: if (metadataEnvelope == null) continue;, then return true), and ApplyMetadataRescanPatch only writes non-empty fields, so it writes nothing. The loop over EnumerateMetadataRescanRegions stops at that first empty answer.
Reproduce (v1.5.9-canary, API only)
- A book whose primary ASIN is a US-only record, e.g. Robinson Crusoe
B002V5CW08(sold in the US, not in France). - Store that ASIN with the region
fr(PUT /library/{id}/identifiers), and give the book a title it doesn't have (PUT /library/{id}{ "title": "Wrong Title", "subtitle": "Wrong Subtitle" }). POST /library/{id}/rescan-metadata.
Observed:
rescan : {"message":"Metadata rescanned successfully","audiobookId":1,"source":"Audible","asin":"B002V5CW08","region":"fr"}
after : Wrong Title | Wrong Subtitle
log : Metadata rescan updated audiobook 1 (Wrong Title) using Audible ASIN B002V5CW08 region fr
GET /metadata/B002V5CW08?region=fr returns the empty record (no title); ?region=us returns Robinson Crusoe.
Expected
An answer without a title is not a record: the lookup goes on (the next region, then the next identifier), and when nothing has one the rescan fails as "no metadata found" instead of reporting success.
Why it matters
- Rescan Metadata says it worked on a book whose ASIN region is wrong, and the user has no reason to look further.
- Repair (#1080 / #1054) saves the picked record's ASIN and region, then rescans. If Audible returns an empty record at that moment, the book shows Repaired with its old metadata. #1054 lists this as a known limit pointing here; it already reports the other case, when the rescan read a different ASIN or region than the one picked.
Found while testing #1054 on a test instance with libraries generated by m4bard/listenarr-testdata.
- 主要言語
- C#
- スター
- 901
- フォーク
- 70
- 平均マージ
- 16時間 27分
- マージ済み PR(30日)
- 60
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Listenarrs/Listenarr のほかの issue
-
Search button on a book does not retry without the author when the full query finds nothing対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Listenarrs/Listenarr#1173 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Listenarrs/Listenarr#1133 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Listenarrs/Listenarr#1128 ·
メンテナーはふだん 1 日以内に返信
-
Add New's search splits a title that contains "Series:", "Author:"… as if they were search keywordsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Listenarrs/Listenarr#1127 ·
メンテナーはふだん 1 日以内に返信
-
p3
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
Listenarrs/Listenarr#971 ·
メンテナーはふだん 1 日以内に返信
Listenarrs/Listenarr の issue をすべて見る
似ている issue
-
kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
unoplatform/uno#26555 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
CactuseSecurity/firewall-orchestrator#5739 ·
メンテナーはふだん 1 日以内に返信
-
Add File sorts a picked file by VB6's extensions, not the project format's (#4243 follow-up)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンchore project-system small
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
vikramlearning/blazorbootstrap#1388 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
GamaEdtech/gamatrain-back#977 ·
メンテナーはふだん 1 日以内に返信