فهرست منبع

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);