Преглед изворни кода

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';