Skip to content

Commit

Permalink
修正蓝光图片下载
Browse files Browse the repository at this point in the history
  • Loading branch information
fengqi committed Aug 26, 2023
1 parent 8a4c2d3 commit 0a94e5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions movies/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 0a94e5b

Please sign in to comment.