-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ feat: 元数据支持指定premiered的格式 #145
Changes from all commits
e368c1d
a686d14
2e903a1
9c7bfcc
a1d1bc5
62c763e
3e7d927
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -328,7 +328,7 @@ yutto <url> -c "d8bc7493%2C2843925707%2C08c3e*81" | |
|username|UP 主用户名|个人空间、收藏夹、稍后再看、合集、视频列表下载| | ||
|series_title|合集标题|收藏夹、视频合集、视频列表下载| | ||
|pubdate🕛|投稿日期|仅投稿视频| | ||
|download_date|下载日期|全部| | ||
|download_date🕛|下载日期|全部| | ||
|owner_uid|UP 主UID|个人空间、收藏夹、稍后再看、合集、视频列表下载| | ||
|
||
> **Note** | ||
|
@@ -410,6 +410,14 @@ cat ~/.yutto_alias | yutto tensura-nikki --batch --alias-file - | |
- 参数 `--metadata-only` | ||
- 默认值 `False` | ||
|
||
#### 指定媒体元数据值的格式 | ||
|
||
当前仅支持 `premiered` | ||
|
||
- 参数 `--metadata-format-premiered` | ||
- 默认值 `"%Y-%m-%d"` | ||
- 常用值 `"%Y-%m-%d %H:%M:%S"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 奇怪..为什么要带上引号.. 虽然用户输入确实一般是 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 唔,这里目前是对齐现有的文档,是用来表示 Python 里表示字面量的方法,不是用户在传入时的写法,不过你说的也有道理,也许默认值使用用户的写法是更为友好的,但整体上都需要修改了 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 都ok。我是担心有用户复制的时候..多复制了引号( |
||
|
||
#### 严格校验大会员状态有效 | ||
|
||
- 参数 `--vip-strict` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lc4t 我这边不太了解 metadata 相关的,请问我直接改成
--metadata-date-format
是否合适呢?因为还有一个 dateadded 字段,只为其中一个添加 format 是不是不太合适?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
目前争议在于premiered,是因为不同APP中识别
premiered
的格式不同,至于dateadded
,这个字段的含义是添加日期,不太确定是否会遇到争议(现在没遇到);更稳妥的做法是整个
metadata
格式都开放自定义,例如--metadata-{field}-format={formatter}
这样子;另外未来可能遇到需要添加metadata自定义字段,比如用户需要手动添加一个
tag=bilibili
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的了解~那就不改了
麻烦看一下这个 PR 修改后有没有什么问题~没有的话我就 merge 啦~