1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-26 09:27:30 +00:00

Adjustments for Invidious compatibility:

- Formats without a qualityLabel are hidden
- Channel page descriptionHtml appearance fixed
This commit is contained in:
Cadence Ember 2020-09-01 01:36:55 +12:00
parent 41e860facb
commit 3c99c040ee
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
2 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,7 @@ block content
unless error unless error
main.video-page main.video-page
- const sortedFormatStreams = video.formatStreams.slice().sort((a, b) => b.second__height - a.second__height) - 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 .main-video-section
.video-container .video-container

View File

@ -61,3 +61,9 @@
.channel-video .channel-video
@include channel-video @include channel-video
.about-description // class provided by youtube
pre
font-size: inherit
font-family: inherit
white-space: pre-wrap