Add support for hyperlinks
This commit is contained in:
@@ -166,6 +166,14 @@ func (c *Client) DownloadModules(courseRoot string) {
|
||||
fmt.Printf("%s- Found video tool: %s\n", indent, item.Title)
|
||||
panopto.DownloadVideo(c.HTTPClient, c.AccessToken, c.CourseID, targetDir, item.URL, item.Title)
|
||||
|
||||
case "ExternalUrl":
|
||||
if strings.Contains(item.ExternalURL, "panopto.eu") {
|
||||
indent := strings.Repeat(" ", len(subHeaderStack)+1)
|
||||
fmt.Printf("%s- Found direct video link: %s\n", indent, item.Title)
|
||||
|
||||
panopto.DownloadVideo(c.HTTPClient, c.AccessToken, c.CourseID, targetDir, item.ExternalURL, item.Title)
|
||||
}
|
||||
|
||||
case "Page":
|
||||
c.searchPageForVideos(item, targetDir)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user