Gwindow / WhatAndroid

The What.CD Android App
http://gwindow.github.com/WhatAndroid/
BSD 2-Clause "Simplified" License
100 stars 20 forks source link

Change download folder torrents #30

Closed arbakker closed 9 years ago

arbakker commented 10 years ago

Is there a way to change the download folder to which the torrents are downloaded? Seems that new torrents are downloaded to:

/data/data/com.android.providers.downloads/cache

Since this is a system file path it is difficult to automatically handles these newly downloaded files with Tasker. Would be nice if there is an option to save downloaded torrents to:

/sdcard/whatcd
Twinklebear commented 10 years ago

Interesting, I wasn't sure where the download manager was putting our downloads. This sounds like a great idea for a user preference, I'll put it on our todo list.

justin2221 commented 10 years ago

I can't seem to locate this data folder. Any progress for the directory changing?

arbakker commented 10 years ago

I think the current download location is the default download location chosen by the DownloadManager. To set the download location you can use SetDestinationUri(Uri).

Twinklebear commented 10 years ago

I did check out setDestinationUri but that also sets the filename, so the method I've chosen to go with is to download the file normally so we get the right filename then move it to some user specified folder in your external storage Downloads folder.

The one question I did have for anyone interested in using this feature is that if always putting things under the downloads external data folder would be alright. There might be some permissions issues if the user specifies just any random path and I think this avoids that. What do you think?

As for releasing it development has gotten slowed down a lot with grad school starting but I may have some time next week to get some other tweaks in and put this out.

Twinklebear commented 10 years ago

This should be fixed in the latest release by bfe7a6f, let me know if it works and I'll close this issue :smile:.

arbakker commented 9 years ago

Works like a charm :). However the app did crash a few times when I tried tot enter unusual paths (suchas "/..", "/", "."), since I want the torrents to be saved in Downloads/. Nevertheless my downloaded torrents are synced now automatically with a tasker script to my nas, which is great. Thanks a bunch for implementing this feature!

Twinklebear commented 9 years ago

Great! I'll look into supporting at least "." paths with some tweaks I'm looking into for the download path settings.