dmhacker / dmhacker-youtube

YouTube proxy on a Heroku instance
http://dmhacker-youtube.herokuapp.com/
MIT License
41 stars 132 forks source link

yt-search dependency no longer returns results #17

Open noabody opened 4 years ago

noabody commented 4 years ago

I built the app and specified a youtube API key but the web interface doesn't return any results. Doesn't matter if I use my own or the one specified in the configs. https://raw.githubusercontent.com/dmhacker/alexa-youtube-skill/master/index.js

noabody commented 4 years ago

Web app does work on Heroku if I update NPM dependencies in package.json to reflect the latest yt-search and ytdl-core:
Now if I were only half as good as dmhacker.

diff --git a/package.json b/package.json
index 9409458..73f7782 100644
--- a/package.json
+++ b/package.json
@@ -10,12 +10,12 @@
         "start": "node index.js"
     },
     "dependencies": {
-        "ejs": "^3.1.2",
+        "ejs": "^3.1.3",
         "express": "^4.17.1",
         "log": "^6.0.0",
         "log-node": "^7.0.0",
-        "yt-search": "^1.1.2",
-        "ytdl-core": "^2.1.1"
+        "yt-search": "^2.1.1",
+        "ytdl-core": "^3.1.2"
     },
     "repository": {
         "type": "git",
noabody commented 4 years ago

I followed the setup instructions but found it easier when building the skill to choose "Custom" along with "Alexa Hosted(node.js)" then "Hello World Skill".

The "Code" tab shows a folder hierarchy with what appears to be the Lambda hosted code. I simply created folders and files to match the alexa-youtube-skill then copied and pasted the information.

Okay it wasn't simple but I also didn't have to create an AWS to use the skill.