5rahim / seanime

Free and open-source media server for anime and manga that includes library scanning, downloading, transcoding, torrent streaming, and more.
https://seanime.rahim.app
MIT License
293 stars 16 forks source link

bug: Editing an autodownloader rule resets `Destination` #133

Open sin3point14 opened 2 days ago

sin3point14 commented 2 days ago

Checklist

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

App Version

v2.1.1

Operating System

Linux

sin3point14 commented 2 days ago

Ok i refreshed the page and it now shows O_o. It is very likely a frontend bug. I'll attach a video to show the reproduction. Unfortunately, nothing useful shows up on browser console while doing these actions.

https://github.com/user-attachments/assets/42bf4ea6-6dfc-4d63-a6e2-9be55590a69e