Luffier / ladderr

Access your remote files directly from qBittorrent Web UI, just like in the desktop app.
MIT License
7 stars 1 forks source link

Can open file but not open containing folder #12

Closed nalllen closed 4 months ago

nalllen commented 4 months ago

Edit: Noticed some inconsistencies with my problem. On my first instance of Qbittorent everything is working fine and i don't have the problems described here, but on the second instance with a slight different path setup i have the problems described bellow.

Using Right click -> Open works just fine so cant figure out why opening folder is having problems


Noticed some problems with opening containing folder. v0.5.4 both ladderr.js and ladderr.reg

Two scenarios:

ubuntu-24.04-desktop-amd64.iso

Content layout set to Original when adding the torrent. No sub folders are created.

ubuntu-22.04.4-desktop-amd64.iso

Content layout set to Create subfolders when adding the torrent. puts the iso in a folder called ubuntu-22.04.4-desktop-amd64


ubuntu-24.04-desktop-amd64.iso

Download the file ubuntu-24.04-desktop-amd64.iso with Content layout set to original It will be downloaded to /data/torrents/test-test/ubuntu-24.04-desktop-amd64.iso

Works Content-> Right click .iso -> Open
Windows mounts the iso file and the virtual dvd-rom folder is opened

Not working Content -> Right click .iso -> Open containing folder Nothing happens

Right click torrent -> Open destination folder Nothing happens

Save Path: /data/torrents/test-test Content: ubuntu-24.04-desktop-amd64.iso


ubuntu-22.04.4-desktop-amd64.iso

I will be downloaded to /data/torrents/test-test/ubuntu-22.04.4-desktop-amd64/ubuntu-22.04.4-desktop-amd64.iso

Works Content-> Right click .iso -> Open
Windows mounts the iso file and the virtual dvd-rom folder is opened

Right click torrent -> Open destination folder Opens the folder S:\torrents\test-test\ubuntu-22.04.4-desktop-amd64

Not working Content -> Right click .iso -> Open containing folder Nothing happens

Content -> Right click folder -> Open containing folder Nothing happens

Save Path: /data/torrents/test-test

Content: Folder ubuntu-22.04.4-desktop-amd64 ubuntu-24.04-desktop-amd64.iso

Ladder Settings Menu Remote path/data/torrents/ Local path S:\torrents\


Settings for working Qbittorent instance

In this instance i don't have any of the problems above and can open files by Content -> Right click .iso -> Open containing folder

Unraid Host Path: /mnt/user/data/torrents/ Container Path: /data/torrents

Windows Map network drive W:\

real location \unraid\data

Torrent location example W:\torrents \unraid\data\torrents

Ladder Settings Menu Remote path/data/torrents/ Local path W:\torrents\

Settings for not working Qbittorent instance

This instance of qbittorent have the problem posted above

Unraid Host Path: /mnt/user/data2/data/torrents/ Container Path: /data/torrents

Windows Map network drive S:\

real location \unraid\data2\data

Torrent location example S:\torrents \unraid\data2\data\torrents

Ladder Settings Menu Remote path/data/torrents/ Local path S:\torrents\

nalllen commented 4 months ago

Posted a edit at the top of the first message and the difference between the two qbittorent instances at the bottom.

I have two instances of Qbit running one is having the problems the other is not having the problem.

i would say the main difference is with the Windows settings ,\unraid\data mapped to W:\ and \unraid\data2\data mapped to S:\

I assumed if my setup was wrong or broken i wouldn't be able to open anything but since Right click -> open works fine am at a loss

Luffier commented 4 months ago

Thanks for the detail description. Are you using a Chromium-base browser (like Chrome)? If so, can you try the following version:

https://github.com/Luffier/ladderr/blob/chromium-first-time-fix/ladderr.js

I suspect it may be a permission problem with Chromium-base browsers, I actually encountered the same bug (opening files works but opening folders doesn't). You should get a popup warning you about permission, if you check the always trust this domain checkbox, it should never appear again and work every time.

nalllen commented 4 months ago

Chrome is my main browser until manifest 3 comes but qbittorent web ui lags a bit if i have a lot of torrents in the client, i suspect some plugin is the cause but haven't looked into it.

So for qbit im using firefox with tampermonkey as the only plugin.

I tried the ladderr.js you posted and it works perfectly in chrome and everything is opening as it should :)

i guess that narrows it down a bit to firefox, i deleted cookies and site data so i could get it to ask for permission and set it to allow but that didn't solve anything sadly

image

Luffier commented 4 months ago

There should be two, ladder-open and ladder-select:

image

At least I can now reproduce the problem, I should have a fix soon. In the meantime, you can force it to ask for permission by running the following in the console:

window.open('ladderr-select:')
nalllen commented 4 months ago

Can confirm, running that in the console makes it work!

Thanks for checking on all my issues so fast 😄

Luffier commented 4 months ago

Should be fixed with version 0.5.5 😌.