From 9db801c0d58e9f0f65a96ad3794bd9e0c0348890 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Tue, 25 Aug 2020 01:49:48 +1200 Subject: [PATCH] General fixes --- html/static/js/player.js | 3 +++ pug/includes/video-list-item.pug | 6 +++--- sass/includes/base.sass | 3 +++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/html/static/js/player.js b/html/static/js/player.js index 69b016d..ed4b282 100644 --- a/html/static/js/player.js +++ b/html/static/js/player.js @@ -49,6 +49,9 @@ class FormatLoader { if (this.npa) { audio.src = this.npa.url audio.currentTime = lastTime + } else { + audio.pause() + audio.removeAttribute("src") } } } diff --git a/pug/includes/video-list-item.pug b/pug/includes/video-list-item.pug index 5b7d065..f919863 100644 --- a/pug/includes/video-list-item.pug +++ b/pug/includes/video-list-item.pug @@ -7,10 +7,10 @@ mixin video_list_item(video) div.title: a(href=link).title-link= video.title div.author-line a(href=`/channel/${video.authorId}`).author= video.author + = ` • ` + span.views= video.viewCountText || video.second__viewCountText if video.publishedText = ` • ` span.published= video.publishedText - = ` • ` - span.views= video.viewCountText || video.second__viewCountText if video.descriptionHtml - div.description!= video.descriptionHtml \ No newline at end of file + div.description!= video.descriptionHtml diff --git a/sass/includes/base.sass b/sass/includes/base.sass index 50d33a9..4bd1f2c 100644 --- a/sass/includes/base.sass +++ b/sass/includes/base.sass @@ -35,3 +35,6 @@ body.show-focus a, select, button, input, video &:focus outline: 2px dotted #ddd + +video + background-color: black