Parcourir la source

Do not NFO when we do not cURL

Zachary Kotlarek il y a 12 ans
Parent
commit
10c2f3e9a6
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  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);
+		}
 	}
 }