johman10 / flood-for-transmission

A Flood (https://github.com/Flood-UI/flood) clone for Transmission
GNU General Public License v3.0
323 stars 31 forks source link

Broken file selector #575

Open TougeAI opened 2 months ago

TougeAI commented 2 months ago

The webui file chooser isn't passing the correct file index to the client. Here I've set 1 folder of a multi-folder torrent to download, but the result is just two files are downloaded as the ui is passing a sequential block (see 3rd screenshot) and not what actually belongs to that folder (which is shown in the 2nd screenshot).

Latest flood-ui (https://github.com/johman10/flood-for-transmission/commit/782e5c54b7287a1020fa43c170ca1c5824f9e755) Transmission 4.0.5

  1. webui
  2. actual folder in transmission cli
  3. what the webui passed to transmission
johman10 commented 2 months ago

I aimed to fix this with https://github.com/johman10/flood-for-transmission/commit/5f2ec4419506b37b103656a5e01808f94943f561. But it seems like it didn't work... I will have to have another look, but if you have any ideas on how to resolve this please feel free to open a pull request!

johman10 commented 1 month ago

@TougeAI I tried to reproduce this on the latest version but it's not working. Are you 100% sure you're running the latest version?

How are you running the UI? Do you happen to be running it as part of a docker container? If so you will have to wait for a new release from the docker image to get the latest version of the UI as building the UI is part of the Dockerfile which will only executed upon building the image.

Please let me know whether updating the UI fixes the issue for you.

TougeAI commented 1 month ago

100%, grabbed the latest version from today too but it's still the same. I am running as part of a docker container, the latest linuxserver build with TRANSMISSION_WEB_HOME variable pointing to the unzipped webui folder.

It's like something is sorting the files into size order before passing the array?

Webui showing a completed torrent, only this folder selected:

Screenshot 2024-05-18 at 17 52 36

transmission remote, grep just that folder vs what it actually grabbed:

Screenshot 2024-05-18 at 17 55 45

My flood config:

{
    "DARK_MODE": "auto",
    "SWITCH_COLORS": false,
    "NOTATION_24H": true,
    "WRAP_HEADER": true,
    "COMMON_PATH": ["/data/downloads/sonarr","/data/downloads/radarr","/data/downloads/done"],
    "COLUMNS": [
        { "label": "Name", "width": 600, "enabled": true },
        { "label": "Percent Complete", "width": 300, "enabled": true },
        { "label": "Download Speed", "width": 100, "enabled": true },
        { "label": "Upload Speed", "width": 100, "enabled": true },
        { "label": "File Size", "width": 100, "enabled": true },
        { "label": "Uploaded", "width": 100, "enabled": true },
        { "label": "Base Path", "width": 100, "enabled": true },
        { "label": "Ratio", "width": 100, "enabled": true },
        { "label": "Status", "width": 100, "enabled": true },
        { "label": "Total Leechers", "width": 100, "enabled": true },
        { "label": "Total Seeders", "width": 100, "enabled": true },
        { "label": "Activity", "width": 100, "enabled": true }
    ],
    "SORT_COLUMN": "Activity",
    "SORT_DIRECTION": "desc",
    "SHOW_DISK_USAGE": false
}
digdug3 commented 2 weeks ago

Have the same issue. transmission-daemon 4.0.6+dfsg-1 When selecting files to download the last one wasn't downloaded.