jarnedemeulemeester / findroid

Third-party native Jellyfin Android app
GNU General Public License v3.0
2.16k stars 137 forks source link

Downloads failed on multiple devices #210

Open AnonymousWebHacker opened 1 year ago

AnonymousWebHacker commented 1 year ago

Device: Redmi 9A , Android 11 2GB RAM On my device it works perfect, I can download media without problems. I press the download button and the system download manager takes care of the rest.

The same does not happen with other household cell phones and tablets. When pressing the download button, it simply does nothing, a download manager does not appear, no notification appears, or anything. The error happens in other Redmi android 10, Redmi android 11 the same, samsung A7, android 7 ..etc

It is a common error in many devices https://github.com/jarnedemeulemeester/findroid/issues/87#issuecomment-1325626164

Jcuhfehl commented 1 year ago

I just mentioned it in the other issue, but you could try to manually enable the files and media permission. Also, if you know how, getting logs from the app might also help.

AnonymousWebHacker commented 1 year ago

It could be app permissions issues, let me check and I'll let you know

AnonymousWebHacker commented 1 year ago

Lo acabo de mencionar en el otro problema, pero puede intentar habilitar manualmente los archivos y el permiso de medios. Además, si sabe cómo, obtener registros de la aplicación también podría ayudar.

After reviewing several times, I realize that if I downloaded any media from the browser, it downloads fine, but when trying to use the download manager, it doesn't allow downloading (this is over Wi-Fi and without internet access)

The problem is not with findroid, it is with the download manager, which in device settings, APP DOWNLOADS, has access to data, but not Wi-Fi

MudssirAhmed commented 1 year ago

I start working on this issue and let you know the updates. @jarnedemeulemeester If possible you can assign it to me.

MudssirAhmed commented 1 year ago

@AnonymousWebHacker Can you share screen recording or steps to reproduce this issue.

MudssirAhmed commented 1 year ago

The first time I downloaded it was working at my side and the download icon will changed to red. And I cancel the download and hit the download button again then the download thing is not happening.

@AnonymousWebHacker is this is your issue.

@jarnedemeulemeester is this the right flow or we need to change it?

AnonymousWebHacker commented 1 year ago

The first time I downloaded it was working at my side and the download icon will changed to red. And I cancel the download and hit the download button again then the download thing is not happening.

@AnonymousWebHacker is this is your issue.

@jarnedemeulemeester is this the right flow or we need to change it?

The download option has 2 errors.

1 - What happens to you happens. If you hit download to a video, and the external download manager starts downloading the video, if you interrupt, you cancel the download in the download manager. In findroid, it will follow the red button, as if it were downloaded correctly, the same thing happens that if you click download again, it does not download

2 - The other error is that if your jellyfin server is on a network (offline) (without internet), and you access the server from your cell phone (without having internet) and the manager will not download anything, until you have internet

MudssirAhmed commented 1 year ago

The first time I downloaded it was working at my side and the download icon will changed to red. And I cancel the download and hit the download button again then the download thing is not happening.

@AnonymousWebHacker is this is your issue.

@jarnedemeulemeester is this the right flow or we need to change it?

The download option has 2 errors.

1 - What happens to you happens. If you hit download to a video, and the external download manager starts downloading the video, if you interrupt, you cancel the download in the download manager. In findroid, it will follow the red button, as if it were downloaded correctly, the same thing happens that if you click download again, it does not download

2 - The other error is that if your jellyfin server is on a network (offline) (without internet), and you access the server from your cell phone (without having internet) and the manager will not download anything, until you have internet

I do not understand the second one, But the work started from my side in the first one. can you share screen recording for better understanding of the second error.

MudssirAhmed commented 1 year ago

@jarnedemeulemeester @AnonymousWebHacker @Jcuhfehl I pushed the chnages in this PR, Now download button is active if entry exist in DB but the file is not exist in File-System.