Fix ID
This commit is contained in:
parent
797dd0eeaf
commit
ff72252625
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue