def _media_rating_search(self, html):
    rating = self._html_search_meta('rating', html)
    if (not rating):
        return None
    RATING_TABLE = {'safe for kids': 0, 'general': 8, '14 years': 14, 'mature': 17, 'restricted': 19}
    return RATING_TABLE.get(rating.lower())
def _media_rating_search(self, html):
    rating = self._html_search_meta('rating', html)
    if (not rating):
        return None
    RATING_TABLE = {'safe for kids': 0, 'general': 8, '14 years': 14, 'mature': 17, 'restricted': 19}
    return RATING_TABLE.get(rating.lower())