【发布时间】:2020-08-11 07:30:53
【问题描述】:
我正在下载完整的 YouTube 播放列表,但我不想保存视频 ID。
例如,我已经下载了这些文件:
Lecture 1 - Course Logistics and Introduction to SwiftUI-jbtqIBpUG7g.en.vtt
Lecture 1 - Course Logistics and Introduction to SwiftUI-jbtqIBpUG7g.mp4
Lecture 10 - Navigation + TextField-CKexGQuIO7E.en.srt.vtt
Lecture 10 - Navigation + TextField-CKexGQuIO7E.mp4
我希望它是:
Lecture 1 - Course Logistics and Introduction to SwiftUI.en.srt.vtt
Lecture 1 - Course Logistics and Introduction to SwiftUI.mp4
Lecture 10 - Navigation + TextField.en.vtt
Lecture 10 - Navigation + TextField.mp4
我怎样才能完成它?
【问题讨论】:
-
欢迎来到 SO。在 SO 上,我们确实鼓励用户添加他们为解决问题中自己的问题而付出的努力,这是非常值得鼓励的。所以请在您的问题中添加相同的内容,然后让我们知道。
-
How can I get it done?下载文件,然后打开您选择的文件资源管理器并导航到包含文件的目录,然后重命名文件并删除点之前的-somethingsomething部分。 -
类似:
echo "Lecture 1 - Course Logistics and Introduction to SwiftUI-jbtqIBpUG7g.mp4" | sed 's/\-[a-zA-Z0-9]\+//
标签: bash shell youtube-dl