expandText: Start YT vids at 0:00 instead of 0:01

pull/9761/head
Benedikt Werner 2021-09-09 04:57:20 +02:00
parent ae68a2ac5c
commit 8ee29976f0
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ function toYouTubeEmbedUrl(url: string) {
/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtu\.be)\/(?:watch)?(?:\?v=)?([^"&?/ ]{11})(?:\?|&|)(\S*)/i
);
if (!m) return;
let start = 1;
let start = 0;
m[2].split('&').forEach(p => {
const s = p.split('=');
if (s[0] === 't' || s[0] === 'start') {