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

yt-search dependency no longer returns results #17

Open
noabody opened this issue Jul 8, 2020 · 2 comments
Open

yt-search dependency no longer returns results #17

noabody opened this issue Jul 8, 2020 · 2 comments

Comments

@noabody
Copy link

noabody commented Jul 8, 2020

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 noabody changed the title How does Heroku build access the yt-search function? Webapp doesn't return search results. Jul 8, 2020
@noabody
Copy link
Author

noabody commented Jul 11, 2020

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 noabody changed the title Webapp doesn't return search results. yt-search dependency no longer returns results Jul 11, 2020
@noabody
Copy link
Author

noabody commented Jul 11, 2020

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.

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

1 participant