You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# [toru] big update. moved old download command to 'wget' and made the download command interactively select and download multiple episodes to a specified directory
[toru] big update. moved old download command to 'wget' and made the download command interactively select and download multiple episodes to a specified directory
# This is the commit message #2:
[toru] big update. moved old download command to 'wget' and made the download command interactively select and download multiple episodes to a specified directory
Copy file name to clipboardExpand all lines: cmd/toru/main.go
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ var (
22
22
searchoptsSearch
23
23
downloadDownload
24
24
completionsCompletions
25
+
wgetWGET
25
26
latestLatest
26
27
)
27
28
@@ -41,11 +42,15 @@ func init() {
41
42
iferr!=nil {
42
43
log.Fatal(err)
43
44
}
44
-
d, err:=parser.AddCommand("download", "download torrents", "download torrent from .torrent file, magnet or URL to a .torrent file", &download)
45
+
d, err:=parser.AddCommand("download", "select one or many torrents to download", "download torrent from .torrent file, magnet or URL to a .torrent file", &download)
45
46
iferr!=nil {
46
47
log.Fatal(err)
47
48
48
49
}
50
+
_, err=parser.AddCommand("wget", "wget a torrent file", "wget a torrent file", &wget)
51
+
iferr!=nil {
52
+
log.Fatal(err)
53
+
}
49
54
_, err=parser.AddCommand("latest", "get the latest anime", "get the latest anime from nyaa.si", &latest)
0 commit comments