dmhacker / alexa-youtube-skill

Allows Alexa to play audio from YouTube videos
MIT License
243 stars 109 forks source link

Alexa find the song but can't play it #69

Closed daniecas closed 4 years ago

daniecas commented 4 years ago

The base case is:

I: "Alexa, ask youtube to play ed sheeran"

Alexa: "I found ed sheeran song ....., do you want to play it?" (or something similar)

I: "yes"

Alexa: "There was a problem with the requested skill's response"

the logs is (I've searched "ligabue" an italian singer):

 14:35:01 START RequestId: 9a793afe-0219-4c90-8c16-d2c0d35fc222 Version: $LATEST  14:35:01 2020-03-21T14:35:01.617Z 9a793afe-0219-4c90-8c16-d2c0d35fc222 INFO start GetVideoItalianIntent (new log inserted by me)  14:35:01 2020-03-21T14:35:01.697Z 9a793afe-0219-4c90-8c16-d2c0d35fc222 INFO start search_video (new log inserted by me)  14:35:01 2020-03-21T14:35:01.716Z 9a793afe-0219-4c90-8c16-d2c0d35fc222 INFO User amzn1.ask.account.AGM6VUEBAU2H57VDT7TMY34CKTH5ETZVLTEIBEQAOFEVRYT47S2NBBGVAI3SLOI2VZ2PN5DHOGJ4ZTEAA6V6PMEQW6KRXMFEOCO7DG26UDM6NSY7Z2ZHW4GWNH5XIMUS6GYNI2SUL6MWU2EIOZRD4PEWVJOC6IW5TV7KWQB7UQIVIOP2MLDRLFI5CGL7QWMMA5M4JZZN4U3UPAA entered search query 'ligabue'.  14:35:02 2020-03-21T14:35:02.811Z 9a793afe-0219-4c90-8c16-d2c0d35fc222 INFO Search result is 'Ligabue - Certe Donne Brillano (Official Video) at https://www.youtube.com/watch?v=J8hwaYvneIo.  14:35:02 END RequestId: 9a793afe-0219-4c90-8c16-d2c0d35fc222  14:35:02 REPORT RequestId: 9a793afe-0219-4c90-8c16-d2c0d35fc222 Duration: 1380.05 ms Billed Duration: 1400 ms Memory Size: 128 MB Max Memory Used: 48 MB  14:35:11 START RequestId: 2e1f697b-0014-412d-b447-c5152d9a892d Version: $LATEST  14:35:12 2020-03-21T14:35:12.213Z 2e1f697b-0014-412d-b447-c5152d9a892d INFO https://dmhacker-youtube.herokuapp.com/site/J8hwaYvneIo.m4a has started downloading.  14:35:21 2020-03-21T14:35:21.551Z 2e1f697b-0014-412d-b447-c5152d9a892d ERROR J8hwaYvneIo is not being cached. Did an error occur?  14:35:21 2020-03-21T14:35:21.552Z 2e1f697b-0014-412d-b447-c5152d9a892d ERROR Video unavailable.  14:35:21 END RequestId: 2e1f697b-0014-412d-b447-c5152d9a892d  14:35:21 REPORT RequestId: 2e1f697b-0014-412d-b447-c5152d9a892d Duration: 9680.48 ms Billed Duration: 9700 ms Memory Size: 128 MB Max Memory Used: 48 MB

thank you so much for you support

Pymai73 commented 4 years ago

I have the same problem like I wrote in the other opened issue. I think we need the help of the autor of the skill with a new tutorial to create the skill and the lambda fuction from 0 because when I see the new tutorial I've seen some parameters different from those that I have before in the Lambda and it seems impossible to replicate the structure of the lambda of Dmhacker. Hope that he will help us to solve the problem.

daniecas commented 4 years ago

I have the same problem like I wrote in the other opened issue. I think we need the help of the autor of the skill with a new tutorial to create the skill and the lambda fuction from 0 because when I see the new tutorial I've seen some parameters different from those that I have before in the Lambda and it seems impossible to replicate the structure of the lambda of Dmhacker. Hope that he will help us to solve the problem.

I don't thinks this is the problem, the issue is derivated from an error on downloading youtube song, the tutorial seem correct. Wait for author to understand what we can change in the code

dmhacker commented 4 years ago

Ok, I think the issue here was that the proxy server's YouTube video downloader was outdated. I've fixed this issue by upgrading my version of ytdl-core on the dmhacker/dmhacker-youtube, so that should be good now. You can test this out by visiting the proxy web site and downloading the video manually: https://dmhacker-youtube.herokuapp.com/.

Unfortunately, the search functionality is broken at the moment, so please refer to #68 for any questions about that.