mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-03 22:59:56 +00:00
Intercept non-implemented getChannelPlaylists
This commit is contained in:
parent
a3070d8d08
commit
152b9b23cd
1 changed files with 2 additions and 0 deletions
|
@ -409,6 +409,8 @@ open class JSClient : IPlatformClient {
|
||||||
@JSDocsParameter("channelUrl", "A channel url (this platform)")
|
@JSDocsParameter("channelUrl", "A channel url (this platform)")
|
||||||
override fun getChannelPlaylists(channelUrl: String): IPager<IPlatformPlaylist> = isBusyWith("getChannelPlaylists") {
|
override fun getChannelPlaylists(channelUrl: String): IPager<IPlatformPlaylist> = isBusyWith("getChannelPlaylists") {
|
||||||
ensureEnabled();
|
ensureEnabled();
|
||||||
|
if(!capabilities.hasGetChannelPlaylists)
|
||||||
|
return@isBusyWith EmptyPager();
|
||||||
return@isBusyWith JSPlaylistPager(config, this,
|
return@isBusyWith JSPlaylistPager(config, this,
|
||||||
plugin.executeTyped("source.getChannelPlaylists(${Json.encodeToString(channelUrl)})"));
|
plugin.executeTyped("source.getChannelPlaylists(${Json.encodeToString(channelUrl)})"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue