From d5e661dfd3736d844a35d28f0309f991f4175c07 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Wed, 27 May 2020 11:14:19 -0700 Subject: Indicate that video is live --- youtube/templates/watch.html | 3 +++ youtube/watch.py | 1 + 2 files changed, 4 insertions(+) (limited to 'youtube') diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index f47c337..2fac91e 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -318,6 +318,9 @@ {%- if limited_state -%}
  • Limited state
  • {%- endif -%} + {%- if live -%} +
  • Live
  • + {%- endif -%}
    Uploaded by {{ uploader }}
    {{ view_count }} views diff --git a/youtube/watch.py b/youtube/watch.py index b0b60b9..ba6d73c 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -450,6 +450,7 @@ def get_watch_page(video_id=None): unlisted = info['unlisted'], limited_state = info['limited_state'], age_restricted = info['age_restricted'], + live = info['live'], playability_error = info['playability_error'], allowed_countries = info['allowed_countries'], -- cgit v1.2.3