Explorar o código

Now with file path

Zachary Kotlarek %!s(int64=12) %!d(string=hai) anos
pai
achega
22eeec14af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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