class Import(object): uploadable = True metadata = 'original' scan_directories = [ ('original', ('.jpg', '.jpeg', '.tif', '.tiff')), ] actions = [ move_resources, process_image_derivatives(), ]
class Import(object): uploadable = True metadata = 'original' scan_directories = [ ('original', ( '.jpg', '.jpeg', '.tif', '.tiff', '.png', )), ('original_cmyk', ( '.jpg', '.jpeg', '.tif', '.tiff', '.png', )), ('original_trans', ( '.jpg', '.jpeg', '.tif', '.tiff', '.png', )), ('original_trans_cmyk', ( '.jpg', '.jpeg', '.tif', '.tiff', '.png', )), ('epub', ('.epub', )), ('pdf', ('.pdf', )), ('pdfsm', ('.pdf', )), ('ps', ('.ps', '.gz')), ('ppt', ('.ppt', )), ('pps', ('.pps', )), ('eps', ('.eps', )), ('illustrator', ('.ai', )), ('flash', ('.swf', )), ('doc', ('.doc', )), ('zip', ('.zip', )), ('tour', ('', )), ('wav', ('.wav', )), ] actions = [ move_resources, process_image_derivatives(), ]
class Import(object): form = ImageImportForm uploadable = True metadata = 'original' scan_directories = [ ('original', ('.tif', '.psb', '.jpg')), ('banner1920', ('.jpg', )), ('newsfeature', ('.jpg', )), ] actions = [ move_resources, process_image_derivatives(), compute_archive_checksums(), sync_content_server(), ]
class Import( object ): uploadable = True metadata = 'original' scan_directories = [ ( 'original', ( '.jpg', '.jpeg', '.tif', '.tiff', '.png', ) ), ( 'mov_small', ( '.mov', ) ), ( 'mov_medium', ( '.mov', ) ), ( 'mpg_small', ( '.mpeg', '.mpg' ) ), ( 'mpg_medium', ( '.mpeg', '.mpg', ) ), ( 'h264', ( '.mp4', '.m4v', ) ), ( 'broadcast', ( '.mxf', '.m2t', '.mov', ) ), ] actions = [ move_resources, process_image_derivatives(), ]
class Import( StandardOptions.Import ): actions = [ move_resources, process_image_derivatives(), ]
class Import( object ): form = VideoImportForm metadata = 'original' uploadable = True scan_directories = [ # Image ( 'original', ( '.jpg', '.jpeg', '.tif', '.png', ) ), # Dome ( 'dome_8kmaster', ( '.avi', '.zip', ) ), ( 'dome_4kmaster', ( '.avi', '.zip', ) ), ( 'dome_2kmaster', ( '.avi', '.zip', ) ), ( 'dome_mov', ( '.mov', '.mp4' ) ), ( 'vr_8k', ( '.mp4', ) ), ( 'vr_8k', ( '.mp4', ) ), ( 'dome_preview', ( '.mp4', ) ), # Cylindrical ( 'cylindrical_preview', ( '.mp4', ) ), ( 'cylindrical_4kmaster', ( '.zip', ) ), ( 'cylindrical_8kmaster', ( '.zip', ) ), ( 'cylindrical_16kmaster', ( '.zip', ) ), # Ultra HD ( 'ultra_hd_broadcast', ( '.avi', ) ), ( 'ultra_hd_h265', ( '.mkv', '.mp4' ) ), ( 'ultra_hd', ( '.mp4', ) ), # HD ( 'hd_and_apple', ( '.mp4', '.m4v' ) ), ( 'hd_1080p25_screen', ( '.mp4' ) ), # Broadcast ( 'broadcast_sd', ( '.avi', '.mxf', '.mov', '.mp4' ) ), ( 'hd_broadcast_720p25', ( '.mxf', '.m2t', '.mov' ) ), ( 'hd_broadcast_720p50', ( '.mxf', '.m2t', '.mov' ) ), ( 'hd_1080p25_broadcast', ( '.avi', '.mxf' ) ), # Large ( 'large_qt', ( '.mov', ) ), # Medium ( 'medium_flash', ( '.flv', ) ), ( 'medium_mpeg1', ( '.mpg', ) ), ( 'medium_podcast', ( '.m4v', '.mp4') ), # Small ( 'small_flash', ( '.flv', ) ), ( 'small_qt', ( '.mov', ) ), # Other ( 'ext_highres', ('.m4v', '.flv', '.mov', '.avi', '.mpeg', '.mp4', '.mpg') ), ( 'ext_playback', ('.m4v', '.flv', '.mov', '.avi', '.mpeg', '.mp4', '.mpg') ), ] actions = [ remove_old_resources( [ 'broadcast', 'broadcast_sd_old', 'h264', 'hd720p_broadcast', 'hd720p_screen', 'hd1080p_broadcast', 'hd1080p_screen', 'mov_medium', 'mov_small', 'mpg_medium', 'mpg_small', 'vodcast', 'dome', 'broadcast_sd_part1', 'broadcast_sd_part2', 'broadcast_sd_part3', 'broadcast_sd_part4', 'broadcast_sd_part5', 'broadcast_sd_part6', 'broadcast_sd_part7', 'broadcast_sd_part8', 'broadcast_sd_part9', 'broadcast_sd_part10', 'hd_broadcast_720p25_part1', 'hd_broadcast_720p25_part2', 'hd_broadcast_720p25_part3', 'hd_broadcast_720p25_part4', 'hd_broadcast_720p25_part5', 'hd_broadcast_720p25_part6', 'hd_broadcast_720p25_part7', 'hd_broadcast_720p25_part8', 'hd_broadcast_720p25_part9', 'hd_broadcast_720p25_part10', 'hd_broadcast_720p50_part1', 'hd_broadcast_720p50_part2', 'hd_broadcast_720p50_part3', 'hd_broadcast_720p50_part4', 'hd_broadcast_720p50_part5', 'hd_broadcast_720p50_part6', 'hd_broadcast_720p50_part7', 'hd_broadcast_720p50_part8', 'hd_broadcast_720p50_part9', 'hd_broadcast_720p50_part10', ] + getattr( settings, 'VIDEOS_FORMATS_REMOVE', [] ) ), move_resources, rename_resource_ext( 'hd_and_apple', 'mp4', 'm4v' ), enable_faststart( 'hd_and_apple', 'large_qt' ), fragment_mp4('hd_1080p25_screen'), embed_subtitles( getattr( settings, 'VIDEOS_SUBTITLES_FORMATS', [] ) ), video_extras(), generate_thumbnail_action(), process_image_derivatives(), compute_archive_checksums(), sync_content_server(extra_formats=['videoframe']), upload_youtube_action() ]