yangyang
yangyang

Reputation: 1

Deleting video id of the video while downloading via youtube-dl

I'm downloading a full YouTube playlist, but I don't want to save the video id.

For example, I've downloaded those files:

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

I want it to be:

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

How can I get it done?

Upvotes: 0

Views: 1396

Answers (1)

Blattoid
Blattoid

Reputation: 21

You can tell it to only include the title and extension by using -o

youtube-dl -o "%(title)s.%(ext)s" video_url

Upvotes: 2

Related Questions