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