From fa363a33c7af7e88cd216cd6f4dfc64691b13df7 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 31 Mar 2021 17:24:57 -0700 Subject: [PATCH] Improve handling of livestreams, premieres with live_broadcast attr. --- frontends/ycdl_flask/templates/channel.html | 4 +++ utilities/database_upgrader.py | 37 ++++++++++++++++++++ ycdl/constants.py | 3 +- ycdl/objects.py | 38 ++++++++++++++------- ycdl/ycdldb.py | 21 +++++++++++- ycdl/ytapi.py | 3 ++ 6 files changed, 92 insertions(+), 14 deletions(-) diff --git a/frontends/ycdl_flask/templates/channel.html b/frontends/ycdl_flask/templates/channel.html index dc1346b..460ab3e 100644 --- a/frontends/ycdl_flask/templates/channel.html +++ b/frontends/ycdl_flask/templates/channel.html @@ -226,6 +226,7 @@ https://stackoverflow.com/a/35153397 onclick="return action_button_passthrough(event, api.videos.mark_state, 'pending');" >Revert to Pending + {% if video.live_broadcast is none %} + {% else %} + + {% endif %}