2020-01-26 17:44:25 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
2020-02-24 22:56:19 +00:00
|
|
|
models "../models"
|
|
|
|
config "../models/config"
|
|
|
|
"fmt"
|
2020-01-26 17:44:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// GetMusicUploads - Get all uploads by given music
|
|
|
|
func GetMusicUploads(url string) []models.Upload {
|
2020-02-24 22:56:19 +00:00
|
|
|
jsMethod := fmt.Sprintf("bootstrapIteratingVideos(%d)", config.Config.Limit)
|
|
|
|
actionOutput := executeClientAction(url, jsMethod)
|
|
|
|
return models.ParseUploads(actionOutput)
|
2020-01-26 17:44:25 +00:00
|
|
|
}
|
2020-02-24 22:56:19 +00:00
|
|
|
|
|
|
|
func GetMusicUploadsJson(url string) string {
|
|
|
|
jsMethod := fmt.Sprintf("bootstrapIteratingVideos(%d)", config.Config.Limit)
|
|
|
|
return executeClientAction(url, jsMethod)
|
|
|
|
}
|