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
{{ message }}
This repository was archived by the owner on Mar 21, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: mps_youtube/helptext.py
+45-13Lines changed: 45 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,15 @@
1
1
"""
2
2
Holds all help text
3
3
"""
4
-
from . importc, g
5
-
from .utilimportget_near_name, F
6
-
fromurllib.requestimporturlopen
4
+
importpathlib
5
+
importre
6
+
importsocket
7
7
fromurllib.errorimportHTTPError, URLError
8
-
importsocket, re
8
+
fromurllib.requestimporturlopen
9
+
10
+
from . importc, g
11
+
from .utilimportF, get_near_name
12
+
9
13
10
14
defhelptext():
11
15
""" Return a list of help categories, with their contents. """
@@ -27,8 +31,8 @@ def helptext():
27
31
{2}d <number>{1} - download video <number>
28
32
{2}r <number>{1} - show videos related to video <number>
29
33
{2}u <number>{1} - show videos uploaded by uploader of video <number>
30
-
{2}x <number>{1} - copy item <number> url to clipboard. (See the note below)
31
-
Note: This feature requires `pyperclip` which is installed automatically when you install yewtube but
34
+
{2}x <number>{1} - copy item <number> url to clipboard. (See the note below)
35
+
Note: This feature requires `pyperclip` which is installed automatically when you install yewtube but
32
36
Linux users further need to install `xsel` or `xclip` manually using apt, dnf, pacman, zypper or whatever package manager you use.
33
37
Visit https://pyperclip.readthedocs.io/en/latest/index.html#not-implemented-error for more info.
34
38
@@ -56,15 +60,15 @@ def helptext():
56
60
57
61
{2}album <album title>{1} - Search for matching tracks using album title
58
62
{2}channels <Channel name>{1} - Search for channels by channelname
59
-
{2}live <category>{1} - Search for livestreams from a range of categories.
63
+
{2}live <category>{1} - Search for livestreams from a range of categories.
60
64
Categories: {2}{3}{1}
61
65
62
66
{2}mkp <fullfilepath>{1} - Creates a playlist automatically with video titles from fullfilepath
63
67
<fullfilepath>: Full path of text file with one title per line
64
-
68
+
65
69
{2}mkp -d <search result number>{1} - Create a playlist based on tracks
66
70
listed in that videos description. (Alternatively one can use {2}--description{1})
67
-
71
+
68
72
{2}user <username>{1} - list YouTube uploads by <username>.
69
73
{2}user <username>/<query>{1} - as above, but matches <query>.
70
74
{2}userpl <username>{1} - list YouTube playlists created by <username>.
@@ -249,7 +253,7 @@ def helptext():
249
253
{2}set history true|false{1} - record play history
250
254
{2}set input_history true|false{1} - record command input history
251
255
{2}set vlc_dummy_interface true|false{1} - whether to hide VLC GUI or not (hides when true)
252
-
256
+
253
257
Additionally, {2}set -t{1} may be used to temporarily change a setting without
254
258
saving it to disk
255
259
""".format(c.ul, c.w, c.y, '\n{0}set max_results <number>{1} - show <number> re'
@@ -304,9 +308,26 @@ def helptext():
304
308
command
305
309
306
310
Use {2}clearcache{1} command to clear the cache.
307
-
""".format(c.ul, c.w, c.y)),
308
-
("new", "Check if new version is available", """{0}What's New{1}\n{3}""".format(c.ul, c.w, c.y, "get_changelog()")),
309
-
("tor", "Check Tor Status. NOTE: Use this feature at your own risk. In case of any kind of damage we will not be responsible.", """{0}Tor Status{1}\n{3}""".format(c.ul, c.w, c.y, "check_tor()"))]
0 commit comments