فهرست منبع

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

Zachary Kotlarek 11 سال پیش
والد
کامیت
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;