Skip to content

Commit

Permalink
fixed sidebar issues with zhentube
Browse files Browse the repository at this point in the history
  • Loading branch information
gan-of-culture committed Oct 16, 2021
1 parent a03ead6 commit aa62438
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extractors/zhentube/zhentube.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ func parseURL(URL string) []string {
if err != nil {
return nil
}
// remove rest of site's html including the sidebar that contains videos we don't want
htmlString = strings.Split(htmlString, "<aside")[0]

return regexp.MustCompile(site+`[^"]+episode-[^/]+/"`).FindAllString(htmlString, -1)
}
Expand Down

0 comments on commit aa62438

Please sign in to comment.