Browse Source

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

master
jan6 2 months ago
parent
commit
93c00542d5
  1. 4
      youtube.py

4
youtube.py

@ -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

Loading…
Cancel
Save