Skip to content

Commit

Permalink
Check youtube-dl and ffmpeg dependencies before loading configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mxpv committed Nov 15, 2019
1 parent 9cca09d commit 354795e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/podsync/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@ func main() {
"date": date,
}).Info("running podsync")

downloader, err := ytdl.New(ctx)
if err != nil {
log.WithError(err).Fatal("youtube-dl error")
}

// Load TOML file
log.Debugf("loading configuration %q", opts.ConfigPath)
cfg, err := config.LoadConfig(opts.ConfigPath)
if err != nil {
log.WithError(err).Fatal("failed to load configuration file")
}

downloader, err := ytdl.New(ctx)
if err != nil {
log.WithError(err).Fatal("youtube-dl error")
}

// Queue of feeds to update
updates := make(chan *config.Feed, 16)
defer close(updates)
Expand Down

0 comments on commit 354795e

Please sign in to comment.