Ver Fonte

Do not NFO when we do not cURL

Zachary Kotlarek há 12 anos atrás
pai
commit
10c2f3e9a6
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      yt/subscribe.pl

+ 5 - 1
yt/subscribe.pl

@@ -172,7 +172,11 @@ foreach my $id (keys(%{$videos})) {
 		if ($DEBUG > 1) {
 			print STDERR 'Saving NFO: ' . $xml . "\n";
 		}
-		saveString($nfo, $xml);
+		if ($NO_FETCH) {
+			print STDERR "Not saving NFO\n";
+		} else {
+			saveString($nfo, $xml);
+		}
 	}
 }