ref: a00a61e7b14829a51bcd902c7329dc1c0f572d49
parent: f020d61392c970f1e3661d4342cbda0a7466f00a
author: Halfwit <michaelmisch1985@gmail.com>
date: Wed Mar 13 16:46:52 PDT 2019
Adding more issue details
--- a/TODO
+++ /dev/null
@@ -1,1 +1,0 @@
-Helper functions
--- a/call.go
+++ b/call.go
@@ -92,7 +92,8 @@
}
}
} else {
- // TODO: Remove unwanted group
+ // TODO: Remove unwanted group matches from this regex
+ // This was slapped out pretty quickly
r := regexp.MustCompile(`^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)(\S+)?$`)
vid := r.FindStringSubmatch(query)
call := service.Videos.List("id,snippet").Id(vid[5])