ソースを参照

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

Zachary Kotlarek 11 年 前
親
コミット
b3fdd0af33
1 ファイル変更、4 行追加、1 行削除
  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