Michael-128 / qBitControl

qBittorrent remote client for iOS devices.
https://x.com/qbitcontrol
GNU General Public License v3.0
196 stars 9 forks source link

[BUG] category save path redundancy #29

Closed 68kdmd closed 2 months ago

68kdmd commented 2 months ago

I’m on 1.21, and the category save path redundancy still persists.

I’m currently using subcategories, and when it’s selected (eg /Movies/new) in the app Add-category, the ‘save path’ value correctly shows. However, the file gets actually saved under ‘/Movies/new/Movies/new’

This issue is not specific to subcategories, as it displayed the same issue (Movies/Movies) when using a regular Category option as well.

To get around the issue, you can delete the auto-populated ‘save path’ string in the app upon selecting the category, for the time being.

Michael-128 commented 2 months ago

Thanks for reporting the bug. What version of qBittorrent are you using?

68kdmd commented 2 months ago

The issue was seen in both 4.6.5 and 4.6.6

Michael-128 commented 2 months ago

It's strange, because I also use 4.6.5 and never had this bug. It seems that subcategories are not available in the WebUI. What operating system do you use for your qBittorrent instance?

68kdmd commented 2 months ago

That’s interesting. I just checked again and the issue is still present on 1.21. Qbit 4.6.6 docker.

Issue present on both category and subcategory.

68kdmd commented 2 months ago

IMG_9343 Do you use the ‘automatic torrent management’ feature? I am. So, when creating a category in qbit webui, I defined ‘Movies’ as a save path as well.

Michael-128 commented 2 months ago

I've never used automatic torrent management before, I will look into it and see if it causes this issue

Michael-128 commented 2 months ago

I enabled automatic torrent management on my test instance of qBittorrent. When I add a torrent with category like on the screenshot above it's indeed saved in /downloads/Movies/Movies. I'll try to fix it

68kdmd commented 2 months ago

I see. The TMM is pretty useful for quickly moving/organizing torrents data, and I use qbit_manage to automate TMM on for all my torrents. It gave me a frustrating experience initially (mass file copying/moving across storage volumes) but it was kind of my fault. I use TMM always now.

Michael-128 commented 2 months ago

I've disabled path auto-complete when automatic torrent management is enabled, since it seems that providing the full path is unnecessary. If you fill in the path field, the path will be appended to the default path for the category like it happened before. You can get the latest version here. Let me know if it works

68kdmd commented 2 months ago

It’s working perfectly now with an option to add additional path manually. Thanks!