A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
feat: refactor transcode progress text handling in VideoElement
Christian Feieb17003a9581
diff --git a/client/components/video-element.js b/client/components/video-element.jsindex 9759c1c..ba8fd6a 100644--- a/client/components/video-element.js+++ b/client/components/video-element.js@@ -8,6 +8,7 @@ class VideoElement extends HTMLElement {super()this.downloadStartedText = '⚡️ Downloading..'this.summaryStartedText = '⚡️ Summarizing..'+ this.transcodeStartedText = '⚙️ Transcoding..'}connectedCallback () {@@ -33,7 +34,7 @@ class VideoElement extends HTMLElement {return}if (name === 'data-transcode-progress' && this.querySelector('.action.download')) {- this.querySelector('.action.download').innerText = '⚙️ Transcoding..' + ` (${this.dataset.transcodeProgress}%)`+ this.querySelector('.action.download').innerText = this.transcodeStartedText + ` (${this.dataset.transcodeProgress}%)`return}if (name === 'data-summarizing' && this.querySelector('.action.summarize')) {