Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
api: Fixes to path name without command line argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyah Check committed Sep 20, 2017
1 parent 822dd39 commit 55186f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/apidata.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const (
audioBitRate = 123 //default audio bit rate.

//Video extractor
videoExtractor = "http://youtube.com/get_video_info?video_id="
videoExtractor = "https://youtube.com/get_video_info?video_id="
)

//Youtube Downloader Data file.
Expand Down
Binary file added ytd
Binary file not shown.
4 changes: 4 additions & 0 deletions ytd.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ func main() {
defer pprof.StopCPUProfile()
}
runtime.SetBlockProfileRate(20)

if path == "" {
path, _ = os.Getwd()
}
if len(os.Args) == 1 {
usageAndExit(BANNER, -1)
}
Expand Down

0 comments on commit 55186f6

Please sign in to comment.