summaryrefslogtreecommitdiff
path: root/rhimport/importer.go
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport/importer.go')
-rw-r--r--rhimport/importer.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/rhimport/importer.go b/rhimport/importer.go
index 69422e2..e7f6283 100644
--- a/rhimport/importer.go
+++ b/rhimport/importer.go
@@ -42,6 +42,9 @@ func (res *Result) fromRDWebResult(rdres *rdWebResult) {
}
}
+//****************************************************************
+//** managing carts and cuts
+
func addCart(ctx *Context, res *Result) (err error) {
ctx.dbglog.Printf("importer: addCart() called for cart: %d", ctx.Cart)
@@ -237,6 +240,9 @@ func sendPostRequest(url string, b *bytes.Buffer, contenttype string) (resp *htt
return
}
+//****************************************************************
+//** import audio
+
func importAudioCreateRequest(ctx *Context, easy *curl.CURL) (form *curl.Form, err error) {
form = curl.NewForm()
@@ -339,6 +345,9 @@ func importAudio(ctx *Context, res *Result) (err error) {
return
}
+//****************************************************************
+//** global stuff
+
func addCartCut(ctx *Context, res *Result) (err error) {
if err = addCart(ctx, res); err != nil || res.ResponseCode != http.StatusOK {
return