From 07ef48a07ae239bcb8a08c3e719ac0025c8915fa Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 3 Mar 2019 10:03:24 -0600 Subject: [PATCH] Add length_seconds to playlist on watch page --- src/invidious/mixes.cr | 5 ++++- src/invidious/playlists.cr | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/invidious/mixes.cr b/src/invidious/mixes.cr index c91e83a2..011c5722 100644 --- a/src/invidious/mixes.cr +++ b/src/invidious/mixes.cr @@ -99,7 +99,10 @@ def template_mix(mix) html += <<-END_HTML
  • - +
    + +

    #{recode_length_seconds(video["lengthSeconds"].as_i)}

    +

    #{video["title"]}

    #{video["author"]} diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr index 28f2e4ce..9f844ce6 100644 --- a/src/invidious/playlists.cr +++ b/src/invidious/playlists.cr @@ -234,7 +234,10 @@ def template_playlist(playlist) html += <<-END_HTML

  • - +
    + +

    #{recode_length_seconds(video["lengthSeconds"].as_i)}

    +

    #{video["title"]}

    #{video["author"]}