瀏覽代碼

Do not complain about non-channel subscriptions

Zachary Kotlarek 11 年之前
父節點
當前提交
729ddb5083
共有 1 個文件被更改,包括 8 次插入 和 0 次删除
  1. 8 0
      yt/subscribe.pl

+ 8 - 0
yt/subscribe.pl

@@ -775,6 +775,14 @@ sub saveSubscriptions($$) {
 			next;
 		}
 
+		# Skip "None" directories
+		if ($file =~ /\s+\(None\)$/) {
+			if ($DEBUG) {
+				print STDERR 'Ignoring non-channel subscription: ' . $file . "\n";
+			}
+			next;
+		}
+
 		# YT has some trouble with case
 		my $lcFile = lc($file);