{% extends "layouts/app.twig" %} {% block content %}
{% if tvshow.backdrop_url %}
{{ tvshow.title }} backdrop

{{ tvshow.title }}

{% if tvshow.tagline %}

{{ tvshow.tagline }}

{% endif %}
{% if tvshow.first_air_date %} {{ tvshow.first_air_date|date('Y') }} {% endif %} {% if tvshow.last_air_date %} Ended {{ tvshow.last_air_date|date('Y') }} {% endif %} {% if tvshow.vote_average %} {{ tvshow.vote_average }}/10 {% endif %} {% if tvshow.number_of_seasons and tvshow.number_of_episodes %} {{ tvshow.number_of_seasons }} season{{ tvshow.number_of_seasons > 1 ? 's' : '' }}, {{ tvshow.number_of_episodes }} episode{{ tvshow.number_of_episodes > 1 ? 's' : '' }} {% endif %} {{ tvshow.source_name }}
{% if tvshow.status == 'Ended' %} Ended {% elseif tvshow.status == 'Returning Series' %} Ongoing {% endif %} {% if tvshow.is_favorite %} Favorite {% endif %}
{% else %}

{{ tvshow.title }}

{% if tvshow.tagline %}

{{ tvshow.tagline }}

{% endif %}
{% endif %}
{% if tvshow.poster_url %} {{ tvshow.title }} {% else %}
{% endif %}

Quick Stats

{% if tvshow.vote_count %}
Votes {{ tvshow.vote_count|number_format }}
{% endif %} {% if tvshow.number_of_seasons %}
Seasons {{ tvshow.number_of_seasons }}
{% endif %} {% if tvshow.number_of_episodes %}
Episodes {{ tvshow.number_of_episodes }}
{% endif %}
Source {{ tvshow.source_name }}
{% if tvshow.overview %}

Overview

{{ tvshow.overview }}

{% endif %}

Cast & Crew

{% if tvshow.created_by %}

Created by

{{ tvshow.created_by }}

{% endif %} {% if actors %}

Cast

{% endif %}
{% if tvshow.genre %}

Genres

{% for genre in tvshow.genre|split(',') %} {{ genre|trim }} {% endfor %}
{% endif %} {% if tvshow.networks or tvshow.production_companies %}

Production

{% if tvshow.networks %}

Networks

{{ tvshow.networks }}

{% endif %} {% if tvshow.production_companies %}

Companies

{{ tvshow.production_companies }}

{% endif %}
{% endif %} {% if tvshow.episode_run_time or tvshow.origin_country or tvshow.original_language %}

Technical

{% if tvshow.episode_run_time %}

Episode Runtime

{{ tvshow.episode_run_time }} minutes

{% endif %} {% if tvshow.origin_country %}

Origin Country

{{ tvshow.origin_country }}

{% endif %} {% if tvshow.original_language %}

Language

{{ tvshow.original_language|upper }}

{% endif %}
{% endif %}
{% if seasons %}

Seasons & Episodes

{% for season in seasons %}
{% endfor %}
{% endif %} {% if recent_episodes %}

Recent Episodes

{% for episode in recent_episodes[:5] %}
{% if episode.still_url %} {{ episode.title }} {% else %}
{% endif %}
S{{ episode.season_number }}E{{ episode.episode_number }} {{ episode.air_date|date('M j, Y') }}

{{ episode.title }}

{% if episode.actors %}
{% for actor in episode.actors %} {{ actor.name }} {% endfor %}
{% endif %} {% if episode.vote_average %}
{{ episode.vote_average }}/10
{% endif %}
{% endfor %}
{% endif %} {% if tvshow.streaming_providers or tvshow.availability %}

Where to Watch

{% if tvshow.streaming_providers %}

Streaming

{% for provider in tvshow.streaming_providers %} {{ provider }} {% endfor %}
{% endif %} {% if tvshow.availability %}

Availability

{{ tvshow.availability }}

{% endif %}
{% endif %} {% if metadata %}

Technical Details & Metadata

{% if metadata.jellyfin_id %}

Jellyfin ID

{{ metadata.jellyfin_id }}
{% endif %} {% if metadata.genres %}

Genres

{% for genre in metadata.genres %} {{ genre }} {% endfor %}
{% endif %}
Full Raw Metadata
{{ metadata|json_encode(constant('JSON_PRETTY_PRINT')) }}
{% endif %}
{% endblock %}