Add start url field

This commit is contained in:
Gabriel Augendre 2018-11-18 11:23:00 +01:00
parent 38fd446535
commit 5708f479a2
4 changed files with 7 additions and 2 deletions

View file

@ -5,3 +5,4 @@
youtubebeat:
# Defines how often an event is sent to the output
period: 1s
start_url: "https://www.youtube.com/watch?v=SmBCZgcGlKk"

View file

@ -6,9 +6,11 @@ package config
import "time"
type Config struct {
Period time.Duration `config:"period"`
Period time.Duration `config:"period"`
StartUrl string `config:"start_url"`
}
var DefaultConfig = Config{
Period: 1 * time.Second,
Period: 1 * time.Second,
StartUrl: "https://www.youtube.com/watch?v=SmBCZgcGlKk",
}

View file

@ -5,6 +5,7 @@
youtubebeat:
# Defines how often an event is sent to the output
period: 1s
start_url: "https://www.youtube.com/watch?v=SmBCZgcGlKk"
#================================ General ======================================

View file

@ -5,6 +5,7 @@
youtubebeat:
# Defines how often an event is sent to the output
period: 1s
start_url: "https://www.youtube.com/watch?v=SmBCZgcGlKk"
#================================ General =====================================