Youtube video title

Now with the title and not more with the id
This commit is contained in:
Markus 2016-01-16 23:36:36 +01:00
parent a48d4e9374
commit b8e7e97efe
2 changed files with 1 additions and 1 deletions

BIN
cache/q6-ZGAGcJrk vendored Normal file

Binary file not shown.

2
red.py
View File

@ -1031,7 +1031,7 @@ async def playVideo(message):
data = {"filename" : 'https://www.youtube.com/watch?v=' + id, "type" : "singleSong"}
currentPlaylist = Playlist(data)
if canDeleteMessages(message):
await client.send_message(message.channel, "`Playing youtube video {} requested by {}`".format(await youtubeparser.getTitle(currentPlaylist.playlist[currentPlaylist.current]), currentPlaylist.playlist[currentPlaylist.current]))
await client.send_message(message.channel, "`Playing youtube video {} requested by {}`".format(await youtubeparser.getTitle(currentPlaylist.playlist[currentPlaylist.current]), message.author.name))
await client.delete_message(message)
if toDelete:
await client.delete_message(toDelete)