Пример #1
0
 def copy_original(self):
     # If we didn't transcode, then we need to keep the original
     if not self.did_transcode or \
        (self.video_config['keep_original'] and self.did_transcode):
         copy_original(
             self.entry, self.process_filename,
             self.name_builder.fill('{basename}{ext}'))
Пример #2
0
 def copy_original(self):
     # If we didn't transcode, then we need to keep the original
     if not self.did_transcode or \
        (self.video_config['keep_original'] and self.did_transcode):
         copy_original(
             self.entry, self.process_filename,
             self.name_builder.fill('{basename}{ext}'))
Пример #3
0
 def copy_original(self):
     # If we didn't transcode, then we need to keep the original
     self.did_transcode = False
     for each_res in self.video_config['available_resolutions']:
         if 'webm_{}'.format(each_res) in self.entry.media_files:
             self.did_transcode = True
             break
     if not self.did_transcode or self.video_config['keep_original']:
         copy_original(self.entry, self.process_filename,
                       self.name_builder.fill('{basename}{ext}'))
     self.entry.save()
Пример #4
0
 def copy_original(self):
     if self.audio_config['keep_original']:
         copy_original(self.entry, self.process_filename,
                       self.name_builder.fill('{basename}{ext}'))
Пример #5
0
 def copy_original(self):
     if self.audio_config['keep_original']:
         copy_original(
             self.entry, self.process_filename,
             self.name_builder.fill('{basename}{ext}'))
Пример #6
0
 def copy_original(self):
     copy_original(
         self.entry, self.process_filename,
         self.name_builder.fill('{basename}{ext}'))