This commit is contained in:
Nova Cat 2024-12-17 16:36:45 -08:00
parent a262545322
commit 8676242d11

View file

@ -675,8 +675,8 @@ while True:
details = request.execute()
title = details['items'][0]['snippet']['title']
channel_yt = details['items'][0]['snippet']['channelTitle']
channelviews = details['items'][0]['statistics']['viewCount']
multiline(f"(" + nick + ") [▶️ YouTube] {title} | Author: {channel_yt} | {views} Views", channel)
views = details['items'][0]['statistics']['viewCount']
multiline(f"({nick}) [▶️ YouTube] {title} | Author: {channel_yt} | {views} Views", channel)
except Exception as ex:
multiline("(" + nick + ") [YouTube Error, is it a valid YouTube URL?]", channel)
print(traceback.format_exc())