Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
fixed download issue and updated version string
Browse files Browse the repository at this point in the history
  • Loading branch information
polymorphicshade committed Sep 4, 2021
1 parent 695970e commit 7cbe84d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ android {
minSdkVersion 19
targetSdkVersion 29
versionCode 975
versionName "0.21.9"
versionName "0.21.9_r2"

multiDexEnabled true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
import org.schabi.newpipe.util.DeviceUtils;
import org.schabi.newpipe.util.ExtractorHelper;
import org.schabi.newpipe.util.ImageDisplayConstants;
import org.schabi.newpipe.util.VideoSegment;
import org.schabi.newpipe.util.external_communication.KoreUtils;
import org.schabi.newpipe.util.ListHelper;
import org.schabi.newpipe.util.Localization;
Expand Down Expand Up @@ -1623,12 +1624,18 @@ public void openDownloadDialog() {
}

videoSegmentsSubscriber = Single.fromCallable(() -> {
VideoSegment[] videoSegments = null;

try {
return SponsorBlockUtils.getYouTubeVideoSegments(getContext(), currentInfo);
videoSegments =
SponsorBlockUtils.getYouTubeVideoSegments(getContext(), currentInfo);
} catch (final Exception e) {
// TODO: handle
return null;
// TODO: handle?
}

return videoSegments == null
? new VideoSegment[0]
: videoSegments;
})
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
Expand Down

0 comments on commit 7cbe84d

Please sign in to comment.