mirror of
https://github.com/Jacekun/cs3xxx-repo.git
synced 2024-08-14 23:57:09 +00:00
Some PR changes
This commit is contained in:
parent
d7deb25fd1
commit
e4c2db24be
2 changed files with 5 additions and 5 deletions
|
@ -1,2 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest package="com.KillerDogeEmpire"/>
|
||||
<manifest package="com.lagradost"/>
|
||||
|
|
|
@ -38,18 +38,18 @@ class NoodleMagazineProvider : MainAPI() { // all providers must be an instance
|
|||
return newHomePageResponse(request.name, home)
|
||||
}
|
||||
|
||||
private fun Element.toSearchResult(): AnimeSearchResponse? {
|
||||
private fun Element.toSearchResult(): MovieSearchResponse? {
|
||||
val href = fixUrl(this.selectFirst("a")?.attr("href") ?: return null)
|
||||
val title = this.selectFirst("a div.i_info div.title")?.text() ?: return null
|
||||
val posterUrl = fixUrlNull(this.selectFirst("a div.i_img img")?.attr("data-src"))
|
||||
|
||||
return newAnimeSearchResponse(title, href, TvType.Anime) {
|
||||
return newMovieSearchResponse(title, href, TvType.Movie) {
|
||||
this.posterUrl = posterUrl
|
||||
}
|
||||
}
|
||||
|
||||
override suspend fun search(query: String): List<AnimeSearchResponse> {
|
||||
val searchresult = mutableListOf<AnimeSearchResponse>()
|
||||
override suspend fun search(query: String): List<MovieSearchResponse> {
|
||||
val searchresult = mutableListOf<MovieSearchResponse>()
|
||||
(0..10).toList().apmap { page ->
|
||||
val doc = app.get("$mainUrl/video/$query?p=$page").document
|
||||
//return document.select("div.post-filter-image").mapNotNull {
|
||||
|
|
Loading…
Reference in a new issue