{% if author is not none %}
{% if source == "goodreads" and author.image_url %}
{% elif source == "hardcover" and author.cached_image and author.cached_image.url %}
{% endif %}
{% if source == "goodreads" %}
{%if author.safe_about is not none %}
{% endif %}
{% if entry.Books.ratings.__len__() > 0 %}
{% for number in range((entry.Books.ratings[0].rating/2)|int(2)) %}
{% if loop.last and loop.index < 5 %}
{% for numer in range(5 - loop.index) %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% if source == "goodreads" and entry.average_rating %}
{% for number in range((entry.average_rating)|float|round|int(2)) %}
{% if loop.last and loop.index < 5 %}
{% for numer in range(5 - loop.index) %}
{% endfor %}
{% endif %}
{% endfor %}