英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论