File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed
app/src/main/java/com/junkfood/seal
fastlane/metadata/android/en-US Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,10 @@ import android.content.Context
7
7
import android.os.Build
8
8
import android.os.Environment
9
9
import com.google.android.material.color.DynamicColors
10
- import com.junkfood.seal.util.DownloadUtil
11
10
import com.junkfood.seal.util.NotificationUtil
12
11
import com.junkfood.seal.util.PreferenceUtil
13
12
import com.junkfood.seal.util.PreferenceUtil.AUDIO_DIRECTORY
14
13
import com.junkfood.seal.util.PreferenceUtil.VIDEO_DIRECTORY
15
- import com.junkfood.seal.util.PreferenceUtil.YT_DLP
16
14
import com.tencent.mmkv.MMKV
17
15
import com.yausername.ffmpeg.FFmpeg
18
16
import com.yausername.youtubedl_android.YoutubeDL
@@ -34,9 +32,6 @@ class BaseApplication : Application() {
34
32
try {
35
33
YoutubeDL .getInstance().init (this @BaseApplication)
36
34
FFmpeg .getInstance().init (this @BaseApplication)
37
- if (PreferenceUtil .getString(YT_DLP ).isNullOrEmpty()) {
38
- DownloadUtil .updateYtDlp()
39
- }
40
35
} catch (e: YoutubeDLException ) {
41
36
e.printStackTrace()
42
37
}
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ class MainActivity : AppCompatActivity() {
107
107
}
108
108
109
109
fun stopService () {
110
+ if (! isServiceRunning) return
110
111
context.unbindService(connection)
111
112
isServiceRunning = false
112
113
}
Original file line number Diff line number Diff line change @@ -174,7 +174,11 @@ class DownloadViewModel @Inject constructor() : ViewModel() {
174
174
175
175
viewModelScope.launch(Dispatchers .IO ) {
176
176
if (! checkStateBeforeDownload()) return @launch
177
- downloadVideo(stateFlow.value.url)
177
+ try {
178
+ downloadVideo(stateFlow.value.url)
179
+ } catch (e: Exception ) {
180
+ manageDownloadError(e)
181
+ }
178
182
finishProcessing()
179
183
}
180
184
}
Original file line number Diff line number Diff line change
1
+ Bug Fix: App crashes when download error occurs
1
2
Add Danish translations by @comradekingu
2
3
Add Spanish translations by @BobbyESP
Original file line number Diff line number Diff line change 1
- Open-source video/audio downloader for Android, designed and themed with Material- You.
1
+ Video/Audio downloader designed and themed with Material You
You can’t perform that action at this time.
0 commit comments