Skip to content

Commit

Permalink
Merge pull request #101 from Julian-Chu/fix-go-mod-v2
Browse files Browse the repository at this point in the history
fix go mod v2
  • Loading branch information
Julian-Chu committed Aug 16, 2020
2 parents b0d12f7 + b5d666c commit e074941
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This package is a Youtube video download package, for more detail refer [https:/

## Install:
```shell
go get github.com/kkdai/youtube
go get github.com/kkdai/youtube/v2
```

OR
Expand Down Expand Up @@ -62,7 +62,7 @@ Please check out the [example_test.go](example_test.go) for example code.
## Example:
* ### Get information of dotGo-2015-rob-pike video for downloading

`go get github.com/kkdai/youtube/youtubedr`
`go get github.com/kkdai/youtube/v2/youtubedr`

Download video from [dotGo 2015 - Rob Pike - Simplicity is Complicated](https://www.youtube.com/watch?v=rFejpH_tAHM)

Expand All @@ -80,7 +80,7 @@ Please check out the [example_test.go](example_test.go) for example code.
```
* ### Download dotGo-2015-rob-pike-video

`go get github.com/kkdai/youtube/youtubedr`
`go get github.com/kkdai/youtube/v2/youtubedr`

Download video from [dotGo 2015 - Rob Pike - Simplicity is Complicated](https://www.youtube.com/watch?v=rFejpH_tAHM)

Expand All @@ -90,7 +90,7 @@ Please check out the [example_test.go](example_test.go) for example code.

* ### Download video to specific folder and name

`go get github.com/kkdai/youtube/youtubedr`
`go get github.com/kkdai/youtube/v2/youtubedr`

Download video from [dotGo 2015 - Rob Pike - Simplicity is Complicated](https://www.youtube.com/watch?v=rFejpH_tAHM) to current directory and name the file to simplicity-is-complicated.mp4

Expand All @@ -100,7 +100,7 @@ Please check out the [example_test.go](example_test.go) for example code.

* ### Download video with specific quality

`go get github.com/kkdai/youtube/youtubedr`
`go get github.com/kkdai/youtube/v2/youtubedr`

Download video from [dotGo 2015 - Rob Pike - Simplicity is Complicated](https://www.youtube.com/watch?v=rFejpH_tAHM) with specific quality

Expand All @@ -118,7 +118,7 @@ Please check out the [example_test.go](example_test.go) for example code.

* ### Download video with specific itag

`go get github.com/kkdai/youtube/youtubedr`
`go get github.com/kkdai/youtube/v2/youtubedr`

Download video from [dotGo 2015 - Rob Pike - Simplicity is Complicated](https://www.youtube.com/watch?v=rFejpH_tAHM)

Expand Down
2 changes: 1 addition & 1 deletion cmd/youtubedr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"strconv"
"time"

ytdl "github.com/kkdai/youtube/downloader"
ytdl "github.com/kkdai/youtube/v2/downloader"
"github.com/olekukonko/tablewriter"
"golang.org/x/net/proxy"
)
Expand Down
2 changes: 1 addition & 1 deletion downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"os/exec"
"path/filepath"

"github.com/kkdai/youtube"
"github.com/kkdai/youtube/v2"
"github.com/vbauerster/mpb/v5"
"github.com/vbauerster/mpb/v5/decor"
)
Expand Down
2 changes: 1 addition & 1 deletion downloader/downloader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/kkdai/youtube"
"github.com/kkdai/youtube/v2"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"io"
"os"

"github.com/kkdai/youtube"
"github.com/kkdai/youtube/v2"
)

//ExampleDownload : Example code for how to use this package for download video.
Expand Down

0 comments on commit e074941

Please sign in to comment.