A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
update ui after downloaded/summary
Christian Fei9e774be10002
diff --git a/README.md b/README.mdnew file mode 100644index 0000000..f5c6b26--- /dev/null+++ b/README.md@@ -0,0 +1,2 @@+# my-yt+diff --git a/client/main.js b/client/main.jsindex aa2758a..54eb53b 100644--- a/client/main.js+++ b/client/main.js@@ -42,7 +42,7 @@ eventSource.onmessage = (message) => {const videoData = JSON.parse($video.dataset['data'])Object.assign(videoData, { summary: data.summary, transcript: data.transcript })$video.dataset['data'] = JSON.stringify(videoData)- updateSummarizedVideos([data.videoId])+ updateSummarizedVideos([videoData])})}if (data.type === 'downloaded' && data.videoId) {@@ -50,7 +50,7 @@ eventSource.onmessage = (message) => {const videoData = JSON.parse($video.dataset['data'])videoData.downloaded = true$video.dataset['data'] = JSON.stringify(videoData)- updateDownloadedVideos([data.videoId])+ updateDownloadedVideos([videoData])})}} catch (err) {