Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URLにハイフンが3つ続くとエラーが出る #13

Closed
alice1017 opened this issue Jul 13, 2016 · 4 comments
Closed

URLにハイフンが3つ続くとエラーが出る #13

alice1017 opened this issue Jul 13, 2016 · 4 comments

Comments

@alice1017
Copy link

日本語で失礼します。
youtubeの動画URLをpgetでダウンロードしてみようと思った所、下記のエラーが出ました。

sh-3.2$ pget -p 6 "https://r6---sn-nvoxu-ioq6.googlevideo.com/videoplayback?sparams=cnr%2Cdur%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm(以下略)"
Error:
  url has not been set in argument

原因を探ってみたところ、URLにハイフンが3つ続くとエラーになる模様です。

pget -p 6 "http://r6-snnvoxuioq6.googlevideo.com"
pget -p 6 "http://r6--snnvoxuioq6.googlevideo.com"

この場合ですと、ちゃんとホストがないというエラーが出ます。

しかし

pget -p 6 "http://r6---snnvoxuioq6.googlevideo.com"

こうなった場合だけ、Error: url has not been set in argument となってしまします。

ご対応、よろしくお願いします。

@Code-Hex
Copy link
Owner

@alice1017 報告ありがとうございます。
渡されたURLは外部ライブラリによって正しいURLかチェックされて、正しかったら実行される仕組みとなっています。
なので外部ライブラリの修正をお願いしてみますがしばらく時間がかかるかもしれないです。

@Code-Hex
Copy link
Owner

@alice1017 外部ライブラリへ修正するようにコードも送ったので、反映されたらすぐにアップデートします。asaskevich/govalidator#143

@alice1017
Copy link
Author

@Code-Hex ご対応ありがとうございます!

@Code-Hex
Copy link
Owner

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants