Просмотр исходного кода

Merge branch 'master' of github.com:profplump/UberZach-Video

Zachary Kotlarek 12 лет назад
Родитель
Сommit
63f1a39e4d
2 измененных файлов с 6 добавлено и 2 удалено
  1. 1 1
      findRecode
  2. 5 1
      yt/subscribe.pl

+ 1 - 1
findRecode

@@ -119,5 +119,5 @@ IFS="${OLDIFS}"
 
 # Record the last scan time
 if [ -n "${LAST_RECODE_FILE}" ]; then
-	touch "${LAST_RECODE_FILE}"
+	touch "${LAST_RECODE_FILE}" >/dev/null 2>&1
 fi

+ 5 - 1
yt/subscribe.pl

@@ -103,6 +103,10 @@ my $NO_FETCH = 0;
 if ($ENV{'NO_FETCH'}) {
 	$NO_FETCH = 1;
 }
+my $NO_NFO = 0;
+if ($ENV{'NO_NFO'}) {
+	$NO_NFO = 1;
+}
 my $NO_SEARCH = 0;
 if ($ENV{'NO_SEARCH'}) {
 	$NO_SEARCH = 1;
@@ -243,7 +247,7 @@ foreach my $id (keys(%{$videos})) {
 		if ($DEBUG > 1) {
 			print STDERR 'Saving NFO: ' . $xml . "\n";
 		}
-		if ($NO_FETCH) {
+		if ($NO_NFO) {
 			print STDERR "Not saving NFO\n";
 		} else {
 			saveString($nfo, $xml);