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

extension is null when calling download video in wechat.media #157

Closed
gabrieltong opened this issue Nov 17, 2015 · 5 comments
Closed

extension is null when calling download video in wechat.media #157

gabrieltong opened this issue Nov 17, 2015 · 5 comments

Comments

@gabrieltong
Copy link

when downloading media , wechat try to guess the extension , and add the right extension .

when downloading a video media , the guess failed , and the extension is null . so the downloaded file name will be added a extra '.'

for example, if $MediaId(video) is abcd, the final url will be abcd.

if we can't get the extension , can we not add the ext ?

if the filename param contains a ext , can we trust it and not add the ext ?

@gabrieltong
Copy link
Author

overtrue/wechat/src/Wechat/Media.php , line 280

@gabrieltong
Copy link
Author

I test video by mediainfo, and video by weixin is mp4

1f91e852-b92c-4412-9f40-823079fd4dc8

@overtrue
Copy link
Collaborator

哈哈,下回用中文吧,我能看懂 😆

@gabrieltong
Copy link
Author

哈哈 , 反正就是download视频多个 .

@gabrieltong
Copy link
Author

微信现在这么牛 ,你的文档都是中英文 ,得跟上潮流啊

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