mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
511ee5febe
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ class StremioC : MainAPI() {
|
||||||
mainUrl = mainUrl.fixSourceUrl()
|
mainUrl = mainUrl.fixSourceUrl()
|
||||||
val res = tryParseJson<Manifest>(app.get("${mainUrl}/manifest.json").text) ?: return null
|
val res = tryParseJson<Manifest>(app.get("${mainUrl}/manifest.json").text) ?: return null
|
||||||
val lists = mutableListOf<HomePageList>()
|
val lists = mutableListOf<HomePageList>()
|
||||||
res.catalogs.forEach { catalog ->
|
res.catalogs.apmap { catalog ->
|
||||||
catalog.toHomePageList(this)?.let {
|
catalog.toHomePageList(this)?.let {
|
||||||
if (it.list.isNotEmpty()) lists.add(it)
|
if (it.list.isNotEmpty()) lists.add(it)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue