InfinityLoop1308 / PipePipe

A FLOSS Android app to let you browse YouTube, NicoNico and BiliBili freely.
GNU General Public License v3.0
2.17k stars 47 forks source link

[Bug] Download Related and file open issue #508

Closed iTZLEVI2312 closed 1 week ago

iTZLEVI2312 commented 1 week ago

Checklist (Your issue will be automatically closed if you delete this part)

Describe the bug 1.) Downloading youtube video gives https 401 error sometimes with video download happens to some videos some videos download just fine

2.) The downloaded video doesn't open up when i clicknit gives some ui error,

Steps to reproduce the bug

Device (e.g. Poco F5 )

Error report

Additional context Screenshot_20241111-182202 Screenshot_20241111-180552

Error Log for video open after download:

Exception

java.lang.SecurityException: UID 10247 does not have permission to content://com.android.externalstorage.documents/document/primary%3AMovies%2FComplete%20DM%20Discrete%20Maths%20in%20one%20shot%20_%20Semester%20Exam%20_%20Hindi.mp4 [user 0] [prefix]; you could obtain access using ACTION_OPEN_DOCUMENT or related APIs
    at android.os.Parcel.createExceptionOrNull(Parcel.java:3192)
    at android.os.Parcel.createException(Parcel.java:3176)
    at android.os.Parcel.readException(Parcel.java:3152)
    at android.os.Parcel.readException(Parcel.java:3094)
    at android.app.IActivityTaskManager$Stub$Proxy.startActivity(IActivityTaskManager.java:2103)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:2016)
    at android.app.Activity.startActivityForResult(Activity.java:5904)
    at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:597)
    at android.app.Activity.startActivityForResult(Activity.java:5824)
    at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:583)
    at android.app.Activity.startActivity(Activity.java:6372)
    at android.app.Activity.startActivity(Activity.java:6333)
    at org.schabi.newpipe.util.external_communication.ShareUtils.openIntentInApp(ShareUtils.java:144)
    at us.shandian.giga.ui.adapter.MissionAdapter.viewWithFileProvider(MissionAdapter.java:362)
    at us.shandian.giga.ui.adapter.MissionAdapter.-$$Nest$mviewWithFileProvider(Unknown Source:0)
    at us.shandian.giga.ui.adapter.MissionAdapter$ViewHolderItem.lambda$new$1(MissionAdapter.java:902)
    at us.shandian.giga.ui.adapter.MissionAdapter$ViewHolderItem.$r8$lambda$PAQE6UWV_7gFHr9RCCIksMCusOo(Unknown Source:0)
    at us.shandian.giga.ui.adapter.MissionAdapter$ViewHolderItem$$ExternalSyntheticLambda1.onClick(Unknown Source:2)
    at android.view.View.performClick(View.java:7931)
    at android.view.View.performClickInternal(View.java:7908)
    at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
    at android.view.View$PerformClick.run(View.java:30990)
    at android.os.Handler.handleCallback(Handler.java:959)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8621)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:585)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)


Note: I am not sure if its permission issue but i am. Not getting any permission popup for storage access

!! Thank you for your great work!!

InfinityLoop1308 commented 1 week ago

Yeah its a permission issue. Please make sure that you have allow the app to access the download folder. You can check this config in Setting -> Download -> Video/Audio download folder.

iTZLEVI2312 commented 1 week ago

Yeah its a permission issue. Please make sure that you have allow the app to access the download folder. You can check this config in Setting -> Download -> Video/Audio download folder.

Okkay i noticed the issue persisted until i cleared cache and it got fixed with using auto select download folder

But the download issue still there, some videos have that error ( mainly longer ones)

InfinityLoop1308 commented 1 week ago

It may be that you don't have enough storage space, or some system settings are preventing the download of larger files.

If you can't find a solution, you can also try using Seal (FOSS app specifically for downloading videos).