Просмотр исходного кода

Do not complain about non-channel subscriptions

Zachary Kotlarek 11 лет назад
Родитель
Сommit
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);