diff --git a/util.go b/util.go index b174d33..06241d6 100644 --- a/util.go +++ b/util.go @@ -83,7 +83,7 @@ func ParseHTML(html string, limit int) []SearchResult { }) } } else if val, ok := sdata["channelRenderer"]; ok { - parsed := ParseVideo(val) + parsed := ParseChannel(val) if parsed.IsSuccess { output = append(output, SearchResult{ diff --git a/youtube.go b/youtube.go index 6ccced6..9afdc7d 100644 --- a/youtube.go +++ b/youtube.go @@ -1,6 +1,6 @@ package youtubego -func Search(searchq string, options SearchOptions) []interface{} { +func Search(searchq string, options SearchOptions) []SearchResult { res := CreateRequest(searchq, options) return res