Browse Source

Fix ID

master
Gabriel Augendre 3 years ago
parent
commit
ff72252625
  1. 2
      beater/youtubebeat.go

2
beater/youtubebeat.go

@ -79,7 +79,7 @@ func scrapeVideos(b *beat.Beat, bt *Youtubebeat, done chan bool) {
Fields: fields,
}
id := strings.Replace(fields["url"].(string), BaseUrl+BaseSuffix, "", -1)
id := e.Request.URL.Query()["v"][0]
event.SetID(id)
bt.client.Publish(event)
logp.Info("Event sent")

Loading…
Cancel
Save