import log
import os
os.environ['TZ'] = 'UTC'

import logging
logger = logging.getLogger(__name__)

import re
from ..website import ContentTypeWebsite


class ContentTypeMedia(ContentTypeWebsite):
    TYPE = 'media'
    USER_AGENT_PART = 'media'
    # figure out how to get the headers then...
    # look at the headers of the url to figure out if it's an image
    # not all images will specify their type
    URL_PATTERN = re.compile(
        r'(.+\.(?:gif|jpe?g|tiff|png|jfif|exif|bmp|webp|svg))$', re.IGNORECASE)
