kiddin9 / openwrt-packages

openwrt packages
Apache License 2.0
1.79k stars 630 forks source link

luci-app-qbittorrent #22

Closed erdoukki closed 2 years ago

erdoukki commented 2 years ago

init.d modify the Downloads\SavePath and do not set correctly the $download_dir resolved by https://github.com/kiddin9/openwrt-packages/pull/21

kiddin9 commented 2 years ago

The $download_dir set at https://github.com/kiddin9/openwrt-packages/blob/e0414a15d01a3db5b3b8a9174e723ba80d2aff2c/luci-app-qbittorrent/root/etc/init.d/qbittorrent#L21

erdoukki commented 2 years ago

Yes, but this result in my case of a bad setting ! I am stuck with a partly deleted Downloads\Save instead of being modify by the sed ...

here are my configs;

root@ULTRA-5G:~# cat /etc/config/qbittorrent

config qbittorrent
    option port '8888'
    option profile_dir '/etc/qbittorrent/'
    option download_dir '/mnt/ls421de/RECUP/torrent/'
    option enable '1'

which is correctly set by my proposed fix

root@ULTRA-5G:~# cat /etc/qbittorrent/qBittorrent/config/qBittorrent.conf | grep SavePath

Downloads\SavePath=/mnt/ls421de/RECUP/torrent/
Downloads\SavePath=/mnt/ls421de/RECUP/torrent/
kiddin9 commented 2 years ago

Got it, I stand corrected, Thanks.