Rename/Move silently appends Subtitle to Title even when naming pattern doesn't reference {Subtitle}
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
RenameService.Helpers.cs の BuildNamingVariables から始めます。ここで issue はサブタイトルのフォールバックを特定しています。フォルダーとファイルの命名パターンが {Title} の値にどう影響するかを確認し、次に {Subtitle} を含まないパターンの名前変更プレビューのテストを実行します。パターンが {Subtitle} を明示的に参照していない限り、プレビュー名が audiobook.Title のみを使うようになれば完了です。
索引モデルが issue の本文から書いたものです。
説明
RenameService.Helpers.cs → BuildNamingVariables automatically combines {Title} with
{Subtitle} (format "{Title}: {Subtitle}") whenever the configured naming pattern (folder
or file pattern) does not explicitly contain the {Subtitle} token. This causes folder/file
names to include the subtitle even though the user never configured that anywhere.
Steps to reproduce
- Set
FolderNamingPatternto{Author}/{Series}/{SeriesNumber:00} - {Title}
(no{Subtitle}included) - Update an audiobook that has a
Subtitlevalue set viarescan-metadata - Call
/library/{id}/rename/preview
Expected: folder name Gunter Arentzen/Series/01 - Title
Actual: folder name additionally includes the subtitle, e.g.
Gunter Arentzen/Series/Title - Series (the colon gets sanitized to " - " for the filesystem)
Root cause
// RenameService.Helpers.cs, BuildNamingVariables()
var usesSubtitleToken = (!string.IsNullOrWhiteSpace(folderPattern) && folderPattern.IndexOf("Subtitle", ...) >= 0)
|| (!string.IsNullOrWhiteSpace(filePattern) && filePattern.IndexOf("Subtitle", ...) >= 0);
var combinedTitle = !usesSubtitleToken
&& !string.IsNullOrWhiteSpace(audiobook.Subtitle)
&& !string.IsNullOrWhiteSpace(audiobook.Title)
&& !audiobook.Title.Contains(audiobook.Subtitle, StringComparison.OrdinalIgnoreCase)
? $"{audiobook.Title}: {audiobook.Subtitle}"
: audiobook.Title;
The fallback triggers regardless of the actually configured pattern — there's no way to disable
this behavior other than leaving Subtitle empty.
Suggested fix
Remove the automatic fallback (or make it configurable) — {Title} should strictly follow
audiobook.Title unless the naming pattern explicitly references {Subtitle}.
- 主要言語
- 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 日以内に返信