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

download from douyin error #2

Closed
Green-m opened this issue May 5, 2022 · 2 comments
Closed

download from douyin error #2

Green-m opened this issue May 5, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@Green-m
Copy link

Green-m commented May 5, 2022

❯ ./media-get-0.2.4-linux -u "https://www.douyin.com/video/7008882438181031179"
-----------------
 start fetch video: https://aweme.snssdk.com/aweme/v1/playwm/?video_id=v0300fg10000c528qi3c77uccgtdfi70&ratio=720p&line=0

panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
github.com/foamzou/audio-get/utils.GetExtFromUrl(0xc0004c2070, 0x65, 0x24, 0x855ec5)
	github.com/foamzou/audio-get/utils/url.go:11 +0x175
github.com/foamzou/audio-get/processor.(*Processor).downloadVideo(0xc00019bf68, 0xc000394000, 0x8d0258, 0xc00000e080)
	github.com/foamzou/audio-get/processor/download.go:76 +0x7c5
github.com/foamzou/audio-get/processor.(*Processor).download(0xc00019bf68, 0xc000394000, 0x6, 0x0)
	github.com/foamzou/audio-get/processor/download.go:24 +0xd4
github.com/foamzou/audio-get/processor.(*Processor).FetchMetaAndResourceInfo(0xc00019bf68, 0xa995e0, 0x0)
	github.com/foamzou/audio-get/processor/fetch_meta_and_resource_info.go:30 +0x185
github.com/foamzou/audio-get/processor.(*Processor).Process(0xc00019bf68, 0x0, 0x0)
	github.com/foamzou/audio-get/processor/processor.go:15 +0xb5
main.main()
	command-line-arguments/main.go:22 +0x93

Cannot download video from the URL, and I try to add -t audio tag, the audio download succeed.

@foamzou
Copy link
Owner

foamzou commented May 5, 2022

Fixed. Can check the latest version

@foamzou foamzou closed this as completed May 5, 2022
@foamzou foamzou added the bug Something isn't working label May 5, 2022
@Green-m
Copy link
Author

Green-m commented May 6, 2022

It works, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants