tiktok-dl/client/getVideoDetails.go

15 lines
337 B
Go
Raw Normal View History

package client
import (
models "../models"
)
// GetVideoDetails - returns details of video
2020-02-25 20:12:01 +02:00
func GetVideoDetails(videoURL string) (models.Upload, error) {
actionOutput, err := executeClientAction(videoURL, "bootstrapGetCurrentVideo()")
if err != nil {
return models.Upload{}, err
}
return models.ParseUpload(actionOutput), nil
}