Skip to content

Commit fb8e9f9

Browse files
authored
Add shorts video url for a pattern (#455)
1 parent cd94665 commit fb8e9f9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/yt/models/resource.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ def update(attributes = {})
9191
%r{^(?:https?://)?(?:www\.)?youtu\.be/(?<id>[a-zA-Z0-9_-]{11})},
9292
%r{^(?:https?://)?(?:www\.)?youtube\.com/embed/(?<id>[a-zA-Z0-9_-]{11})},
9393
%r{^(?:https?://)?(?:www\.)?youtube\.com/v/(?<id>[a-zA-Z0-9_-]{11})},
94+
%r{^(?:https?://)?(?:www\.)?youtube\.com/shorts/(?<id>[a-zA-Z0-9_-]{11})},
9495
]
9596

9697
# @return [Array<Regexp>] patterns matching URLs of YouTube channels.

0 commit comments

Comments
 (0)