This commit is contained in:
Ty Clifford
2026-06-30 13:53:17 -04:00
parent 47de94a3df
commit e9369e242c
3 changed files with 1055 additions and 1 deletions
Executable
+1054
View File
File diff suppressed because it is too large Load Diff
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -509,7 +509,7 @@ function media_youtube_id_from_url(string $url): string {
$id = '';
if (media_host_matches($host, 'youtu.be') && isset($segments[0])) $id = $segments[0];
if ($id === '' && isset($query['v'])) $id = media_scalar_string($query['v']);
if ($id === '' && preg_match('#/(?:embed|shorts|live|v)/([^/?#]+)#', $path, $m)) $id = $m[1];
if ($id === '' && preg_match('~/(?:embed|shorts|live|v)/([^/?#]+)~', $path, $m)) $id = $m[1];
return media_clean_token($id);
}