forked from swee/MeowNex
patch
This commit is contained in:
parent
a262545322
commit
8676242d11
1 changed files with 2 additions and 2 deletions
|
@ -675,8 +675,8 @@ while True:
|
||||||
details = request.execute()
|
details = request.execute()
|
||||||
title = details['items'][0]['snippet']['title']
|
title = details['items'][0]['snippet']['title']
|
||||||
channel_yt = details['items'][0]['snippet']['channelTitle']
|
channel_yt = details['items'][0]['snippet']['channelTitle']
|
||||||
channelviews = details['items'][0]['statistics']['viewCount']
|
views = details['items'][0]['statistics']['viewCount']
|
||||||
multiline(f"(" + nick + ") [▶️ YouTube] {title} | Author: {channel_yt} | {views} Views", channel)
|
multiline(f"({nick}) [▶️ YouTube] {title} | Author: {channel_yt} | {views} Views", channel)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
multiline("(" + nick + ") [YouTube Error, is it a valid YouTube URL?]", channel)
|
multiline("(" + nick + ") [YouTube Error, is it a valid YouTube URL?]", channel)
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
|
|
Loading…
Reference in a new issue