deniscerri / ytdlnis

Android Video/Audio Downloader app using yt-dlp
GNU General Public License v3.0
3.62k stars 123 forks source link

[BUG] APP CRASH - List is empty #541

Closed MustafaMemisogM closed 1 week ago

MustafaMemisogM commented 1 month ago

** Before making an issue make sure you are using the latest version of yt-dlp in the settings. Perhaps try using the nightly version of yt-dlp. If that didn't help, proceed with the issue

Describe the bug A clear and concise description of what the bug is. When observe resources find a video than app is crashed

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Screenshots / Video Recording If applicable, add them to help explain your problem.

(please complete the following information):

Additional context Add any other context about the problem here.

List is empty.

kotlin.collections.CollectionsKt.first(SourceFile:2) com.deniscerri.ytdl.work.DownloadWorker$doWork$3$emit$4$1$4$1.invokeSuspend(SourceFile:734) kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9) kotlinx.coroutines.DispatchedTask.run(Unknown Source:96) kotlinx.coroutines.EventLoopImplBase.processNextEvent(SourceFile:139) kotlinx.coroutines.JobKt.runBlocking(SourceFile:102) kotlinx.coroutines.JobKt.runBlocking$default(SourceFile:3) com.deniscerri.ytdl.work.DownloadWorker$doWork$3$emit$4$1.invokeSuspend(SourceFile:853) kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9) kotlinx.coroutines.DispatchedTask.run(Unknown Source:96) androidx.work.Worker$2.run(SourceFile:39) kotlinx.coroutines.scheduling.TaskImpl.run(Unknown Source:2) kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:96)

zaednasr commented 1 month ago

dm me on telegram, i made some changes see if they work for you