From acf352d4592a9e098a47fe3fe8a5e7ee859a4da8 Mon Sep 17 00:00:00 2001 From: Mirror Date: Mon, 22 Feb 2021 22:04:11 +0300 Subject: [PATCH] Add author name and pixiv_id to tags --- pixiv/downloader.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pixiv/downloader.go b/pixiv/downloader.go index d18da74..0c864bb 100644 --- a/pixiv/downloader.go +++ b/pixiv/downloader.go @@ -52,6 +52,8 @@ func (p *Pixiv) downloadIllust(i Illust) (err error) { art.tags = append(art.tags, tag.Tag) } } + art.tags = append(art.tags, i.UserName) + art.tags = append(art.tags, fmt.Sprintf("pixiv_id_%s", i.UserID)) for pageNumber, page := range i.Pages { directory := fmt.Sprintf("%s/%s_%s/", p.WorkDirectory, i.UserID, i.UserAccount)