From bd63013524d06f25258aab054d150325a4b91e10 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Wed, 13 Oct 2021 20:14:44 -0700 Subject: [PATCH] Fix #925 --- package.json | 2 +- www/js/util.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6dd45336..25873f58 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "3.82.5", + "version": "3.82.6", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/www/js/util.js b/www/js/util.js index 529f2a40..5db5cffb 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -1309,6 +1309,14 @@ function parseMediaLink(url) { }; } + // YouTube shorts + if((m = url.match(/youtube\.com\/shorts\/([a-zA-Z0-9_-]{11})/))) { + return { + id: m[1], + type: "yt" + }; + } + if((m = url.match(/youtu\.be\/([^\?&#]+)/))) { return { id: m[1],