Code Monkey home page Code Monkey logo

youtube-video-downloader's People

Contributors

balajinikhil avatar chazie9 avatar chrisvillanueva avatar dependabot[bot] avatar moorad avatar paulo1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

youtube-video-downloader's Issues

after resolving the Can not get.... issue I got issue like this..

Error: No default engine was specified and no extension was provided.
at new View (/Users/kadamp/Downloads/youtubeDownloader-master/Server/node_modules/express/lib/view.js:61:11)
at Function.render (/Users/kadamp/Downloads/youtubeDownloader-master/Server/node_modules/express/lib/application.js:570:12)
at ServerResponse.render (/Users/kadamp/Downloads/youtubeDownloader-master/Server/node_modules/express/lib/response.js:1012:7)
at /Users/kadamp/Downloads/youtubeDownloader-master/Server/index.js:31:7
at Layer.handle [as handle_request] (/Users/kadamp/Downloads/youtubeDownloader-master/Server/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/kadamp/Downloads/youtubeDownloader-master/Server/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/Users/kadamp/Downloads/youtubeDownloader-master/Server/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/Users/kadamp/Downloads/youtubeDownloader-master/Server/node_modules/express/lib/router/layer.js:95:5)
at /Users/kadamp/Downloads/youtubeDownloader-master/Server/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/Users/kadamp/Downloads/youtubeDownloader-master/Server/node_modules/express/lib/router/index.js:335:12)### ****

Issue on 'NPM INIT'

Hello,
If I'm not wrong I was supposed to hold Shift and
perform a Right Click on the folder "Server" to make available the PowerShell option in the right-click menu
And once launched, introduce "npm init" and press enter?...
If it's so, for some reason, it just fails and says:
"npm init" is not recognized as a cmdlet, function and or script.

I'm a newbie on these things.
How should I proceed or fix this?.

I guess I'm supposed to have installed Node JS beforehand, right?

confused on how to use.

I have looked everywhere and cloned it but I can't find anywhere I can either download it or use it. I am new to Github and that's not helping but is there something I missed?

Connection denied by localhost.

I think I did all correctly but both convert to mp4 and convert to mp3 give me "Connection refused by localhost" is it for my router configuration or have I wrong something with the configuration of the server?
Searching around the internet the most asked question is "can you connect to 127.0.0.1?" and I cannot, but don't know why.

ERR_CONNECTION_REFUSED

Hi, im using Google Cloud with a VM instance.

Im getting this error , how can i solve it?

image

Missing Data

The script is downloading well but there is no bit rate or length on the mp3 files and they are unplayable. Any ideas what that could be ?
audio

TypeError: Cannot read property 'player_response' of undefined

Hi i get
TypeError: Cannot read property 'player_response' of undefined at /Users/william/Documents/youtubeDownloader-master/Server/index.js:50:17 at processTicksAndRejections (internal/process/task_queues.js:97:5) at async /Users/william/Documents/youtubeDownloader-master/Server/index.js:47:3
when trying to use it. Am i doing something wrong?

Error: No default engine was specified and no extension was provided.

I installed it but i get this error:
Error: No default engine was specified and no extension was provided. at new View (C:\youtubeDownloader\Server\node_modules\express\lib\view.js:61:11) at Function.render (C:\youtubeDownloader\Server\node_modules\express\lib\application.js:570:12) at ServerResponse.render (C:\youtubeDownloader\Server\node_modules\express\lib\response.js:1012:7) at app.get (C:\youtubeDownloader\Server\index.js:54:5) at Layer.handle [as handle_request] (C:\youtubeDownloader\Server\node_modules\express\lib\router\layer.js:95:5) at next (C:\youtubeDownloader\Server\node_modules\express\lib\router\route.js:137:13) at Route.dispatch (C:\youtubeDownloader\Server\node_modules\express\lib\router\route.js:112:3) at Layer.handle [as handle_request] (C:\youtubeDownloader\Server\node_modules\express\lib\router\layer.js:95:5) at C:\youtubeDownloader\Server\node_modules\express\lib\router\index.js:281:22 at Function.process_params (C:\youtubeDownloader\Server\node_modules\express\lib\router\index.js:335:12)

Question: Subdomain install

Hello mooradal,

I installed in an existing subdomain: joomla.localdomain.

$ cd /srv/http/joomla
[http@tower joomla]$ cd Server/
[http@tower Server]$ node index.js
Server Works !!! At port 4000

e3e1e441-08b4-4f41-8f27-48ce303b63b1

In script.js I tried localhost and joomla.localdomain

$ cat script.js
var convertBtn = document.querySelector('.convert-button');
var URLinput = document.querySelector('.URL-input');

convertBtn.addEventListener('click', () => {
console.log(URL: ${URLinput.value});
sendURL(URLinput.value);
});

function sendURL(URL) {
window.location.href = http://localhost:4000/download?URL=${URL};
}

But I get in both cases :

ERR_CONNECTION_REFUSED

Will the example work in a subdomain?

Best

when i hit convert mp4 button it keeps waiting for localhost.

here is my script.js
`var mp3Btn = document.getElementById('mp3');
var mp4Btn = document.getElementById('mp4');
var URLinput = document.querySelector('.URL-input');
var server = 'http://localhost:8000';

mp3Btn.addEventListener('click', () => {
console.log(URL: ${URLinput.value});
redirectMp3(URLinput.value);
});

mp4Btn.addEventListener('click', () => {
console.log(URL: ${URLinput.value});
redirectMp4(URLinput.value);
});

function redirectMp3(query) {
window.location.href = ${server}/downloadmp3?url=${query};
}

function redirectMp4(query) {
window.location.href = ${server}/downloadmp4?url=${query};
}`

[question] why a.click over window.open

hello, i was wondering if there was a reason to use the hacky and longer way of creating a href element and click() on it instead of using window.open() ? I would be happy to know as I'm trying to do a yt downloader but I've got problem figuring out how to download multiple files (playlists) as when opening multiple window the browser blocks it as pop up, since it tries to open multiple window. I don't know if there is a better way. thanks

Application error in Heroku after deploying

Recently tried to learn some YouTube web tricks using your app. When I tried to deploy the same in Heroku I could not do that due to Application error y log files, please tell me how to get rid of this.

Adding mp3 support

I wish like to add MP3 support to the YouTube downloader.

I might add the feature myself

Deployed to Zeit : But on submit page is not found // Works locally though, just not deployed

Saw your post on Medium and wanted to build one myself.

I deployed it here: https://ytdownloader-hmb8sypdc.vercel.app/

My server.js file looks like this:

`

	server.get('/download', async (req, res) => {
		try {
			let url = req.query.url;
			let info = await ytdl.getInfo(url);
			const video_title = info.videoDetails.title.replace(/\s+/g, '-');

			res.header('Content-Disposition', `attachment; filename="${video_title}.mp4"`);

			ytdl(url, {
		    	format: 'mp4',
		    	quality: 'highest',
		    }).pipe(res);
		}

		catch (err) {
			console.log('Error locating video...', err);

			return app.render(req, res, '/404');
		}
			
	});

`

Thanks!

Remove vulnerabilities

There are a list of vulnerabilities that needs to be fixed in package.json and package-lock.json

Checking for invalid URLs

The app currently does not check for invalid URLs and often will result in errors if an invalid URL is inserted. currently there is no indication for the user to know that the URL is invalid and this bug need to be fixed.

Bug: Invalid character in header content ["Content-Disposition"]

Hello.

I ran into an issue when testing a download. I encountered this server error:

Server Works !!! At port 4000
TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["Content-Disposition"]
    at ServerResponse.setHeader (_http_outgoing.js:473:3)

Any ideas on how to resolve this?

Thanks!

Cannot GET /

I ran it at 333 port
and it says
Cannot GET /

Error: Error parsing info: Unexpected token ) in JSON at position 0

When I try to download mp3 file I get this error on express

Error: Error parsing info: Unexpected token ) in JSON at position 0
    at exports.getBasicInfo (C:\Users\Maks_\Downloads\youtubeDownloader-master\Server\node_modules\ytdl-core\lib\info.js:71:11)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Map.getOrSet (C:\Users\Maks_\Downloads\youtubeDownloader-master\Server\node_modules\ytdl-core\lib\cache.js:24:19)
    at async C:\Users\Maks_\Downloads\youtubeDownloader-master\Server\index.js:21:3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.