Skip to content
This repository was archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
Add fixes to main go
Browse files Browse the repository at this point in the history
Nyah Check authored and Nyah committed Jan 6, 2020
1 parent 109cb7a commit ab13f3e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@
package main

import (
"context"
"flag"
"fmt"
_ "net/http/pprof"
@@ -92,7 +91,7 @@ func main() {
}

// parseUrls for video download
func parseUrls(urls strings) []string {
func parseUrls(urls string) []string {
if ids == "" {
return []string{os.Args[1]}
} else {
@@ -103,7 +102,7 @@ func parseUrls(urls strings) []string {
func beginDownload(urls []string) {

if len(urls) < 2 {
if vId, err := getVideoId(url[0]); err != nil {
if vId, err := getVideoId(urls[0]); err != nil {
logrus.Errorf("Error fetching videoId: %v", err)
} else {
if err := decodeVideoStream(vId, path, format, bitrate); err != nil {

0 comments on commit ab13f3e

Please sign in to comment.