Skip to content

Commit

Permalink
fixed issue(#26), a logic error introduced in commit 71fac22
Browse files Browse the repository at this point in the history
  • Loading branch information
elvis972602 committed Aug 15, 2023
1 parent 71fac22 commit c70c3e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kemono/kemono.go
Expand Up @@ -259,7 +259,7 @@ func (k *Kemono) Start() {
// filter attachments
for i, post := range posts {
// download banner if banner is true or file is not image
if (k.Banner && post.File.Path != "") || !isImage(filepath.Ext(post.File.Name)) {
if (k.Banner || !isImage(filepath.Ext(post.File.Name))) && post.File.Path != "" {
res := make([]File, len(post.Attachments)+1)
copy(res[1:], post.Attachments)
res[0] = post.File
Expand Down

0 comments on commit c70c3e4

Please sign in to comment.