* joar/b681-comments_from_reviewing_video:
Bug 681 - Comments from reviewing the new video merge
if media_type in _media_type:
return manager
+ # Nope? Then raise an error
+ raise FileTypeNotSupported(
+ "MediaManager not in enabled types. Check media_types in config?")
+
def get_media_type_and_manager(filename):
+ '''
+ Get the media type and manager based on a filename
+ '''
for media_type, manager in get_media_managers():
if filename.find('.') > 0:
+ # Get the file extension
ext = os.path.splitext(filename)[1].lower()
else:
raise InvalidFileType(