1
0
mirror of https://git.sr.ht/~cadence/NewLeaf synced 2024-11-22 07:37:29 +00:00

Fix channel length_seconds assignment

This commit is contained in:
Cadence Ember 2020-08-14 00:02:54 +12:00
parent 6c49edf3ae
commit 19beea8723
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412

View File

@ -553,7 +553,7 @@ class Second(object):
if "thumbnailOverlayTimeStatusRenderer" in o: if "thumbnailOverlayTimeStatusRenderer" in o:
length_text = combine_runs(o["thumbnailOverlayTimeStatusRenderer"]["text"]) length_text = combine_runs(o["thumbnailOverlayTimeStatusRenderer"]["text"])
if o["thumbnailOverlayTimeStatusRenderer"]["style"] != "LIVE": if o["thumbnailOverlayTimeStatusRenderer"]["style"] != "LIVE":
length_text_to_seconds(length_text) length_seconds = length_text_to_seconds(length_text)
published = 0 published = 0
published_text = "Live now" published_text = "Live now"
if "publishedTimeText" in v: if "publishedTimeText" in v: