yt_dlp · Adding video publishing date to filename after download?

huangapple go评论93阅读模式
英文:

yt_dlp · Adding video publishing date to filename after download?

问题

有关特定编程问题(用于Shell脚本)和软件算法(yt-dlp语法)的问题:

有没有办法在文件名开头添加视频的发布日期?对于频道下载,这将使我能够按视频发布的顺序查看视频。像这样:

2023-05-06 TitleOfVideo [rB_RVxbzFSo].mp4

英文:

I have a question about specific programming problem (for a shell script), a software algorithm (yt-dlp syntax):

Is there any way to add the publishing date of the video at the beginning of the filename? For channel downloads that would enable me to view videos in the order that they have been released. Like so:

2023-05-06 TitleOfVideo [rB_RVxbzFSo].mp4

Thanks a lot!

答案1

得分: 0

你可以使用以下命令来下载视频:yt-dlp -o "%(upload_date>%Y-%m-%d)s %(title)+.100U [%(id)s]" $VIDEOLINK

模板帮助可在 https://github.com/yt-dlp/yt-dlp#output-template 找到。

英文:

You can use yt-dlp -o "%(upload_date>%Y-%m-%d)s %(title)+.100U [%(id)s]" $VIDEOLINK.

Template help can be found on https://github.com/yt-dlp/yt-dlp#output-template

huangapple
  • 本文由 发表于 2023年5月6日 18:11:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/76188325.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定