Skip to content

Commit

Permalink
flags edit
Browse files Browse the repository at this point in the history
  • Loading branch information
mejgun committed Aug 11, 2020
1 parent a65a008 commit bc15ec3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func runCmd(cmd *exec.Cmd) (string, error) {
combinedErrStr := fmt.Sprintf("%s\n%s\n%s", err.Error(), outStr, errStr)
return "", errors.New(combinedErrStr)
}
return strings.TrimSpace(outStr), nil
return outStr, nil
}

func getLink(vidurl string, debug debugT, links *linksCache, extractor extractorF) (string, error) {
Expand Down
4 changes: 1 addition & 3 deletions streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ func main() {
var enableDebug bool
var portInt uint
var errorVideoPath string
var youtubedl bool
var customdl string
flag.BoolVar(&version, "version", false, "prints current yt-proxy version")
flag.BoolVar(&enableDebug, "debug", false, "turn on debug")
flag.UintVar(&portInt, "port", 8080, "listen port")
flag.StringVar(&errorVideoPath, "error-video", "corrupted.mp4", "file that will be shown on errors")
flag.BoolVar(&youtubedl, "youtube-dl", true, "use youtube-dl as url extractor")
flag.StringVar(&customdl, "custom-extractor", "", "use custom url extractor")
flag.StringVar(&customdl, "custom-extractor", "", "use custom url extractor, will be called like this: program_name url video_height video_format")
flag.Parse()
if version {
fmt.Println(appVersion)
Expand Down

0 comments on commit bc15ec3

Please sign in to comment.