+ if (program[ 'since' ]) {
+ if (buildOriginallyPublishedAt(videoInfo).getTime() < program[ 'since' ].getTime()) {
+ console.log('Video "%s" has been published before "%s", don\'t upload it.\n',
+ videoInfo.title, formatDate(program[ 'since' ]));
+ return res();
+ }
+ }
+ if (program[ 'until' ]) {
+ if (buildOriginallyPublishedAt(videoInfo).getTime() > program[ 'until' ].getTime()) {
+ console.log('Video "%s" has been published after "%s", don\'t upload it.\n',
+ videoInfo.title, formatDate(program[ 'until' ]));
+ return res();
+ }
+ }
+