mirror of
https://github.com/pikami/tiktok-dl.git
synced 2024-11-26 01:35:42 +00:00
15 lines
337 B
Go
15 lines
337 B
Go
package client
|
|
|
|
import (
|
|
models "../models"
|
|
)
|
|
|
|
// GetVideoDetails - returns details of video
|
|
func GetVideoDetails(videoURL string) (models.Upload, error) {
|
|
actionOutput, err := executeClientAction(videoURL, "bootstrapGetCurrentVideo()")
|
|
if err != nil {
|
|
return models.Upload{}, err
|
|
}
|
|
return models.ParseUpload(actionOutput), nil
|
|
}
|