mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 11:35:46 +00:00
Fix Twitch live streams on channel, hasMore can now be nullable defaulting to false
This commit is contained in:
parent
a2c63c59c5
commit
c2dce52a5b
2 changed files with 4 additions and 3 deletions
|
@ -7,6 +7,7 @@ import com.futo.platformplayer.BuildConfig
|
|||
import com.futo.platformplayer.api.media.platforms.js.SourcePluginConfig
|
||||
import com.futo.platformplayer.api.media.structures.IPager
|
||||
import com.futo.platformplayer.engine.V8Plugin
|
||||
import com.futo.platformplayer.getOrDefault
|
||||
import com.futo.platformplayer.getOrThrow
|
||||
import com.futo.platformplayer.warnIfMainThread
|
||||
|
||||
|
@ -27,7 +28,7 @@ abstract class JSPager<T> : IPager<T> {
|
|||
this.pager = pager;
|
||||
this.config = config;
|
||||
|
||||
_hasMorePages = pager.getOrThrow(config, "hasMore", "Pager");
|
||||
_hasMorePages = pager.getOrDefault(config, "hasMore", "Pager", false) ?: false;
|
||||
getResults();
|
||||
}
|
||||
|
||||
|
@ -45,7 +46,7 @@ abstract class JSPager<T> : IPager<T> {
|
|||
pager = plugin.catchScriptErrors("[${plugin.config.name}] JSPager", "pager.nextPage()") {
|
||||
pager.invoke("nextPage", arrayOf<Any>());
|
||||
};
|
||||
_hasMorePages = pager.getOrThrow(config, "hasMore", "Pager");
|
||||
_hasMorePages = pager.getOrDefault(config, "hasMore", "Pager", false) ?: false;
|
||||
_resultChanged = true;
|
||||
/*
|
||||
try {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 7645b88a768d1a1c1ea7e4a94abd97362bd5ce17
|
||||
Subproject commit eb198a3d2095f0df28508e8481eebdccdd2a222a
|
Loading…
Add table
Reference in a new issue