add MediaLofi in kontor-gin #97
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"sport": null,
|
||||
"player": null,
|
||||
"team": null,
|
||||
"field_position": null,
|
||||
"rooster": null,
|
||||
"vendor": null,
|
||||
"card_set": null,
|
||||
"card": null,
|
||||
"artist": null,
|
||||
"publisher": null,
|
||||
"worktype": null,
|
||||
"comic": null,
|
||||
"volume": null,
|
||||
"story_arc": null,
|
||||
"issue": null,
|
||||
"trade_paperback": null,
|
||||
"comic_work": null,
|
||||
"issue_work": null,
|
||||
"article": null,
|
||||
"bookshelf_publisher": null,
|
||||
"book": null,
|
||||
"author": null,
|
||||
"article_author": null,
|
||||
"book_author": null,
|
||||
"media_article": null,
|
||||
"media_video": null,
|
||||
"media_lofi": null,
|
||||
"media_file": null,
|
||||
"media_actor": null,
|
||||
"media_actor_file": null,
|
||||
"profile": null,
|
||||
"permission": null,
|
||||
"assignment": null,
|
||||
"token": null,
|
||||
"mail_account": null,
|
||||
"mail": null
|
||||
}
|
||||
@@ -137,9 +137,6 @@ func GetData(server config.Server, apiVersion string) (data *ExportData, err err
|
||||
|
||||
for path, value := range Registry {
|
||||
GetJSON(client, login.Token, server, path, value)
|
||||
if path == "tysc/sports" {
|
||||
slog.Info("Sports", "value", value, "Registry.Sports", Sports)
|
||||
}
|
||||
}
|
||||
export := ExportData{
|
||||
Sport: Sports,
|
||||
@@ -199,7 +196,7 @@ func WriteJson(data *ExportData, fileName string) error {
|
||||
}
|
||||
|
||||
func GetJSON(client *resty.Client, token string, server config.Server, path string, v any) {
|
||||
url := fmt.Sprintf("%s/%s", server.Url, path)
|
||||
url := fmt.Sprintf("%s/%s/%s", server.Url, config.Config.ApiVersion, path)
|
||||
if config.Verbose > 1 {
|
||||
slog.Info("GetJSON", "url", url)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user