Skip to content

Commit

Permalink
fix: up retcode
Browse files Browse the repository at this point in the history
  • Loading branch information
yzqzss committed Dec 23, 2024
1 parent 0b7d99f commit c134988
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
- [x] m3u8 Downloader
- [x] ffmpeg convert ts to mp4 (?)
- [x] Clean up hlsdl tmp files
- [ ] itemimage
- [x] itemimage
- [x] Check if item exists
- [ ] Uploader
- [x] Uploader
- [ ] modify metadata
- [x] Version check
- [ ] CLI
- [x] CLI
- [X] `aixifan_config.json` Config
- [x] "downloads_home_dir"
- [ ] "ia_key_file"
- [x] "ia_key_file"
- [ ] "cookies_file"
- [x] Download
- [ ] IA S3 Upload
- [x] IA S3 Upload
- [ ] Login/Cookies for higher quality
- [ ] Login/Cookies
- [ ] Remove sensitive info from saved json info
5 changes: 3 additions & 2 deletions pkg/uploader/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func Main(upCmd *flag.FlagSet, upDougaId string, upDelete bool) int {
"external-identifier": externalIdentifiers,
"subject": subject,
"originalurl": {fmt.Sprintf("https://www.acfun.cn/v/ac%s_%d", dougaId, partNum)},
"scanner": {utils.GetUA()},
"scanner": {"saveweb/" + utils.GetUA()},
}

slog.Info("Uploading", "identifier", identifier, "meta", meta)
Expand Down Expand Up @@ -127,5 +127,6 @@ func Main(upCmd *flag.FlagSet, upDougaId string, upDelete bool) int {
}
slog.Info("Deleted", "dougaDir", dougaDir)
}
return 1

return 0
}

0 comments on commit c134988

Please sign in to comment.