mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
feat(lists): add option to skip cleaning of Plaintext data (#2036)
* Added: Plaintext untouched * Revert "Added: Plaintext untouched" This reverts commit e6ceaec5f4776cfc8335ae2c02e1caa4a2bbb0bc. * Added: skipCleanSanitize * TS definition for List object doesn't yet know about the new skip_clean_sanitize property * Update: ListForms.tsx with the bypass option * Update: Database internals for skip_clean_sanitize * Fix: Snake case
This commit is contained in:
parent
9caf7807de
commit
4ce2241991
7 changed files with 49 additions and 12 deletions
|
@ -98,7 +98,11 @@ func (s *service) plaintext(ctx context.Context, list *domain.List) error {
|
|||
if title == "" {
|
||||
continue
|
||||
}
|
||||
titles = append(titles, processTitle(title, list.MatchRelease)...)
|
||||
if list.SkipCleanSanitize {
|
||||
titles = append(titles, title) // Add title as-is
|
||||
} else {
|
||||
titles = append(titles, processTitle(title, list.MatchRelease)...) // Existing logic
|
||||
}
|
||||
}
|
||||
|
||||
if len(titles) == 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue