Skip to content

Commit a9eeb1c

Browse files
committed
Update download flag description
1 parent acb600b commit a9eeb1c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# spongebob-cli
2+
23
SpongeBob delivered straight from your terminal
34

45
![example](https://github.com/overflowy/spongebob-cli/assets/98480250/c3280a20-bc16-40c5-b1d8-6ce4602331f1)
@@ -21,7 +22,7 @@ Running spongebob-cli without any flags will prompt the user to select the episo
2122
```
2223
Usage of spongebob-cli:
2324
-d int
24-
download all episodes asynchronously but max [d] episode at a time (default -1)
25+
download all episodes asynchronously but max [d] episodes at a time (default -1)
2526
-l list episodes and quit
2627
-p int
2728
play the wanted episode without any user interaction (default -1)

spongebob-cli/download_all_episodes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ func downloadAllEpisodes(maxConcurrent int) error {
2323

2424
episodesUrls, _ := getEpisodes()
2525

26-
// asynchronously download all episodes but max {maxConcurrent} episode at a time.
27-
// source: https://gist.github.com/AntoineAugusti/80e99edfe205baf7a094?permalink_comment_id=4088548#gistcomment-4088548
26+
// Asynchronously download all episodes but max {maxConcurrent} episode at a time.
27+
// Source: https://gist.github.com/AntoineAugusti/80e99edfe205baf7a094?permalink_comment_id=4088548#gistcomment-4088548
2828
sem := semaphore.NewWeighted(int64(maxConcurrent))
2929
ctx := context.TODO()
3030
var wg sync.WaitGroup

spongebob-cli/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var (
1717
play = flag.Int("p", -1, "play the wanted episode without any user interaction")
1818
list = flag.Bool("l", false, "list episodes and quit")
1919
videoPlayer = flag.String("vp", "mpv", "use another video player [default=mpv]")
20-
download = flag.Int("d", -1, "download all episodes asynchronously but max [d] episode at a time")
20+
download = flag.Int("d", -1, "download all episodes asynchronously but max [d] episodes at a time")
2121
)
2222

2323
func getEpisodes() ([]string, []string) {

0 commit comments

Comments
 (0)