Преглед изворни кода

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;
 			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
 		# YT has some trouble with case
 		my $lcFile = lc($file);
 		my $lcFile = lc($file);