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
Copy file name to clipboardExpand all lines: README.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ The CLI allows you to search videos without leaving the terminal:
19
19
20
20
> suchtube funny cats
21
21
> suchtube football top goals --random --open
22
+
> suchtube trending videos --duration=short
23
+
> suchtube documentary --duration=long --random
22
24
23
25
Or start the server:
24
26
@@ -55,19 +57,23 @@ The server listens by default on port 3333, if you want to change this, you can
55
57
56
58
Options while using the CLI are available in the following formats: `--time=10` or `--time 10`. For the server, you should pass the options along with the query, inside the `q` paramater, ie: `?q=funny+cats+--time=10`.
57
59
58
-
-`--time=10`, `-t=10`
60
+
####`--time=10`, `-t=10`
59
61
60
62
Starts the video at the given time in seconds.
61
63
62
-
-`--random`, `-r`
64
+
####`--random`, `-r`
63
65
64
66
Returns a random video taking into account the given topic.
65
67
66
-
-`--open`, `-o`*(CLI only)*
68
+
#### `--duration=short`, `-d=short`
69
+
70
+
Filters videos by duration. Available values: `any` (default), `short`, `medium`, `long`. Uses YouTube's videoDuration parameter to filter results directly from the API.
71
+
72
+
#### `--open`, `-o`*(CLI only)*
67
73
68
74
Opens the video in your browser.
69
75
70
-
-`--full`, `-f`*(CLI only)*
76
+
####`--full`, `-f`*(CLI only)*
71
77
72
78
Displays full video's information. It corresponds to hit `GET /search.json?q=` against the server.
73
79
@@ -78,7 +84,7 @@ You can use the SuchTube search as a library:
0 commit comments