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:
|
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"
|
||||||
|
|
|
@ -6,9 +6,11 @@ package config
|
||||||
import "time"
|
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",
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 ======================================
|
||||||
|
|
||||||
|
|
|
@ -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 =====================================
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue