From 3c99c040ee2e0d20148d9cfb920fef4dc4f19d4c Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Tue, 1 Sep 2020 01:36:55 +1200 Subject: [PATCH] Adjustments for Invidious compatibility: - Formats without a qualityLabel are hidden - Channel page descriptionHtml appearance fixed --- pug/video.pug | 2 +- sass/includes/channel-page.sass | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pug/video.pug b/pug/video.pug index 86ca66b..464330e 100644 --- a/pug/video.pug +++ b/pug/video.pug @@ -15,7 +15,7 @@ block content unless error main.video-page - const sortedFormatStreams = video.formatStreams.slice().sort((a, b) => b.second__height - a.second__height) - - const sortedVideoAdaptiveFormats = video.adaptiveFormats.filter(f => f.type.startsWith("video")).sort((a, b) => a.second__order - b.second__order) + - const sortedVideoAdaptiveFormats = video.adaptiveFormats.filter(f => f.type.startsWith("video") && f.qualityLabel).sort((a, b) => a.second__order - b.second__order) .main-video-section .video-container diff --git a/sass/includes/channel-page.sass b/sass/includes/channel-page.sass index f7aaf09..ce88db4 100644 --- a/sass/includes/channel-page.sass +++ b/sass/includes/channel-page.sass @@ -61,3 +61,9 @@ .channel-video @include channel-video + +.about-description // class provided by youtube + pre + font-size: inherit + font-family: inherit + white-space: pre-wrap