mirror of
https://github.com/ihabunek/twitch-dl
synced 2024-08-30 18:32:25 +00:00
Style the url in video list
This commit is contained in:
parent
68a8b70948
commit
f807d4324b
@ -69,7 +69,7 @@ def _print_video(video):
|
|||||||
print_out("<green>{}</green>".format(video["title"]))
|
print_out("<green>{}</green>".format(video["title"]))
|
||||||
print_out("<cyan>{}</cyan> playing <cyan>{}</cyan>".format(name, video['game']))
|
print_out("<cyan>{}</cyan> playing <cyan>{}</cyan>".format(name, video['game']))
|
||||||
print_out("Published <cyan>{}</cyan> Length: <cyan>{}</cyan> ".format(published_at, length))
|
print_out("Published <cyan>{}</cyan> Length: <cyan>{}</cyan> ".format(published_at, length))
|
||||||
print_out(video["url"])
|
print_out("<i>{}</i>".format(video["url"]))
|
||||||
|
|
||||||
|
|
||||||
def videos(channel_name, limit, offset, sort, **kwargs):
|
def videos(channel_name, limit, offset, sort, **kwargs):
|
||||||
|
@ -5,6 +5,8 @@ import re
|
|||||||
|
|
||||||
START_CODES = {
|
START_CODES = {
|
||||||
'bold': '\033[1m',
|
'bold': '\033[1m',
|
||||||
|
'i': '\033[3m',
|
||||||
|
'u': '\033[4m',
|
||||||
'red': '\033[31m',
|
'red': '\033[31m',
|
||||||
'green': '\033[32m',
|
'green': '\033[32m',
|
||||||
'yellow': '\033[33m',
|
'yellow': '\033[33m',
|
||||||
|
Loading…
Reference in New Issue
Block a user