Indicate that video is live

This commit is contained in:
James Taylor 2020-05-27 11:14:19 -07:00
parent b2f482f1fb
commit d5e661dfd3
2 changed files with 4 additions and 0 deletions

View File

@ -318,6 +318,9 @@
{%- if limited_state -%} {%- if limited_state -%}
<li>Limited state</li> <li>Limited state</li>
{%- endif -%} {%- endif -%}
{%- if live -%}
<li>Live</li>
{%- endif -%}
</ul> </ul>
<address>Uploaded by <a href="{{ uploader_channel_url }}">{{ uploader }}</a></address> <address>Uploaded by <a href="{{ uploader_channel_url }}">{{ uploader }}</a></address>
<span class="views">{{ view_count }} views</span> <span class="views">{{ view_count }} views</span>

View File

@ -450,6 +450,7 @@ def get_watch_page(video_id=None):
unlisted = info['unlisted'], unlisted = info['unlisted'],
limited_state = info['limited_state'], limited_state = info['limited_state'],
age_restricted = info['age_restricted'], age_restricted = info['age_restricted'],
live = info['live'],
playability_error = info['playability_error'], playability_error = info['playability_error'],
allowed_countries = info['allowed_countries'], allowed_countries = info['allowed_countries'],