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