⬆️ Upgrade my-log
This commit is contained in:
parent
a01b77d198
commit
994a10a45c
4 changed files with 9 additions and 9 deletions
|
|
@ -44,9 +44,9 @@ func GetLog(ctx context.Context, url string, now time.Time) (models.Log, error)
|
|||
}
|
||||
ent.Date = now
|
||||
// TODO Get published date
|
||||
ent.ID = getID(now, info)
|
||||
|
||||
metas := &ent.Fields
|
||||
*metas = metas.Set("id", getID(now, info))
|
||||
|
||||
source := FirstNonZero(info.ExtractorKey, info.WebpageURLDomain, new("Web Video"))
|
||||
*metas = metas.Set("source", source)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue