Make less important messages dim

This commit is contained in:
Ivan Habunek 2020-05-17 14:32:37 +02:00
parent 94e9f6aa80
commit 4241ab5d67
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
2 changed files with 6 additions and 5 deletions

View File

@ -156,7 +156,7 @@ def download(video, **kwargs):
def _download_clip(slug, **kwargs):
print_out("Looking up clip...")
print_out("<dim>Looking up clip...</dim>")
clip = twitch.get_clip(slug)
print_out("Found: <green>{}</green> by <yellow>{}</yellow>, playing <blue>{}</blue> ({})".format(
@ -193,21 +193,21 @@ def _download_video(video_id, max_workers, format='mkv', start=None, end=None, k
if start and end and end <= start:
raise ConsoleError("End time must be greater than start time")
print_out("Looking up video...")
print_out("<dim>Looking up video...</dim>")
video = twitch.get_video(video_id)
print_out("Found: <blue>{}</blue> by <yellow>{}</yellow>".format(
video['title'], video['channel']['display_name']))
print_out("Fetching access token...")
print_out("<dim>Fetching access token...</dim>")
access_token = twitch.get_access_token(video_id)
print_out("Fetching playlists...")
print_out("<dim>Fetching playlists...</dim>")
playlists = twitch.get_playlists(video_id, access_token)
parsed = m3u8.loads(playlists)
selected = _select_quality(parsed.playlists)
print_out("\nFetching playlist...")
print_out("<dim>\nFetching playlist...</dim>")
response = requests.get(selected.uri)
response.raise_for_status()
playlist = m3u8.loads(response.text)

View File

@ -8,6 +8,7 @@ from twitchdl import utils
START_CODES = {
'b': '\033[1m',
'dim': '\033[2m',
'i': '\033[3m',
'u': '\033[4m',
'red': '\033[91m',