Fix logos in Desktop version #22

This commit is contained in:
mrcanelas
2024-03-30 18:40:15 -03:00
parent 25ff963046
commit c00358edb4
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{
"projectName": "tmdb-addon",
"lastCommit": "676e83c"
"lastCommit": "25ff963"
}
+6
View File
@@ -67,6 +67,9 @@ async function getMeta(type, language, tmdbId) {
if (resp.logo && blacklistLogoUrls.includes(resp.logo)) {
delete resp.logo;
}
if (resp.logo) {
resp.logo = resp.logo.replace("http://", "https://")
}
return resp;
})
.catch(console.error);
@@ -118,6 +121,9 @@ async function getMeta(type, language, tmdbId) {
if (resp.logo && blacklistLogoUrls.includes(resp.logo || '')) {
delete resp.logo;
}
if (resp.logo) {
resp.logo = resp.logo.replace("http://", "https://")
}
try {
resp.videos = await getEpisodes(language, tmdbId, res.external_ids.imdb_id, res.seasons);
} catch(e) {