diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-08-03 15:45:50 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-08-03 15:45:50 (GMT) |
commit | 012102accf5a3422675bb471925f41f379a73f09 (patch) | |
tree | 326d16aa064c82d278069658c87f60e0079a24c9 /rhimport/core.go | |
parent | fd6f2c85fc89f3d67038c3b60eb38061c50cfedc (diff) |
added ExtraMetaData to context for converters who support this
Diffstat (limited to 'rhimport/core.go')
-rw-r--r-- | rhimport/core.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rhimport/core.go b/rhimport/core.go index bf4a57e..6afcd9f 100644 --- a/rhimport/core.go +++ b/rhimport/core.go @@ -157,6 +157,7 @@ type Context struct { SourceUri string AttachmentChan chan AttachmentChunk FetchConverter string + ExtraMetaData map[string]string OrigFilename string Title string SourceFile string @@ -197,6 +198,7 @@ func NewContext(conf *Config, db *rddb.DB, stdlog, dbglog *log.Logger) *Context ctx.UseMetaData = conf.ImportParamDefaults.UseMetaData ctx.AttachmentChan = make(chan AttachmentChunk, 32) ctx.FetchConverter = "ffmpeg-bs1770" + ctx.ExtraMetaData = make(map[string]string) ctx.OrigFilename = "" ctx.Title = "" ctx.SourceFile = "" |