def is_downloadable(url, formats):
    """Given one url and a list of formats,
    check whether the link leads to file we want to download."""
    return str(url).endswith(tuple(formats)) or str(url).endswith('gifv'
        ) and 'mp4' in tuple(formats)
