def genre_index(section): return with_fanart( [ {"label": g.localized, "path": plugin.url_for("by_genre", section=section, genre=g.name)} for g in sorted(Genre.all()) ] )