diff --git a/plugins/tools/youtube/youtube.go b/plugins/tools/youtube/youtube.go index 189909f1..f61fad26 100644 --- a/plugins/tools/youtube/youtube.go +++ b/plugins/tools/youtube/youtube.go @@ -60,7 +60,6 @@ func (o *YouTube) GetVideoOrPlaylistId(url string) (videoId string, playlistId s // Video ID pattern videoPattern := `(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:live\/|[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|(?:s(?:horts)\/)|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]*)` - videoRe := regexp.MustCompile(videoPattern) videoMatch := videoRe.FindStringSubmatch(url) if len(videoMatch) > 1 {