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

save file base on file type #64

Open
Monirzadeh opened this issue Jul 22, 2020 · 1 comment
Open

save file base on file type #64

Monirzadeh opened this issue Jul 22, 2020 · 1 comment
Labels
feature Feature request or related

Comments

@Monirzadeh
Copy link

Describe the solution you'd like
add an op to save file in different folder based on file type

Describe alternatives you've considered
a simple bash script can do that so it can better to add an option to run specific command before start or after finish download file

@Monirzadeh Monirzadeh added the feature Feature request or related label Jul 22, 2020
@pawamoy
Copy link
Owner

pawamoy commented Jul 23, 2020

You might want to try using the listen_to_notifications methods: https://pawamoy.github.io/aria2p/usage/#listening-to-notifications and https://pawamoy.github.io/aria2p/reference/api/#aria2p.api.API.listen_to_notifications. They will allow you to call a function when a download is complete, and then do whatever you want with the files: move them based on their extension / mime-type, rename them, etc.

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

No branches or pull requests

2 participants