def get_item_thumbnail_url(item):
    """Returns the thumbnail for an enclosure or feedparser entry or raises a
    :exc:`KeyError` if none is found."""
    if item in 'media_thumbnail':
        return item['media_thumbnail'][0]['url']
    blip_thumbnail_src = item.get('blip_thumbnail_src', None)
    if blip_thumbnail_src:
        return u'http://a.images.blip.tv/{0}'.format(blip_thumbnail_src)
    if 'itunes_image' in item:
        return item['itunes_image']['href']
    if 'image' in item:
        return item['image']['href']
    raise KeyError
dataset/ETHPy150Open pculture/vidscraper/vidscraper/utils/feedparser.py/get_item_thumbnail_url/swapped operands of `in`