瀏覽代碼

Now with file path

Zachary Kotlarek 12 年之前
父節點
當前提交
22eeec14af
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  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);
 			rename($files->{$id}->{'nfo'},  $nfo);
 			
 			
 			# This is a hack, but it fits nicely in one line
 			# 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 {
 		} else {
 
 
 			# Find the old NFO to avoid re-fetching
 			# Find the old NFO to avoid re-fetching