Przeglądaj źródła

Now with file path

Zachary Kotlarek 12 lat temu
rodzic
commit
22eeec14af
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      yt/subscribe.pl

+ 1 - 1
yt/subscribe.pl

@@ -197,7 +197,7 @@ foreach my $id (keys(%{$videos})) {
 			rename($files->{$id}->{'nfo'},  $nfo);
 			
 			# This is a hack, but it fits nicely in one line
-			system('sed', '-i', 's%<episode>[0-9]*</episode>%<episode>' . $videos->{$id}->{'number'} . '</episode>%');
+			system('sed', '-i', 's%<episode>[0-9]*</episode>%<episode>' . $videos->{$id}->{'number'} . '</episode>%', $nfo);
 		} else {
 
 			# Find the old NFO to avoid re-fetching