瀏覽代碼

Add subtitle dump just in case.

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

+ 5 - 0
src/episode.ts

@@ -186,6 +186,11 @@ function downloadSubtitle(config: IConfig, player: IEpisodePlayer, filePath: str
       return done(errSD);
     }
 
+    if (config.debug)
+    {
+      log.dumpToDebug('SubtitlesXML', data);
+    }
+
     const formats = subtitle.formats;
     const format = formats[config.format] ? config.format : 'ass';