Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

wip: try yt-dlp sponsorblock-mark

Christian Feib1eaccc34d19
diff --git a/lib/yt-dlp.js b/lib/yt-dlp.js
index b5bded5..f93c67a 100644
--- a/lib/yt-dlp.js
+++ b/lib/yt-dlp.js
@@ -17,13 +17,14 @@ const videoYTDLPArgs = quality => [
'--progress',
'--progress-delta',
'1',
+ '--sponsorblock-remove',
+ 'sponsor',
+ '--sponsorblock-mark',
+ 'all',
'--merge-output-format',
'webm/mp4',
'-f',
`bestvideo[height<=${quality}]+bestaudio/best[height<=${quality}]`,
- '--sponsorblock-remove',
- 'sponsor',
- '--embed-metadata'
]
export function video(id, quality) {