source/utils.py
def is_video_file(filename):
    """ Check if file is a video
    :param filename: file name string
    :return: Boolean toggle

    """

    return any(filename.endswith(extension) for extension in ['.mp4', '.avi', '.mpg', '.mkv', '.wmv', '.flv'])
 Check if file is a video
    :param filename: file name string
    :return: Boolean toggle

    
Check if file is a video
Check if file is a video
def is_video_file(filename):
    return any(filename.endswith(extension) for extension in ['.mp4', '.avi', '.mpg', '.mkv', '.wmv', '.flv'])
def is_video_file ( filename ) : return any ( filename . endswith ( extension ) for extension in [ '.mp4' , '.avi' , '.mpg' , '.mkv' , '.wmv' , '.flv' ] )
Check if file is a video
Check if file is a video
""" Check if file is a video
    :param filename: file name string
    :return: Boolean toggle

    """
None
filename
file name string
file name string