Add start url field
This commit is contained in:
parent
38fd446535
commit
5708f479a2
4 changed files with 7 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -7,8 +7,10 @@ import "time"
|
|||
|
||||
type Config struct {
|
||||
Period time.Duration `config:"period"`
|
||||
StartUrl string `config:"start_url"`
|
||||
}
|
||||
|
||||
var DefaultConfig = Config{
|
||||
Period: 1 * time.Second,
|
||||
StartUrl: "https://www.youtube.com/watch?v=SmBCZgcGlKk",
|
||||
}
|
||||
|
|
|
@ -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 ======================================
|
||||
|
||||
|
|
|
@ -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 =====================================
|
||||
|
||||
|
|
Loading…
Reference in a new issue