seanime icon indicating copy to clipboard operation
seanime copied to clipboard

bug: Editing an autodownloader rule resets `Destination`

Open sin3point14 opened this issue 5 months ago • 1 comments

Checklist

  • [X] My version of the app is the latest available
  • [X] I have checked open and closed issues
  • [X] I have checked the docs for a fix

Bug Severity

Usability is affected

Bug Area

UI / Web Interface

Bug Description / Steps to Reproduce

I created a new rule as image However if I open the the rule again for editing: image The Destination is gone but other settings are preserved

Expected Behavior

The Destination should be preserved.

An additional suggestion: can the Destination be auto-filled? When I download a batch or an ep directly, seanime makes the corresponding anime dir in the library dir automatically, so can it do the same thing here?

Screenshots

No response

Logs

Creation:

Sep 18 03:55:06 the-beast seanime[1584086]: 2024-09-18 03:55:06 INF - api > Succ
ess latency="212.371µs" method=POST url=/api/v1/directory-selector
Sep 18 03:55:11 the-beast seanime[1584086]: 2024-09-18 03:55:11 INF - api > Succ
ess latency=152.466097ms method=DELETE url=/api/v1/auto-downloader/rule/9
Sep 18 03:55:11 the-beast seanime[1584086]: 2024-09-18 03:55:11 INF - api > Succ
ess latency="317.915µs" method=GET url=/api/v1/auto-downloader/rules

The directory is present in the db entry:

sqlite> select * from auto_downloader_rules order by id desc limit 1;
10|2024-09-18 03:55:50.13524046+05:30|2024-09-18 03:55:50.13524046+05:30|{"dbId"
:0,"enabled":true,"mediaId":171457,"releaseGroups":["SubsPlease"],"resolutions":
[],"comparisonTitle":"Make Heroine ga Oosugiru!","titleComparisonType":"likely",
"episodeType":"recent","destination":"/data/seanime/library/Make Heroine ga Oosu
giru!"}

editing:

Sep 18 03:55:22 the-beast seanime[1584086]: 2024-09-18 03:55:22 INF - api > Succ
ess latency="164.114µs" method=POST url=/api/v1/directory-selector
Sep 18 03:55:23 the-beast seanime[1584086]: 2024-09-18 03:55:23 INF - api > Succ
ess latency="108.457µs" method=POST url=/api/v1/directory-selector
Sep 18 03:55:50 the-beast seanime[1584086]: 2024-09-18 03:55:50 INF - api > Succ
ess latency=121.200729ms method=POST url=/api/v1/auto-downloader/rule
Sep 18 03:55:50 the-beast seanime[1584086]: 2024-09-18 03:55:50 INF - api > Succ
ess latency="460.649µs" method=GET url=/api/v1/auto-downloader/rules
Sep 18 03:55:54 the-beast seanime[1584086]: 2024-09-18 03:55:54 INF - api > Succ
ess latency="90.916µs" method=POST url=/api/v1/directory-selector

Debugging Checklist

  • [ ] I have included error messages
  • [X] I have included terminal output
  • [ ] I have included browser console logs

App Version

v2.1.1

Operating System

Linux

sin3point14 avatar Sep 17 '24 22:09 sin3point14