-
Notifications
You must be signed in to change notification settings - Fork 478
download cmd handles playlist & video #178
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
base: master
Are you sure you want to change the base?
Conversation
078c5de to
c2d27ec
Compare
| exitOnError(download(args[0])) | ||
| if playlistID, err := youtube.ExtractPlaylistID(args[0]); err != nil { | ||
| if videoID, err := youtube.ExtractVideoID(args[0]); err != nil { | ||
| exitOnError(errNotID) |
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.
Please try to keep the code more on the left. You don't need the else if you write instead:
videoID, err := youtube.ExtractVideoID(args[0])
if err != nil {
exitOnError(errNotID)
}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.
@corny modifed, could you have a look?
774e6d7 to
4cef99d
Compare
4cef99d to
36cfe33
Compare
6ef3171 to
bc29310
Compare
|
Can you please finish merging this PR into the master? |
4da7717 to
a22d61b
Compare
Description
download cmd now accepts a playlist ID/URL and downloads all media in the playlist.
Issues to fix
Please link issues this PR will fix:
#[issue number]
if no relevant issue, but this will fix something important for reference
, please free to open an issue.
Reminding
Something you can do before PR to reduce time to merge