subhra74 / xdm

Powerfull download accelerator and video downloader
https://xtremedownloadmanager.com/
GNU General Public License v2.0
6.7k stars 1.09k forks source link

feature_request(archives): extract and delete archive #151

Open Kristinita opened 4 years ago

Kristinita commented 4 years ago

1. Summary

It would be nice, if would be possible automatically unpack archive content and delete archive.

2. Argumentation

2.1. Common cause

Automation. Saving users time.

2.2. Details

Each time, when I downloaded archive, I need manually unpack archive content and delete it. It takes my time. 3 years ago I tried to find, how I can automate this process, but I can't find an answer.

It would be nice, if I can solve this problem, use XDM.

3. Example of expected behavior

3.1. Summary

After each archive downloading I make these command-line actions.

# [INFO] Extract archive to the same name directory:
# https://askubuntu.com/a/615883/582218
7z x {archive_name}.{archive_extension} -o{archive_name}
# [INFO] Delete archive:
# https://ss64.com/nt/del.html
del {archive_name}.{archive_extension}

See below, What is needed to implement this.

3.2. Commands after downloading the archive

ToolsOptionsAdvanced settings → XDM have setting Run program after all downloads finished. But it for all types of downloads. It would be nice to have separately setting for Compressed type.

3.3. Variables

I can't find in XDM documentation and issues, how I can get variables {archive_name} and {archive_extension} of just downloaded archive. It would be nice to have file variables feature.

4. Checklist

  1. [x] I'm reporting a feature request
  2. [x] I've verified that I'm running XDM the latest version
  3. [x] I've searched the bugtracker for similar feature requests including closed ones

Thanks.

subhra74 commented 4 years ago

Thanks for the detailed suggestion, will add it to backlog