var express = require("express"),
	util 	= require('util'),
    http    = require("http"),
    request = require("request"),
    argv	= require('minimist')(process.argv.slice(2));

// MOVIES
if (argv.m) {	
	/*
	
	id : movie IMDB code (required)
	link : url or magnet to get movie. Support: youtube, magnet link, torrent, direct URL to video (required)
	
	quality : link quality: 1080p, 720p o 480p (optional)
	seeders : number of seeders if link is a magnet or torrent file (optional)
	size : size del link (optional)
	
	*/
	
	// Select one option and comment the code not used:
	
	
	// MODE 1 : node.js code
	// ---------------------
	
	var movies = [];
	
	// Here must be a console.log() to return JSON.
	console.log(JSON.stringify(movies));
	
	// ----------------------
	
	
	
	// MODE 2 : other languages. External API code (recommended)
	// --------------------------------------------------------
	
	var url = 'ENTER YOUR HTTP HERE';
	
	request(url, function(error, response, html) {
	
		if(!error) {
			console.log(html);
		}
		else {
			var empty = [];
			console.log(JSON.stringify(empty));
		}
	});
	
	// --------------------------------------------------------
}


// EPISODES
if (argv.e) {	
	/*
	
	id : show TVDB code (required)
	link : url or magnet to get episode. Support: youtube, magnet link, torrent, direct URL to video (required)
	season : number of season
	episode : number of episode
	
	quality : link quality: 1080p, 720p o 480p (optional)
	seeders : number of seeders if link is a magnet or torrent file (optional)
	size : size del link (optional)
	
	*/
	
	// Select one option and comment the code not used:
	
	
	// MODE 1 : node.js code
	// ---------------------
	
	var episodes = [];
	
	// Here must be a console.log() to return JSON.
	console.log(JSON.stringify(episodes));
	
	// ----------------------
	
	
	
	// MODE 2 : other languages. External API code (recommended)
	// --------------------------------------------------------
	
	var url = 'ENTER YOUR HTTP HERE';
	
	request(url, function(error, response, html) {
	
		if(!error) {
			console.log(html);
		}
		else {
			var empty = [];
			console.log(JSON.stringify(empty));
		}
	});
	
	// --------------------------------------------------------
}

@@ -174,16 +174,17 @@
 e(2));%0A%0A
+%0A
 // MOVIE
@@ -205,737 +205,40 @@
 %7B%09%0A%09
-/*%0A%09%0A%09id : movie IMDB code (required)%0A%09link : url or magnet to get movie. Support: youtube, magnet link, torrent, direct URL to video (required)%0A%09%0A%09quality : link quality: 1080p, 720p o 480p (optional)%0A%09seeders : number of seeders if link is a magnet or torrent file (optional)%0A%09size : size del link (optional)%0A%09%0A%09*/%0A%09%0A%09// Select one option and comment the code not used:%0A%09%0A%09%0A%09// MODE 1 : node.js code%0A%09// ---------------------%0A%09%0A%09var movies = %5B%5D;%0A%09%0A%09// Here must be a console.log() to return JSON.%0A%09console.log(JSON.stringify(movies));%0A%09%0A%09// ----------------------%0A%09%0A%09%0A%09%0A%09// MODE 2 : other languages. External API code (recommended)%0A%09// --------------------------------------------------------%0A%09%0A%09var url = 'ENTER YOUR HTTP HERE
+var url = 'http://bit.ly/1AVtoIL
 ';%0A%09
@@ -408,76 +408,13 @@
 %09%7D);
-%0A
 %09%0A
-%09// --------------------------------------------------------%0A
 %7D%0A%0A
-%0A
 // E
@@ -441,798 +441,40 @@
 %7B%09%0A%09
-/*%0A%09%0A%09id : show TVDB code (required)%0A%09link : url or magnet to get episode. Support: youtube, magnet link, torrent, direct URL to video (required)%0A%09season : number of season%0A%09episode : number of episode%0A%09%0A%09quality : link quality: 1080p, 720p o 480p (optional)%0A%09seeders : number of seeders if link is a magnet or torrent file (optional)%0A%09size : size del link (optional)%0A%09%0A%09*/%0A%09%0A%09// Select one option and comment the code not used:%0A%09%0A%09%0A%09// MODE 1 : node.js code%0A%09// ---------------------%0A%09%0A%09var episodes = %5B%5D;%0A%09%0A%09// Here must be a console.log() to return JSON.%0A%09console.log(JSON.stringify(episodes));%0A%09%0A%09// ----------------------%0A%09%0A%09%0A%09%0A%09// MODE 2 : other languages. External API code (recommended)%0A%09// --------------------------------------------------------%0A%09%0A%09var url = 'ENTER YOUR HTTP HERE
+var url = 'http://bit.ly/1wgYAgV
 ';%0A%09
@@ -644,70 +644,8 @@
 %09%7D);
-%0A%09%0A%09// --------------------------------------------------------
+%09
 %0A%7D%0A

Update app.js