patch
This commit is contained in:
parent
8b54fa9c7b
commit
a262545322
1 changed files with 3 additions and 3 deletions
|
@ -674,9 +674,9 @@ while True:
|
|||
request = youtube.videos().list(part='snippet,statistics', id=video_id)
|
||||
details = request.execute()
|
||||
title = details['items'][0]['snippet']['title']
|
||||
channel = details['items'][0]['snippet']['channelTitle']
|
||||
channel = details['items'][0]['statistics']['']
|
||||
multiline("(" + nick + ") [▶️ YouTube] {title} | Author: {channel}", channel)
|
||||
channel_yt = details['items'][0]['snippet']['channelTitle']
|
||||
channelviews = 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())
|
||||
|
|
Loading…
Reference in a new issue