diff --git a/app/app.go b/app/app.go index 9d0828b..1b1afe5 100644 --- a/app/app.go +++ b/app/app.go @@ -427,7 +427,13 @@ func (a *App) uploadHandler(w http.ResponseWriter, r *http.Request) { // HTTP handler for /import func (a *App) importHandler(w http.ResponseWriter, r *http.Request) { if r.Method == "GET" { - ctx := &struct{}{} + ctx := &struct { + Config *Config + Playing *media.Video + }{ + Config: a.Config, + Playing: &media.Video{ID: ""}, + } a.render("import", w, ctx) } else if r.Method == "POST" { r.ParseMultipartForm(1024)