This repository was archived by the owner on Jan 21, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
src/main/java/org/schabi/newpipe/fragments/detail Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ android {
18
18
minSdkVersion 19
19
19
targetSdkVersion 29
20
20
versionCode 975
21
- versionName " 0.21.9 "
21
+ versionName " 0.21.9_r2 "
22
22
23
23
multiDexEnabled true
24
24
Original file line number Diff line number Diff line change 91
91
import org .schabi .newpipe .util .DeviceUtils ;
92
92
import org .schabi .newpipe .util .ExtractorHelper ;
93
93
import org .schabi .newpipe .util .ImageDisplayConstants ;
94
+ import org .schabi .newpipe .util .VideoSegment ;
94
95
import org .schabi .newpipe .util .external_communication .KoreUtils ;
95
96
import org .schabi .newpipe .util .ListHelper ;
96
97
import org .schabi .newpipe .util .Localization ;
@@ -1623,12 +1624,18 @@ public void openDownloadDialog() {
1623
1624
}
1624
1625
1625
1626
videoSegmentsSubscriber = Single .fromCallable (() -> {
1627
+ VideoSegment [] videoSegments = null ;
1628
+
1626
1629
try {
1627
- return SponsorBlockUtils .getYouTubeVideoSegments (getContext (), currentInfo );
1630
+ videoSegments =
1631
+ SponsorBlockUtils .getYouTubeVideoSegments (getContext (), currentInfo );
1628
1632
} catch (final Exception e ) {
1629
- // TODO: handle
1630
- return null ;
1633
+ // TODO: handle?
1631
1634
}
1635
+
1636
+ return videoSegments == null
1637
+ ? new VideoSegment [0 ]
1638
+ : videoSegments ;
1632
1639
})
1633
1640
.subscribeOn (Schedulers .io ())
1634
1641
.observeOn (AndroidSchedulers .mainThread ())
You can’t perform that action at this time.
0 commit comments