File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
# spongebob-cli
2
+
2
3
SpongeBob delivered straight from your terminal
3
4
4
5
![ 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
21
22
```
22
23
Usage of spongebob-cli:
23
24
-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)
25
26
-l list episodes and quit
26
27
-p int
27
28
play the wanted episode without any user interaction (default -1)
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ func downloadAllEpisodes(maxConcurrent int) error {
23
23
24
24
episodesUrls , _ := getEpisodes ()
25
25
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
28
28
sem := semaphore .NewWeighted (int64 (maxConcurrent ))
29
29
ctx := context .TODO ()
30
30
var wg sync.WaitGroup
Original file line number Diff line number Diff line change 17
17
play = flag .Int ("p" , - 1 , "play the wanted episode without any user interaction" )
18
18
list = flag .Bool ("l" , false , "list episodes and quit" )
19
19
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" )
21
21
)
22
22
23
23
func getEpisodes () ([]string , []string ) {
You can’t perform that action at this time.
0 commit comments