2020-02-25 00:56:19 +02:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
2020-02-25 01:01:10 +02:00
|
|
|
models "../models"
|
|
|
|
config "../models/config"
|
|
|
|
"fmt"
|
2020-02-25 00:56:19 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// GetUserUploads - Get all uploads marked with given hashtag
|
|
|
|
func GetHashtagUploads(hashtagURL string) []models.Upload {
|
2020-02-25 01:01:10 +02:00
|
|
|
jsMethod := fmt.Sprintf("bootstrapIteratingVideos(%d)", config.Config.Limit)
|
|
|
|
actionOutput := executeClientAction(hashtagURL, jsMethod)
|
|
|
|
return models.ParseUploads(actionOutput)
|
2020-02-25 00:56:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func GetHashtagUploadsJson(hashtagURL string) string {
|
2020-02-25 01:01:10 +02:00
|
|
|
jsMethod := fmt.Sprintf("bootstrapIteratingVideos(%d)", config.Config.Limit)
|
|
|
|
return executeClientAction(hashtagURL, jsMethod)
|
|
|
|
}
|