示例#1
0
    def handle_noargs(self, **options):
        if options.get('list-types',False):
            print """Supported link formats:
youtube - http://www.youtube.com/watch?v=2sASREICzqY"""
        else:
            av=AddVideo(options)
            av.run()
            print av.ans                
示例#2
0
    def handle_noargs(self, **options):
        if options.get('list-types', False):
            print """Supported link formats:
youtube - http://www.youtube.com/watch?v=2sASREICzqY"""
        else:
            av = AddVideo(options)
            av.run()
            print av.ans
示例#3
0
 def __init__(self, options, testCase, getMemberObjectReturn,
              getYoutubeVideosReturn, getIsVideoExistsReturn,
              saveVideoReturn):
     self._testCase = testCase
     self._getMemberObjectReturn = getMemberObjectReturn
     self._getYoutubeVideosReturn = getYoutubeVideosReturn
     self._getIsVideoExistsReturn = getIsVideoExistsReturn
     self._saveVideoReturn = saveVideoReturn
     self.saveVideoLog = []
     AddVideo.__init__(self, options)
示例#4
0
 def __init__(
     self, options, testCase, getMemberObjectReturn, getYoutubeVideosReturn,
     getIsVideoExistsReturn, saveVideoReturn
 ):
     self._testCase=testCase
     self._getMemberObjectReturn=getMemberObjectReturn
     self._getYoutubeVideosReturn=getYoutubeVideosReturn
     self._getIsVideoExistsReturn=getIsVideoExistsReturn
     self._saveVideoReturn=saveVideoReturn
     self.saveVideoLog=[]
     AddVideo.__init__(self,options)