Skip to content

Commit

Permalink
Merge pull request #234 from ClementTsang/support_mobile_urls
Browse files Browse the repository at this point in the history
Support YouTube links copied from mobile browser
  • Loading branch information
Kethsar authored Dec 17, 2024
2 parents 99a510d + 41aa495 commit 556e712
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Info.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ func (di *DownloadInfo) ParseInputUrl() error {

lowerHost := strings.ToLower(parsedUrl.Host)
lowerHost = strings.TrimPrefix(lowerHost, "www.")
lowerHost = strings.TrimPrefix(lowerHost, "m.")
lowerPath := strings.ToLower(parsedUrl.EscapedPath())
parsedQuery := parsedUrl.Query()

Expand Down

0 comments on commit 556e712

Please sign in to comment.