Beispiel #1
0
 def run(self):
     try:
         self.kwargs['info_only'] = True
         m_get_video(self.urls, **self.kwargs)
         result = ''.join(get_buffer())
         can_download = True
     except Exception as e:
         mlog.exception(e)
         result = 'Get information of files failed'
         can_download = False
     finally:
         self.finish_signal.emit(result, can_download)
Beispiel #2
0
 def run(self):
     """
     Download the video
     :return: nothing
     """
     is_succeed = False
     try:
         self.kwargs['info_only'] = False
         mlog.debug(mconfig.get_file_itag)
         m_get_video(self.urls, **self.kwargs)
         is_succeed = True
     except Exception as e:
         mlog.exception(e)
         is_succeed = False
     finally:
         self.finish_signal.emit(is_succeed)