This commit is contained in:
Gabriel Augendre 2018-11-23 10:52:43 +01:00
parent 797dd0eeaf
commit ff72252625
1 changed files with 1 additions and 1 deletions

View File

@ -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")