Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Searches coming up empty #18

Open
mlsmall opened this issue Jul 12, 2020 · 4 comments
Open

Searches coming up empty #18

mlsmall opened this issue Jul 12, 2020 · 4 comments

Comments

@mlsmall
Copy link

mlsmall commented Jul 12, 2020

@dmhacker Can you update this repository? The YouTube searches are coming up empty on Heroku.

@famewolf
Copy link

I implemented thepauleh's changes. I couldn't figure out how to get his commit applied to my fork so I copied the two files. It's working and finds a result then asks if I want to download it. Every time after it says "An error occurred. Video unavailable".

@Paul-PSDigital
Copy link
Contributor

Im seeing the same thing - my hunch is the file storage. Its my first time playing with Heroku, but it appears the local dyno storage is designed to be stateless / isnt distributed

@famewolf
Copy link

Well at least I know I did the first part right. You are doing better than me. I'm an old retired mainframe programmer so this is definitely beyond the scope of my experience. I do good to figure out the tutorial for these things. ;)

@famewolf
Copy link

famewolf commented Jul 20, 2020

Slightly different than thepauleh and the guy claims it works so trying it. He updated some additional versions.

#17 (comment)

I had to revert two of his changes because it wouldn't deploy however one of his other changes fixes the video unavailable. My package.json ended up looking like this:

{
"name": "dmhacker-youtube",
"version": "3.0.0",
"description": "YouTube proxy that can fetch and play videos",
"engines": {
"node": "12.16.3"
},
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"dependencies": {
"ejs": "^3.1.2",
"express": "^4.17.1",
"log": "^6.0.0",
"log-node": "^7.0.0",
"yt-search": "^2.1.1",
"ytdl-core": "^2.1.1"
},
"repository": {
"type": "git",
"url": "https://github.com/dmhacker/dmhacker-youtube"
},
"keywords": [
"node",
"heroku",
"express",
"proxy",
"youtube"
],
"license": "MIT"
}

One annoyance is I have to say the first word twice to get it recognized or it gets truncated. ie Alexa, search "my youtube" for Britney Britney Spears and if you do that exact search it still says video unavailable but some video's do work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants