Skip to content

Commit

Permalink
remove debug option from ytdl
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskern committed Apr 1, 2017
1 parent e61a99b commit 2c08d39
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ getStdin()
.then(input => {
if (YOUTUBE_HOST.test(input)) {
spinner.stopAndPersist({symbol: '🚀', text: 'Found youtube link'})
ytdl.getInfo(input, { debug: true }, (err, info) => {
ytdl.getInfo(input, {}, (err, info) => {
if (err) {
open(input)
return
} else {
open(info.formats[0].url)
}

open(info.formats[0].url)
})
} else {
open(input)
Expand Down

0 comments on commit 2c08d39

Please sign in to comment.