From 0a94e5bc21868cd077d743413a89b9a675ea7720 Mon Sep 17 00:00:00 2001 From: fengqi Date: Sun, 27 Aug 2023 00:32:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=93=9D=E5=85=89=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- movies/utils.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/movies/utils.go b/movies/utils.go index 3958263..784009c 100644 --- a/movies/utils.go +++ b/movies/utils.go @@ -181,7 +181,7 @@ func (d *Movie) downloadImage(detail *tmdb.MovieDetail) error { var err error if len(detail.PosterPath) > 0 { - posterFile := "" + posterFile := d.GetFullDir() + "/poster.jpg" if d.IsFile { suffix := utils.IsVideo(d.OriginTitle) posterFile = d.Dir + "/" + strings.Replace(d.OriginTitle, "."+suffix, "", 1) + "-poster.jpg" @@ -192,7 +192,7 @@ func (d *Movie) downloadImage(detail *tmdb.MovieDetail) error { } if len(detail.BackdropPath) > 0 { - fanArtFile := "" + fanArtFile := d.GetFullDir() + "/fanart.jpg" if d.IsFile { suffix := utils.IsVideo(d.OriginTitle) fanArtFile = d.Dir + "/" + strings.Replace(d.OriginTitle, "."+suffix, "", 1) + "-fanart.jpg" @@ -218,7 +218,7 @@ func (d *Movie) downloadImage(detail *tmdb.MovieDetail) error { } } if image.FilePath != "" { - logoFile := "" + logoFile := d.GetFullDir() + "/clearlogo.jpg" if d.IsFile { suffix := utils.IsVideo(d.OriginTitle) logoFile = d.Dir + "/" + strings.Replace(d.OriginTitle, "."+suffix, "", 1) + "-clearlogo.png"