Skip to content

Commit

Permalink
idk... let's work around this for now
Browse files Browse the repository at this point in the history
  • Loading branch information
nikooo777 committed Aug 16, 2022
1 parent 9ef1b78 commit caca92a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sources/youtubeVideo.go
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,9 @@ func (v *YoutubeVideo) Sync(daemon *jsonrpc.Client, params SyncParams, existingV

func (v *YoutubeVideo) downloadAndPublish(daemon *jsonrpc.Client, params SyncParams) (*SyncSummary, error) {
var err error
if v.youtubeInfo == nil {
return nil, errors.Err("Video is not available - hardcoded fix")
}

dur := time.Duration(v.youtubeInfo.Duration) * time.Second
minDuration := 7 * time.Second
Expand Down

0 comments on commit caca92a

Please sign in to comment.