|
|
|
|
@ -36,7 +36,7 @@ def youtube_logger(mfrom,msg): |
|
|
|
|
entry = yt_service.GetYouTubeVideoEntry(video_id=id) |
|
|
|
|
sec = int(entry.media.duration.seconds) |
|
|
|
|
duration = "%02d:%02d:%02d" % (sec/3600, (sec%3600)/60, (sec%3600)%60) |
|
|
|
|
txt = "%s posted a youtube video: %s\nTitle: %s\nCategory: %s\nTags: %s\nDuration: %s\nViews: %s\nRating: %s" % (mfrom.getResource(), |
|
|
|
|
txt = "%s posted a youtube video: %s\nTitle: %s\nCategory: %s\nTags: %s\nDuration: %s\nViews: %s\nRating: %s" % (unicode(mfrom.getResource()), |
|
|
|
|
entry.media.player.url, |
|
|
|
|
entry.media.title.text, |
|
|
|
|
entry.media.category[0].text, |
|
|
|
|
|