aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2020-05-27 11:14:19 -0700
committerJames Taylor <user234683@users.noreply.github.com>2020-05-27 11:14:19 -0700
commitd5e661dfd3736d844a35d28f0309f991f4175c07 (patch)
treed7b0da39af077274300d189a2a30e0fbbb51a247 /youtube
parentb2f482f1fbeb9587102fdd3a97ea674235e6bbcd (diff)
downloadyt-local-d5e661dfd3736d844a35d28f0309f991f4175c07.tar.lz
yt-local-d5e661dfd3736d844a35d28f0309f991f4175c07.tar.xz
yt-local-d5e661dfd3736d844a35d28f0309f991f4175c07.zip
Indicate that video is live
Diffstat (limited to 'youtube')
-rw-r--r--youtube/templates/watch.html3
-rw-r--r--youtube/watch.py1
2 files changed, 4 insertions, 0 deletions
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 -%}
<li>Limited state</li>
{%- endif -%}
+ {%- if live -%}
+ <li>Live</li>
+ {%- endif -%}
</ul>
<address>Uploaded by <a href="{{ uploader_channel_url }}">{{ uploader }}</a></address>
<span class="views">{{ view_count }} views</span>
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'],