@@ -80,7 +80,7 @@ func LoadVideoMeta(config Config) (*VideoMeta, *youtube.Video, error) {
8080 // Force send some boolean values.
8181 // Without this, defaults on the Youtube side are used which can have unexpected results.
8282 // See: https://github.com/porjo/youtubeuploader/issues/132
83- video .Status .ForceSendFields = []string {"SelfDeclaredMadeForKids" }
83+ video .Status .ForceSendFields = []string {"SelfDeclaredMadeForKids" , "ContainsSyntheticMedia" }
8484
8585 // attempt to load from meta JSON, otherwise use values specified from command line flags
8686 if config .MetaJSON != "" {
@@ -132,13 +132,15 @@ func LoadVideoMeta(config Config) (*VideoMeta, *youtube.Video, error) {
132132 if videoMeta .PublicStatsViewable {
133133 video .Status .PublicStatsViewable = videoMeta .PublicStatsViewable
134134 }
135+ if videoMeta .ContainsSyntheticMedia {
136+ video .Status .ContainsSyntheticMedia = true
137+ }
135138 if ! videoMeta .PublishAt .IsZero () {
136139 if video .Status .PrivacyStatus != "private" {
137140 fmt .Printf ("publishAt can only be used when privacyStatus is 'private'. Ignoring publishAt...\n " )
138141 } else {
139142 if videoMeta .PublishAt .Before (time .Now ()) {
140143 fmt .Printf ("publishAt (%s) was in the past!? Publishing now instead...\n " , videoMeta .PublishAt )
141- video .Status .PublishAt = time .Now ().UTC ().Format (ytDateLayout )
142144 } else {
143145 video .Status .PublishAt = videoMeta .PublishAt .UTC ().Format (ytDateLayout )
144146 }
0 commit comments