Merge remote-tracking branch 'origin/master'

This commit is contained in:
YouROK
2025-04-29 21:21:58 +03:00
4 changed files with 37 additions and 14 deletions

View File

@@ -3,8 +3,8 @@ import parseTorrent from 'parse-torrent'
import ptt from 'parse-torrent-title'
export const getMoviePosters = (movieName, language = 'en') => {
const url = 'http://api.themoviedb.org/3/search/multi'
const imgHost = language === 'ru' ? 'http://imagetmdb.com' : 'http://image.tmdb.org' // https:
const url = `${window.location.protocol}//api.themoviedb.org/3/search/multi`
const imgHost = `${window.location.protocol}//${language === 'ru' ? 'imagetmdb.com' : 'image.tmdb.org'}`
return axios
.get(url, {