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],