Skip to content

add -re option to rename file#1265

Open
Snowmanazz wants to merge 4 commits intoiawia002:masterfrom
Snowmanazz:master
Open

add -re option to rename file#1265
Snowmanazz wants to merge 4 commits intoiawia002:masterfrom
Snowmanazz:master

Conversation

@Snowmanazz
Copy link
Copy Markdown

@Snowmanazz Snowmanazz commented Aug 16, 2023

to fix #1172

@Snowmanazz Snowmanazz changed the title fix #1172 add -re option to rename file Aug 16, 2023
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread app/app.go Outdated
Comment thread app/app.go

if c.Bool("rename") {
for _, v := range data {
v.Title += fmt.Sprintf("-%v", time.Now().Unix())
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If more than one file is downloaded at a time, the timestamp is the same inside this loop

Snowmanazz and others added 3 commits August 16, 2023 13:55
Co-authored-by: Xinzhao Xu <z2d@jifangcheng.com>
Co-authored-by: Xinzhao Xu <z2d@jifangcheng.com>
Co-authored-by: Xinzhao Xu <z2d@jifangcheng.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

可否支持自动重命名?

2 participants