Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add select-file option #76

Open
sambul13 opened this issue Dec 21, 2013 · 17 comments
Open

Add select-file option #76

sambul13 opened this issue Dec 21, 2013 · 17 comments
Labels
enhancement Feature request

Comments

@sambul13
Copy link

Most movie downloads include audio in several languages and subtitle choices, and the audio files can be pretty big. Many software downloads include several exe file versions, like x86 and x64. Aria2c has options --show-files and --select-file. But webui-aria2 excludes only --select-file option, despite --show-file can list on the webui page all available files under each torrent, yet the listing is static - no individual files download progress is shown. Pls add:

  • add "Show Included Files" control in "Add Download" form to see a list of files (index numbers) included with a multi-file torrent being added;
  • add "Select" tick control in the "Add Download - Show Files" form next to each file in the list, so only selected files from the multi-file torrent can be chosen to download;
  • show download progress & completion status per each file separately from a multi-file torrent in the corresponding "Torrent Download" section, when Active control is clicked on to expand the section content, i.e. File Cancelled, In-progress, Completed - separately per each file in that torrent.
@ziahamza
Copy link
Owner

ziahamza commented Jun 7, 2014

select-file can be set when adding a new download now. By going to advance download options when adding a new download. But I dont think aria2 exposes functionlity for webui to query the available files to select which is needed to get the indexes of files.

@sambul13
Copy link
Author

sambul13 commented Jun 8, 2014

Thanks for your reply. I posted this issue in aria2 forum (https://sourceforge.net/apps/phpbb/aria2/viewtopic.php?p=1438#p1438), since I don't know whether such feature is currently available or not. Hopefully, aria2 author will clear that out, or possibly add such functionality if missing, since the option to select individual files for download in large torrents is very important and broadly available from just about any torrent downloader (except webui-aria2). :)

Actually, recently added to webui-aria2 "Advanced Options" expose all kind of aria2 settings, so for a user it would be quite difficult to even find the right option related to selecting files. It would be a lot more convenient, if "Choose Files" button was renamed to "Choose Torrent", and an extra "Choose files from torrent to download" button was separately exposed or available via "Choose Torrent" Dialog, since other options are pretty much default and can be set just one time.

For example, when a user clicks "Choose Torrent" button and then selects a particular .torrent file, the files included in that torrent would populate a separate section of "Choose Torrent" window, so the user can then tick or untick "Select File" control next to each file included in that torrent, or tick "Select All" control placed in-line above other controls.

@sambul13
Copy link
Author

Aria2 author informed (https://sourceforge.net/apps/phpbb/aria2/viewtopic.php?p=1444#p1444) that both aria2.getFiles or aria2.tellStatus RPC methods can be used to get indexes of files included in a torrent.

@ziahamza
Copy link
Owner

You can already select the files for downloads which have already started.
pause a download,
uncollapse the download. It should show all files available to download. Remember the indexes of intrerested files
click on download settings next to the pause button, and then fill the select-files field and save

@ziahamza
Copy link
Owner

The problem comes when you want to select files before starting a download.

@sambul13
Copy link
Author

I got this. It seems like aria2 author now suggests to autostart and then autopause a torrent download, and show a popup window with the list of files from the torrent for a user to select. Then close the popup and proceed with download.

Relevant question is, can you show individual files source availability & completeness, and file download progress, when a torrent download is uncollapsed?

@ziahamza
Copy link
Owner

we can show individual files with their progress, but source availability and completeness would not be available as far as the RPC api is concerned I think.

@tatsuhiro-t
Copy link
Contributor

Are you fine with our proposed fix in aria2 for selecting files? Does it work for webui-aria2?

@ziahamza
Copy link
Owner

Coupling pause option when starting a torrent download will solve the problem. I will probably add it along with the ability to change the selected files on the fly for any paused download. I will push in a UI for that whenever I get time

@tatsuhiro-t
Copy link
Contributor

The new option was added to aria2, namely --pause-metadata.

@tino
Copy link

tino commented Aug 31, 2014

Any progress on this? It is probably the only feature missing for me to use it (and enable my homies to use it) as a real torrent downloader...

@ziahamza
Copy link
Owner

ziahamza commented Sep 1, 2014

Sorry for all the delays. Added this long awaited feature. Now to select the files to download, just pause the download and then an icon should appear next to settings button with a list on top. click that to select which files to download.

To always select which files to dowload before it begins, you can pass the --pause-metadata option to aria2 as tatsuhiro said :)

let me know if there are any bugs

@ziahamza
Copy link
Owner

ziahamza commented Sep 1, 2014

The instructions have also been added as a tip in the project README.

@tino
Copy link

tino commented Sep 2, 2014

Thanks!

On Mon, Sep 1, 2014 at 9:22 PM, hamza zia [email protected] wrote:

The instructions have also been added as a tip in the project README.


Reply to this email directly or view it on GitHub
#76 (comment).

@Suncatcher
Copy link

Suncatcher commented Jan 30, 2017

To always select which files to dowload before it begins, you can pass the --pause-metadata option to aria2 as tatsuhiro said :)

Is this option equivalent to option Pause=True in torrent Advanced section? If I use --pause-metadata=True then every added torrent will be paused as if I used this advanced option?

@Suncatcher
Copy link

@ziahamza, can you answer the question?

@ziahamza
Copy link
Owner

@Suncatcher sorry for the late reply.

Yes, Pause=True will probably have the same effect. I tried it and aria2 is able to pick up files and pause the download. I think it may break for cases with some torrents though, if the metadata has not been downloaded. And for those I think best option is either to: set --pause-metadata=True or resume the download for a bit, and pause again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request
Projects
None yet
Development

No branches or pull requests

6 participants