We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49d5e26 commit 3f960a9Copy full SHA for 3f960a9
1 file changed
src/ytstudio/commands/comments.py
@@ -7,7 +7,7 @@
7
8
from ytstudio.auth import api, get_authenticated_service, handle_api_error
9
from ytstudio.demo import DEMO_COMMENTS, is_demo_mode
10
-from ytstudio.ui import console, time_ago
+from ytstudio.ui import console, time_ago, truncate
11
12
app = typer.Typer(help="Comment commands")
13
@@ -135,9 +135,7 @@ def list_comments(
135
console.print(f"\n[bold]{label} Comments ({len(comments)})[/bold] — {scope}\n")
136
137
for c in comments:
138
- text = c.text[:150]
139
- if len(c.text) > 150:
140
- text += "..."
+ text = truncate(c.text, 150)
141
142
like_str = f" [dim]({c.likes} likes)[/dim]" if c.likes else ""
143
video_str = f" [dim cyan]on {c.video_id}[/dim cyan]" if c.video_id and not video_id else ""
0 commit comments