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: youtubebeat:
# Defines how often an event is sent to the output # Defines how often an event is sent to the output
period: 1s period: 1s
start_url: "https://www.youtube.com/watch?v=SmBCZgcGlKk"

View file

@ -7,8 +7,10 @@ import "time"
type Config struct { type Config struct {
Period time.Duration `config:"period"` Period time.Duration `config:"period"`
StartUrl string `config:"start_url"`
} }
var DefaultConfig = Config{ 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: youtubebeat:
# Defines how often an event is sent to the output # Defines how often an event is sent to the output
period: 1s period: 1s
start_url: "https://www.youtube.com/watch?v=SmBCZgcGlKk"
#================================ General ====================================== #================================ General ======================================

View file

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