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

Only delete the NFO if it does not represent the video file we are keeping

Zachary Kotlarek 11 лет назад
Родитель
Сommit
a25cf962f3
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      yt/subscribe.pl

+ 3 - 1
yt/subscribe.pl

@@ -508,7 +508,9 @@ sub findFiles() {
 
 					print STDERR 'Deleting duplicate: ' . $del->{'path'} . "\n";
 					unlink($del->{'path'});
-					unlink($del->{'nfo'});
+					if ($del->{'nfo'} ne $tmp{'nfo'}) {
+						unlink($del->{'nfo'});
+					}
 				}
 			}
 			$files{$id} = \%tmp;