Skip to content

Commit

Permalink
Fix cover art quality config and default being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
Contextualist committed Mar 9, 2022
1 parent c25d38e commit 65ffd5b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions pkg/builder/youtube.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,14 +391,15 @@ func (yt *YouTubeBuilder) Build(ctx context.Context, cfg *feed.Config) (*model.F
}

feed := &model.Feed{
ItemID: info.ItemID,
Provider: info.Provider,
LinkType: info.LinkType,
Format: cfg.Format,
Quality: cfg.Quality,
PageSize: cfg.PageSize,
PlaylistSort: cfg.PlaylistSort,
UpdatedAt: time.Now().UTC(),
ItemID: info.ItemID,
Provider: info.Provider,
LinkType: info.LinkType,
Format: cfg.Format,
Quality: cfg.Quality,
CoverArtQuality: cfg.Custom.CoverArtQuality,
PageSize: cfg.PageSize,
PlaylistSort: cfg.PlaylistSort,
UpdatedAt: time.Now().UTC(),
}

if feed.PageSize == 0 {
Expand Down

0 comments on commit 65ffd5b

Please sign in to comment.