diff --git a/lib/yt/models/resource.rb b/lib/yt/models/resource.rb index 3733f93e..7a73cfd0 100644 --- a/lib/yt/models/resource.rb +++ b/lib/yt/models/resource.rb @@ -91,6 +91,7 @@ def update(attributes = {}) %r{^(?:https?://)?(?:www\.)?youtu\.be/(?[a-zA-Z0-9_-]{11})}, %r{^(?:https?://)?(?:www\.)?youtube\.com/embed/(?[a-zA-Z0-9_-]{11})}, %r{^(?:https?://)?(?:www\.)?youtube\.com/v/(?[a-zA-Z0-9_-]{11})}, + %r{^(?:https?://)?(?:www\.)?youtube\.com/shorts/(?[a-zA-Z0-9_-]{11})}, ] # @return [Array] patterns matching URLs of YouTube channels.