Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
joeke80215 committed Sep 22, 2019
1 parent 2e2d529 commit 7599644
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions extractors/dailymotion/dailymotion.go
Expand Up @@ -61,7 +61,6 @@ func handleM3u8U(url string) ([]downloader.URL, int64, error) {
}
totalSize += size
}

return data, totalSize, nil
}

Expand Down Expand Up @@ -122,8 +121,7 @@ func Extract(url string) ([]downloader.Data, error) {
return downloader.EmptyList, err
}
var title string
desc := utils.MatchOneOf(html, `<title>(.+?)</title>`)
if desc != nil {
if desc := utils.MatchOneOf(html, `<title>(.+?)</title>`); desc != nil {
title = desc[1]
} else {
title = "dailymotion"
Expand Down

0 comments on commit 7599644

Please sign in to comment.