mirror of
https://github.com/TeamPiped/Piped-Backend
synced 2025-09-05 21:11:05 +02:00
Fix channel save new video handling.
This commit is contained in:
parent
5efa4d22e5
commit
1d2ef196be
@ -214,9 +214,11 @@ public class DatabaseHelper {
|
||||
CollectionUtils.collectPreloadedTabs(info.getTabs())
|
||||
.stream()
|
||||
.parallel()
|
||||
.map(tab -> {
|
||||
.mapMulti((tab, consumer) -> {
|
||||
try {
|
||||
return ChannelTabInfo.getInfo(YOUTUBE_SERVICE, tab).getRelatedItems();
|
||||
ChannelTabInfo.getInfo(YOUTUBE_SERVICE, tab)
|
||||
.getRelatedItems()
|
||||
.forEach(consumer);
|
||||
} catch (ExtractionException | IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user