[Free] Fetch - A powerful and simple download tool

Awesome :+1: extension

1 Like

Superb extension
Why not you Marge “convert Bytes” block code in “download size” or “file size” both blocks it reduces block everytime both blocks use together.

use math block. and divide :heavy_division_sign: to 1024

What an Extention… Wonderful

It could not download drive files properly until we provide big direct download link. For ex

https://doc-14-60-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/0no78ht120jh68pn1u8r6c72utbablam/1561356000000/12024208594662412395/*/1bj3kEsBDdaVolTFanb3km8XlKHvDsfgC?e=download

I could have, but many users shows download info in different ways so I think bytes should be better than any other units.

Thanks for your good posts.

Great extension, thanks!

Note: If downloading to one of the two Shared folders /Download or /Documents on devices with API < 30 you must of course request WRITE permission.

This should now make my extension DownloadToASD obsolete.

3 Likes

Hey, great job done here!

Got a few notes:

  1. when downloaded (finished) file is removed, I can’t redownload same file again even if I change the ID - it creates just 0 byte file and fires “completed”. Need to reinstall Companion to reenable. Btw. how ID does exactly works here?

  2. is it possible to give an option to download directly to scope=>private folder?

Thanks!

You should explain in more detail what you did:

  • Where did you download to?
  • With which Android version?
  • What kind of file is it (media / non-media)?
  • Was the file removed manually or via the app?

Which private folder do you mean (ASD or privateDir, internal storage)?

point 2) solved but

-still have an issue when downloaded file removed manualy AFTER downloadCompleted event
-tested on Android 7 and 10

  1. Blocks are not from Kodular, but from AI2.
  2. Where did you delete the file from the PrivateDir (internal storage)?
    This is of course not possible (without a rooted device).
  3. Did you test with Companion or the APK?
  4. Post the question on AI2 or post the correct Kodular blocks.
  1. And? The AIX is supposed to work with both of them or not?
    2.Ok, forgot about scope=>private. The behaviour is same with other folders too.
  2. both, as you can understand from original post: “to reenable download, Companion reinstall needed”.
  3. This is not a problem of the blocks IMHO, but the problem of the AIX itself. And in the situation, when Mr. Kumar started his thread here, I hope he will notice my post earlier then somewhere else. Actually I dont know if he is checking AI2 forums on regular basis. Forgive me if broke some formal rule, but I just want to solve the problem which start to be crucial because my clock is ticking…

PS: is there some PM option to contact Mr. Kumar directly?

:question:

Is this a typo?

Dear Anke, what exactly yo don’t understand? I described clearly there is a bug in the aix preventing same file being downloaded again after its been removed after donwload is complete. And I call for help to Mr. Kumar. Period. Whats unclear?

I just tried and downloaded the same file 10 times with different file names. In your case, It only happens when your URL is not suitable or the file with the same name already exists. Id is just used to identify the download. If you want to use same ids for multiple download then you could it won’t affect your download. However, make sure you are providing a direct download URL and file with that name does not exist.

What result do you get on APK?

Nope. I think I mis-posted it. I just wanted to say that when a file download is cancelled then you could not resume it, you will have to redownload it (We all know this :sweat_smile: ).

Please post some screenshots or something that proves the downloaded file has removed before redownloading it. Maybe a block that show the file does not exist?

Everything you wrote.

No.

No (at least not with the PrivateDir or ASD)

Everything.

I tested the extension with all paths (Shared folders, ASD, PrivateDir) and with media & non-media files on Android 9, 11, 12.
It works perfectly! The is no bug.

1 Like

I created an extra project to reproduce the error:


Steps to reproduce:

1st loop:

  1. hit “download” - download starts and completes succesfuly
  2. after file is downloaded, hit “check” - returns true
  3. hit “delete”
  4. hit “check” - returns false
  5. verify file deletion in filemanager (file deleted)

2nd loop:

  1. hit “download” - creates 0 byte target file and fires “downloadComplete” instantly
  2. hit “delete”
  3. hit “check” - returns false
  4. verify file deletion in filemanager (file deleted)

3rd loop:

  1. hit “download” - creates 0 byte target file and fires “downloadComplete” instantly
  2. hit “delete”
  3. hit “check” - returns false
  4. verify file deletion in filemanager (file deleted)
    .
    .
    .
    until I reinstall the APK or Companion
    It acts like DownloadCompleted “status” stay “hanged” somewhere…

Same behaviour in Companion and APK on Android 10.
No other way to reenable downloading then uninstall/reinstall of the Companion/APK.

Try this (tested on Android 9, 10, 11, 12):
FetchD_ASD.apk (5.5 MB) EDIT: APK removed

(I’ll remove the APK later.)

An 11MB audio file is downloaded from Google Drive to the ASD and played once downloaded:

Steps to test: 1. Download, 2. Delete, 3. Download. Repeat …

Does it work for you? I think so.

1 Like

Hello, when i press download i get this error

It working for me


Android 12

3 Likes