Browse Source

Forgot to update config object with the new generated file name

Godzil 5 years ago
parent
commit
c56998312c
1 changed files with 2 additions and 0 deletions
  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)