mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-21 06:26:10 +05:00
fix: mixed-content error on loading tmdb posters with https (#524)
This commit is contained in:
@@ -3,8 +3,8 @@ import parseTorrent from 'parse-torrent'
|
|||||||
import ptt from 'parse-torrent-title'
|
import ptt from 'parse-torrent-title'
|
||||||
|
|
||||||
export const getMoviePosters = (movieName, language = 'en') => {
|
export const getMoviePosters = (movieName, language = 'en') => {
|
||||||
const url = 'http://api.themoviedb.org/3/search/multi'
|
const url = `${window.location.protocol}//api.themoviedb.org/3/search/multi`
|
||||||
const imgHost = language === 'ru' ? 'http://imagetmdb.com' : 'http://image.tmdb.org' // https:
|
const imgHost = `${window.location.protocol}//${language === 'ru' ? 'imagetmdb.com' : 'image.tmdb.org'}`
|
||||||
|
|
||||||
return axios
|
return axios
|
||||||
.get(url, {
|
.get(url, {
|
||||||
|
|||||||
Reference in New Issue
Block a user