Original of the video was not saved because info about it was not
written to the database. Fixed that.
Also removed original video from get_all_media listing. The method is
weird, we should evaluate whether it is video-specific and how to
generalize it.
def get_all_media(self):
"""
- Returns all available qualties of a media
+ Returns all available qualties of a media (except original)
"""
fetch_order = self.media_manager.media_fetch_order
all_media_path = []
for media_size in fetch_order:
- if media_size in media_sizes:
+ if media_size in media_sizes and media_size != 'original':
file_metadata = self.get_file_metadata(media_size)
size = file_metadata['medium_size']
if media_size != 'webm_video':
copy_original(
self.entry, self.process_filename,
self.name_builder.fill('{basename}{ext}'))
+ self.entry.save()
def keep_best(self):