forked from recloudstream/cloudstream
Fixed poster again NginxProvider (#962)
* Added Nginx Provider and Nginx settings * fixed some stuff * updated NginxProvider to use latest newEpisode method * hide nginx provider when no url specified * fixed some stuff * removed useless credentials variable * added url to my website * fixed tabulation * Update settings.xml * nvm * fixed poster not loading when logged in * Fix Nginx poster Now using addPoster function in Nginx * fixed poster NginxProvider fixed them in main page (I forgor) Co-authored-by: sarlay <dev@sarlays.com>
This commit is contained in:
parent
e2841847f1
commit
ed6c16c780
1 changed files with 8 additions and 13 deletions
|
@ -218,31 +218,26 @@ class NginxProvider : MainAPI() {
|
||||||
|
|
||||||
if (isMovieType) {
|
if (isMovieType) {
|
||||||
val movieName = nfoContent.select("title").text()
|
val movieName = nfoContent.select("title").text()
|
||||||
|
|
||||||
val posterUrl = mediaRootUrl + "poster.jpg"
|
val posterUrl = mediaRootUrl + "poster.jpg"
|
||||||
|
return@mapNotNull newMovieSearchResponse(
|
||||||
return@mapNotNull MovieSearchResponse(
|
|
||||||
movieName,
|
movieName,
|
||||||
mediaRootUrl,
|
mediaRootUrl,
|
||||||
this.name,
|
|
||||||
TvType.Movie,
|
TvType.Movie,
|
||||||
posterUrl,
|
) {
|
||||||
null,
|
addPoster(posterUrl, authHeader)
|
||||||
)
|
}
|
||||||
} else { // tv serie
|
} else { // tv serie
|
||||||
val serieName = nfoContent.select("title").text()
|
val serieName = nfoContent.select("title").text()
|
||||||
|
|
||||||
val posterUrl = mediaRootUrl + "poster.jpg"
|
val posterUrl = mediaRootUrl + "poster.jpg"
|
||||||
|
|
||||||
TvSeriesSearchResponse(
|
newTvSeriesSearchResponse(
|
||||||
serieName,
|
serieName,
|
||||||
nfoPath,
|
nfoPath,
|
||||||
this.name,
|
|
||||||
TvType.TvSeries,
|
TvType.TvSeries,
|
||||||
posterUrl,
|
) {
|
||||||
null,
|
addPoster(posterUrl, authHeader)
|
||||||
null,
|
}
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue