瀏覽代碼

Forgot to update config object with the new generated file name

Godzil 5 年之前
父節點
當前提交
c56998312c
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/episode.ts

+ 2 - 0
src/episode.ts

@@ -100,6 +100,8 @@ function download(config: IConfig, page: IEpisodePage, player: IEpisodePlayer, d
     } while (fileExist(filePath + '.mkv'));
 
     log.warn('Renaming to \'' + fileName + '\'...');
+
+    config.filename = fileName;
   }
 
   if (config.rebuildcrp)