Esempio n. 1
0
def make_cast(ids, people, cached=True):
    cast = []
    cast_enable = kodi.get_setting('cast_enable') == 'true'
    for person in people.get('cast', []):
        if cast_enable:
            art = image_scraper.get_person_images(ids, person, cached)
        else:
            art = {'thumb': ''}
            
        cast.append({'name': person['person']['name'], 'role': person['character'], 'thumbnail': art['thumb']})
    
    return cast
Esempio n. 2
0
def make_cast(ids, people, cached=True):
    cast = []
    cast_enable = kodi.get_setting('cast_enable') == 'true'
    for person in people.get('cast', []):
        if cast_enable:
            art = image_scraper.get_person_images(ids, person, cached)
        else:
            art = {'thumb': ''}
            
        cast.append({'name': person['person']['name'], 'role': person['character'], 'thumbnail': art['thumb']})
    
    return cast