Some PR changes

This commit is contained in:
KillerDogeEmpire 2024-02-12 23:15:56 -08:00
parent d7deb25fd1
commit e4c2db24be
2 changed files with 5 additions and 5 deletions

View file

@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.KillerDogeEmpire"/>
<manifest package="com.lagradost"/>

View file

@ -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 {