Browse Source

Do not NFO when we do not cURL

Zachary Kotlarek 12 years ago
parent
commit
10c2f3e9a6
1 changed files with 5 additions and 1 deletions
  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);
+		}
 	}
 }