Fetch
Fetch copied to clipboard
REQUEST_NOT_SUCCESSFULL when download video from google user content
first, thank you for this great library I have a problem when I try to download video from google user content like this URL: https://lh3.googleusercontent.com/MOwGC2EpWDVD1PTijRZbNZwDmP3Ji4QnGFDTkcgSCSZcCZBoBRrg-AvrG082K75fuVJWSdjW3DL-sG16UMnbSwkOen-ienBkMkwutUbiqYaeZbD1dE3mOfNm3hnN0sLLFXyg9akAqg=m18 it shows me a REQUEST_NOT_SUCCESSFULL error
here is my sample code
FetchConfiguration fetchConfiguration = new FetchConfiguration.Builder(this)
.setDownloadConcurrentLimit(3)
.build();
fetch = Fetch.Impl.getInstance(fetchConfiguration);
String url = "https://lh3.googleusercontent.com/MOwGC2EpWDVD1PTijRZbNZwDmP3Ji4QnGFDTkcgSCSZcCZBoBRrg-AvrG082K75fuVJWSdjW3DL-sG16UMnbSwkOen-ienBkMkwutUbiqYaeZbD1dE3mOfNm3hnN0sLLFXyg9akAqg=m18";
String file = "Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).toString() + "/video.mp4";";
final Request request = new Request(url, file);
request.setPriority(Priority.HIGH);
request.setNetworkType(NetworkType.ALL);
fetch.enqueue(request, updatedRequest -> {
//Request was successfully enqueued for download.
}, error -> {
//An error occurred enqueuing the request.
});
what should i do to download the video I can`t download it although i can download it successfully via download Manager API or URL connection
Have you got any way to solve this problem?