Skip to content

Commit

Permalink
Bumping kvas
Browse files Browse the repository at this point in the history
  • Loading branch information
boggydigital committed Aug 18, 2024
1 parent 849c071 commit 06f1134
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions cli/download_video.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func DownloadVideo(rdx kevlar.WriteableRedux, videoId string, opt *VideoOptions)
// apply video specific options
opt = ApplyVideoDownloadOptions(opt, videoId, rdx)

errors := false
errs := false

// adding to download queue (if not there already)
if !rdx.HasKey(data.VideoDownloadQueuedProperty, videoId) {
Expand All @@ -76,25 +76,25 @@ func DownloadVideo(rdx kevlar.WriteableRedux, videoId string, opt *VideoOptions)

if err := getVideoPageMetadata(videoPage, videoId, rdx); err != nil {
da.Error(err)
errors = true
errs = true
}

if err := downloadVideo(dolo.DefaultClient, videoId, videoPage, opt); err != nil {
da.Error(err)
errors = true
errs = true
}

if err := yeti.GetPosters(videoId, dolo.DefaultClient, opt.Force, youtube_urls.AllThumbnailQualities()...); err != nil {
da.Error(err)
errors = true
errs = true
}

if err := getVideoPageCaptions(videoPage, videoId, rdx, dolo.DefaultClient, opt.Force); err != nil {
da.Error(err)
errors = true
errs = true
}

if !errors {
if !errs {
// set downloaded date if no errors were encountered
if err := rdx.AddValues(data.VideoDownloadCompletedProperty, videoId, yeti.FmtNow()); err != nil {
return da.EndWithError(err)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/boggydigital/clo v1.0.4
github.com/boggydigital/coost v0.3.9
github.com/boggydigital/dolo v0.2.17
github.com/boggydigital/kevlar v0.5.15
github.com/boggydigital/kevlar v0.5.18
github.com/boggydigital/nod v0.1.21
github.com/boggydigital/pathways v0.1.14
github.com/boggydigital/yet_urls v0.1.54
Expand Down
2 changes: 1 addition & 1 deletion yeti/fmt_now.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package yeti

import "time"

const DefaultDelay time.Duration = 24 * time.Hour
const DefaultDelay = 24 * time.Hour

func FmtNow() string {
return time.Now().Format(time.RFC3339)
Expand Down

0 comments on commit 06f1134

Please sign in to comment.