diff options
Diffstat (limited to 'app/app.go')
| -rw-r--r-- | app/app.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) |
