italicize the channel name for youtube...for no reason

This commit is contained in:
jan6 2021-11-24 23:44:42 +02:00
parent baa107fdfa
commit 93c00542d5
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ class YouTube:
p.feed(data)
y.update({"channelName": z["name"]})
y.pop("channelId")
irc_string = f"[\x0303Youtube\x03] \x02{y['name']}\x02 ({y['duration']}) uploaded by {y['channelName']} on {y['uploadDate']}"
ansi_string = f"[\x1b[32mYoutube\x1b[0m] \x1b[1m{y['name']}\x1b[0m ({y['duration']}) uploaded by {y['channelName']} on {y['uploadDate']}"
irc_string = f"[\x0303Youtube\x03] \x02{y['name']}\x02 ({y['duration']}) uploaded by \x1d{y['channelName']}\x1d on {y['uploadDate']}"
ansi_string = f"[\x1b[32mYoutube\x1b[0m] \x1b[1m{y['name']}\x1b[0m ({y['duration']}) uploaded by \x1b[03m{y['channelName']}\x1b[0m on {y['uploadDate']}"
print(ansi_string)
return irc_string