Explorar o código

Warn less, at least until YT gets their API working again

Zachary Kotlarek %!s(int64=11) %!d(string=hai) anos
pai
achega
b3fdd0af33
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      yt/subscribe.pl

+ 4 - 1
yt/subscribe.pl

@@ -771,7 +771,10 @@ sub saveSubscriptions($$) {
 
 		# Anything else should be in the list
 		if (!$subs->{$file} && !$subs->{$lcFile}) {
-			print STDERR 'Missing YT subscription for: ' . $file . "\n";
+			my (undef(), undef(), $hour) = localtime(time);
+			if ($hour == 0 || $DEBUG) {
+				print STDERR 'Missing YT subscription for: ' . $file . "\n";
+			}
 		}
 
 		# Note local subscriptions