aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/players/Youtube.hx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/players/Youtube.hx b/src/client/players/Youtube.hx
index 65a93c9..ca8d415 100644
--- a/src/client/players/Youtube.hx
+++ b/src/client/players/Youtube.hx
@@ -16,6 +16,7 @@ using StringTools;
class Youtube implements IPlayer {
final matchId = ~/youtube\.com.*v=([A-z0-9_-]+)/;
final matchShort = ~/youtu\.be\/([A-z0-9_-]+)/;
+ final matchShorts = ~/youtube\.com\/shorts\/([A-z0-9_-]+)/;
final matchEmbed = ~/youtube\.com\/embed\/([A-z0-9_-]+)/;
final matchPlaylist = ~/youtube\.com.*list=([A-z0-9_-]+)/;
final videosUrl = "https://www.googleapis.com/youtube/v3/videos";
@@ -47,6 +48,9 @@ class Youtube implements IPlayer {
if (matchShort.match(url)) {
return matchShort.matched(1);
}
+ if (matchShorts.match(url)) {
+ return matchShorts.matched(1);
+ }
if (matchEmbed.match(url)) {
return matchEmbed.matched(1);
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage