ttyplayer 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/PKG-INFO +4 -3
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/README.md +3 -2
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/pyproject.toml +1 -1
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/pyproject.toml.orig +1 -1
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/src/ttyplayer/cli.py +1 -1
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/src/ttyplayer/player.py +3 -0
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/LICENSE +0 -0
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/src/ttyplayer/__init__.py +0 -0
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/src/ttyplayer/control.py +0 -0
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/src/ttyplayer/favorites.py +0 -0
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/src/ttyplayer/history.py +0 -0
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/src/ttyplayer/models.py +0 -0
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/src/ttyplayer/tui.py +0 -0
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/src/ttyplayer/tui.tcss +0 -0
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/src/ttyplayer/utils.py +0 -0
- {ttyplayer-0.3.0 → ttyplayer-0.3.1}/src/ttyplayer/youtube.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ttyplayer
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: ttyplayer: a modern YouTube player for the terminal — search, queue, and play audio or video via mpv
|
|
5
5
|
Keywords: youtube,music,player,mpv,cli,terminal,tui,yt-dlp
|
|
6
6
|
License-Expression: MIT
|
|
@@ -58,13 +58,13 @@ ttyplayer stop quit the player
|
|
|
58
58
|
ttyplayer status 1:23 / 4:56 Playing <title>
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
Keys
|
|
61
|
+
Keys in `ttyplayer play` (the terminal player; `ttyplayer tui` has its own table below):
|
|
62
62
|
|
|
63
63
|
| Key | Action |
|
|
64
64
|
|---|---|
|
|
65
65
|
| space | pause / resume |
|
|
66
66
|
| left / right, `,` / `.` | seek 5 seconds |
|
|
67
|
-
| up / down | volume |
|
|
67
|
+
| up / down, `-` / `+` | volume |
|
|
68
68
|
| `n` / `p` | next / previous in the queue |
|
|
69
69
|
| `q` or Ctrl-C | quit, restores the terminal and stops mpv |
|
|
70
70
|
|
|
@@ -82,6 +82,7 @@ Picks accept several numbers at once: `1 3 5` queues those three in that order.
|
|
|
82
82
|
|
|
83
83
|
| Where | Key | Action |
|
|
84
84
|
|---|---|---|
|
|
85
|
+
| table | `↑` / `↓` | move through the list (volume is `-` / `+`) |
|
|
85
86
|
| anywhere | `/` | focus the search box (`esc` returns to the table) |
|
|
86
87
|
| anywhere | `?` | help: every key and command (`esc` closes) |
|
|
87
88
|
| anywhere | `1` `2` `3` `4` | Search / Queue / History / Favorites tab |
|
|
@@ -35,13 +35,13 @@ ttyplayer stop quit the player
|
|
|
35
35
|
ttyplayer status 1:23 / 4:56 Playing <title>
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
Keys
|
|
38
|
+
Keys in `ttyplayer play` (the terminal player; `ttyplayer tui` has its own table below):
|
|
39
39
|
|
|
40
40
|
| Key | Action |
|
|
41
41
|
|---|---|
|
|
42
42
|
| space | pause / resume |
|
|
43
43
|
| left / right, `,` / `.` | seek 5 seconds |
|
|
44
|
-
| up / down | volume |
|
|
44
|
+
| up / down, `-` / `+` | volume |
|
|
45
45
|
| `n` / `p` | next / previous in the queue |
|
|
46
46
|
| `q` or Ctrl-C | quit, restores the terminal and stops mpv |
|
|
47
47
|
|
|
@@ -59,6 +59,7 @@ Picks accept several numbers at once: `1 3 5` queues those three in that order.
|
|
|
59
59
|
|
|
60
60
|
| Where | Key | Action |
|
|
61
61
|
|---|---|---|
|
|
62
|
+
| table | `↑` / `↓` | move through the list (volume is `-` / `+`) |
|
|
62
63
|
| anywhere | `/` | focus the search box (`esc` returns to the table) |
|
|
63
64
|
| anywhere | `?` | help: every key and command (`esc` closes) |
|
|
64
65
|
| anywhere | `1` `2` `3` `4` | Search / Queue / History / Favorites tab |
|
|
@@ -118,7 +118,7 @@ def check_control_dir():
|
|
|
118
118
|
def play(target: list[str], video: bool = False, limit: int = 5):
|
|
119
119
|
"""Play a YouTube link or playlist, or search and pick what to play.
|
|
120
120
|
|
|
121
|
-
Keys while playing: space pause, left/right or , . seek, up/down volume,
|
|
121
|
+
Keys while playing: space pause, left/right or , . seek, up/down or - + volume,
|
|
122
122
|
n next, p previous, q quit.
|
|
123
123
|
"""
|
|
124
124
|
start_playback(resolve(target, limit), video)
|
|
@@ -40,6 +40,9 @@ KEYS = {
|
|
|
40
40
|
"right": ("seek", SEEK_SECONDS),
|
|
41
41
|
"up": ("change_volume", VOLUME_STEP),
|
|
42
42
|
"down": ("change_volume", -VOLUME_STEP),
|
|
43
|
+
"+": ("change_volume", VOLUME_STEP),
|
|
44
|
+
"=": ("change_volume", VOLUME_STEP), # the + key without shift
|
|
45
|
+
"-": ("change_volume", -VOLUME_STEP),
|
|
43
46
|
"n": ("next",),
|
|
44
47
|
"p": ("prev",),
|
|
45
48
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|