mirror of https://github.com/perkeep/perkeep.git
picasa: give a title to importer root permanode
Change-Id: I0e259db52060518dfe33f31f0222b169a8c9e0ef
This commit is contained in:
parent
9a3c619405
commit
f5f02768b3
|
@ -159,6 +159,17 @@ func (im *imp) Run(ctx *importer.RunContext) error {
|
|||
Transport: notOAuthTransport(ctx.HTTPClient()),
|
||||
}
|
||||
ctx.Context = ctx.Context.New(context.WithHTTPClient(transport.Client()))
|
||||
|
||||
root := ctx.RootNode()
|
||||
if root.Attr(nodeattr.Title) == "" {
|
||||
if err := root.SetAttr(nodeattr.Title,
|
||||
fmt.Sprintf("%s %s - Google/Picasa Photos",
|
||||
acctNode.Attr(importer.AcctAttrGivenName),
|
||||
acctNode.Attr(importer.AcctAttrFamilyName))); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
r := &run{
|
||||
RunContext: ctx,
|
||||
im: im,
|
||||
|
|
Loading…
Reference in New Issue