From 835f6d7ae8deef20eb32ddfc0ebb2cf509c69b68 Mon Sep 17 00:00:00 2001 From: tlsssl Date: Fri, 17 Apr 2020 16:14:29 +0000 Subject: [PATCH] retrieve tmdb and tvdb resources via HTTPS --- src/scraper/helpers/MovieHelper.js | 2 +- src/scraper/helpers/ShowHelper.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scraper/helpers/MovieHelper.js b/src/scraper/helpers/MovieHelper.js index 770e077..34024a8 100644 --- a/src/scraper/helpers/MovieHelper.js +++ b/src/scraper/helpers/MovieHelper.js @@ -131,7 +131,7 @@ export default class MovieHelper extends AbstractHelper { return tmdb.movie.images({ movie_id: tmdbId }).then(i => { - const baseUrl = 'http://image.tmdb.org/t/p/w500' + const baseUrl = 'https://image.tmdb.org/t/p/w500' const tmdbPoster = i.posters.filter( poster => poster.iso_639_1 === 'en' || poster.iso_639_1 === null diff --git a/src/scraper/helpers/ShowHelper.js b/src/scraper/helpers/ShowHelper.js index 1e5494e..afe13d9 100644 --- a/src/scraper/helpers/ShowHelper.js +++ b/src/scraper/helpers/ShowHelper.js @@ -283,7 +283,7 @@ export default class ShowHelper extends AbstractHelper { return tmdb.tv.images({ tv_id: tmdbId }).then(i => { - const baseUrl = 'http://image.tmdb.org/t/p/w500' + const baseUrl = 'https://image.tmdb.org/t/p/w500' const tmdbPoster = i.posters.filter( poster => poster.iso_639_1 === 'en' || poster.iso_639_1 === null @@ -311,7 +311,7 @@ export default class ShowHelper extends AbstractHelper { */ _getTvdbImages(tvdbId: number): Object { return tvdb.getSeriesById(tvdbId).then(i => { - const baseUrl = 'http://thetvdb.com/banners/' + const baseUrl = 'https://thetvdb.com/banners/' const { Holder } = AbstractHelper const images = {