import re


def get_time_from_filename(file_name):
    """Extract the time of the thumbnail. Assumes that the filename is given as [a-z]-[0-9].png"""
    pattern = '-|\.'
    splitted = re.split(pattern, file_name)
    return float(splitted[1])