diff --git a/README.md b/README.md index a2f69d2..9ca2852 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,6 @@ premium subscription!** ### Pending Implementation -* Detect and write the appropriate video extension (instead of hard-code mp4). * Add ASS support. * Add muxing (MP4+ASS=MKV). * Add series API to download an entire series rather than per-episode. diff --git a/src/episode.js b/src/episode.js index a3b3dfe..41356bf 100644 --- a/src/episode.js +++ b/src/episode.js @@ -132,6 +132,6 @@ function _video(config, page, player, filePath, done) { player.video.host, player.video.file, page.swf, - filePath + '.mp4', + filePath + '.' + path.extname(player.video.file), done); }