Documentation
¶
Overview ¶
Package assets 提供 javdb assets 命令域:影片媒体资产(图片/预览视频)的发现与下载。 这里只处理影片附属媒体资产;完整影片/磁力下载不是本命令域的职责。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(options *invocation.RootOptions, streams *invocation.Streams) *cobra.Command
New builds the assets command with its subcommands.
func NewDownload ¶
func NewDownload(options *invocation.RootOptions, streams *invocation.Streams) *cobra.Command
NewDownload builds the `assets download` pipe consumer. 输入是 `assets list` 的 TYPE<TAB>URL 记录流,流式逐条处理: scan → parse → download → next,不缓存全部记录。 -d/-o 与默认命名在失败时不落盘,并且绝不覆盖已有文件。 stdout 只输出最终路径,不输出 saved/bytes 装饰。
func NewList ¶
func NewList(options *invocation.RootOptions, streams *invocation.Streams) *cobra.Command
NewList builds the `assets list NUMBER [SELECTOR...]` command. 处理顺序固定:获取详情 → --type 过滤 → 生成 1..N 编号 → selector → metadata probe → 输出; 编号只是当前过滤结果的顺序位置,不是长期资产 ID。
Types ¶
This section is empty.