From f15d1e77e9af56ebc1ba5ae46ee5d64d79655282 Mon Sep 17 00:00:00 2001 From: Roel van Uden Date: Thu, 22 Jan 2015 20:44:55 +0100 Subject: [PATCH] Stop hard-coding the video file extension. --- README.md | 1 - src/episode.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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); }