idk... let's work around this for now

This commit is contained in:
Niko Storni committed 2022-08-16 02:51:35 +02:00
1 parent 9ef1b7800b
commit caca92a6bc
1 file changed
+3
+3
View File
@@ -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