def postComment(self, comment):
     '''
     Post a comment to the playing video.
     '''
     print "You want to post a comment."
     try:
         self.yt_service.AddComment(getVideoId(self.entry), comment)
         self.emit(QtCore.SIGNAL("donePostComment()"))
     except:
         self.emit("failedPostComment()")
 def addRating(self):
     '''
     Rate the current (playing) video.
     '''
     number = self.value()
     try:
         self.yt_service.AddRating(getVideoId(self.entry), number)
         self.emit(QtCore.SIGNAL("doneAddRating()"))
     except:
         self.emit(QtCore.SIGNAL("failedAddRating()"))
 def addRating(self):
     '''
     Rate the current (playing) video.
     '''
     number = self.value()
     try:
         self.yt_service.AddRating(getVideoId(self.entry), number)
         self.emit(QtCore.SIGNAL("doneAddRating()"))
     except:
         self.emit(QtCore.SIGNAL("failedAddRating()"))
 def postComment(self, comment):
     '''
     Post a comment to the playing video.
     '''
     print "You want to post a comment."
     try:
         self.yt_service.AddComment(getVideoId(self.entry), comment)
         self.emit(QtCore.SIGNAL("donePostComment()"))
     except:
         self.emit("failedPostComment()")