# YouTube Audio Skill - testing and feedback

**URL:** https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206
**Category:** Feedback / Support
**Created:** [September 11, 2019, 11:53pm UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206 "2019-09-11T23:53:27Z")
**Posts on this page:** 16
**Page:** 3

<div class="post-metadata">

### Author: ![j1nx](https://community.openconversational.ai/user_avatar/community.openconversational.ai/j1nx/32/1260_2.png) [@j1nx](https://community.openconversational.ai/u/j1nx)
#### Post date: [March 21, 2020, 1:33pm UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/41 "2020-03-21T13:33:37Z")

</div>

This skill uses the Pafy library to get the best audio URL. Have a look at line 101;

```
def get_stream_url(self, youtube_url):
        abs_url = base_url + youtube_url
        LOG.debug('pafy processing: ' + abs_url)
        streams = pafy.new(abs_url)
        LOG.debug('audiostreams found: ' + str(streams.audiostreams));
        bestaudio = streams.getbestaudio()
        LOG.debug('audiostream selected: ' + str(bestaudio));
        return bestaudio.url

```

Perhaps you can change it to this (untested) to always return the best video url instead of the best audio url, which if not found returns the video url (that 5%)

```
def get_stream_url(self, youtube_url):
        abs_url = base_url + youtube_url
        LOG.debug('pafy processing: ' + abs_url)
        streams = pafy.new(abs_url)
        LOG.debug('videostreams found: ' + str(streams.videostreams));
        bestvideo = streams.getbestvideo()
        LOG.debug('videostream selected: ' + str(bestvideo));
        return bestvideo.url

```

Give it a test run and let us know 🙂

---

<div class="post-metadata">

### Author: ![iguanen](https://community.openconversational.ai/user_avatar/community.openconversational.ai/iguanen/32/2191_2.png) [@iguanen](https://community.openconversational.ai/u/iguanen)
#### Post date: [March 21, 2020, 3:27pm UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/42 "2020-03-21T15:27:17Z")

</div>

the video starts, but there is no sound… and if I close the video the skill crash’es

---

<div class="post-metadata">

### Author: ![j1nx](https://community.openconversational.ai/user_avatar/community.openconversational.ai/j1nx/32/1260_2.png) [@j1nx](https://community.openconversational.ai/u/j1nx)
#### Post date: [March 21, 2020, 7:01pm UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/43 "2020-03-21T19:01:38Z")

</div>

Right! Then we have to wait for the dev. Was just shooting from the hip. Perhaps AIX his skill might give some pointers as it is a GUI skil.

---

<div class="post-metadata">

### Author: ![malevolent](https://community.openconversational.ai/user_avatar/community.openconversational.ai/malevolent/32/135_2.png) [@malevolent](https://community.openconversational.ai/u/malevolent)
#### Post date: [March 30, 2020, 8:31am UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/44 "2020-03-30T08:31:07Z")

</div>

I’ve just installed again mark1 and the skills seems no longer working. Am I wrong and I need to do something special?  
I try to install manually VLC and requirements.txt with pip3, but no luck either. I’m afraid the skill doesn’t work with debian jessie, as it cannot install neither vlc-bin nor vlc-plugin-base and installing full vlc doesn’t do the trick

---

<div class="post-metadata">

### Author: ![djay](https://community.openconversational.ai/user_avatar/community.openconversational.ai/djay/32/2150_2.png) [@djay](https://community.openconversational.ai/u/djay)
#### Post date: [April 10, 2020, 1:38pm UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/45 "2020-04-10T13:38:38Z")

</div>

Hi guys,  
i am new to mycroft and trying to learn and understand stuff 😉

I installed the skill through ssh, and it’s telling me it’s installed. But whenever i tell mycroft to play smth on YouTube, it would tell me what it doesn’t know what to do.  
Did I miss anything?  
I would appreciate a hint.

I am on the latest mycroft stable on a RPi 4 + ReSpeaker Mic Array v2

---

<div class="post-metadata">

### Author: ![drgnomage](https://community.openconversational.ai/user_avatar/community.openconversational.ai/drgnomage/32/3348_2.png) [@drgnomage](https://community.openconversational.ai/u/drgnomage)
#### Post date: [May 21, 2020, 9:13pm UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/46 "2020-05-21T21:13:01Z")

</div>

I ran into an error while trying to use the skill, it had worked correctly before hand. I believe this is due to the fact that search result returns live now videos.

Error: [https://pastebin.com/tDbWuPAy](https://pastebin.com/tDbWuPAy)

Also the “play song/artist” function conflicts with Mycroft’s own NPR news skill and starts playing foreign news. Would it be better to use Youtube as the verb? “Hey mycroft, youtube Led Zeppelin”

---

<div class="post-metadata">

### Author: ![gnicolas31](https://community.openconversational.ai/user_avatar/community.openconversational.ai/gnicolas31/32/2454_2.png) [@gnicolas31](https://community.openconversational.ai/u/gnicolas31)
#### Post date: [June 30, 2020, 6:55pm UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/47 "2020-06-30T18:55:26Z")

</div>

Hi guy, awesome work, I’ve tried it yesterday It seem to be working be today I just saying that no result bad been found. It connect well to youtube, I think maybe it’s from the Soup FindAll function but can’t be sure.

Can you have a look ? 🙂

---

<div class="post-metadata">

### Author: ![antdog\_evervast](https://community.openconversational.ai/user_avatar/community.openconversational.ai/antdog_evervast/32/2476_2.png) [@antdog\_evervast](https://community.openconversational.ai/u/antdog_evervast)
#### Post date: [July 1, 2020, 6:03pm UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/48 "2020-07-01T18:03:08Z")

</div>

ran into same issue… skill was awesome yesterday… something tells me youtube made changes. i tried updating the youtube dl… no luck

---

<div class="post-metadata">

### Author: ![JarbasAl](https://community.openconversational.ai/user_avatar/community.openconversational.ai/jarbasal/32/1319_2.png) [@JarbasAl](https://community.openconversational.ai/u/JarbasAl)
#### Post date: [July 9, 2020, 2:38am UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/49 "2020-07-09T02:38:04Z")

</div>

i already posted this in another thread, but you might want to look at

> **[HelloChatterbox/youtube\_searcher](https://github.com/HelloChatterbox/youtube_searcher)**
>
> search youtube. Contribute to HelloChatterbox/youtube\_searcher development by creating an account on GitHub.

there is very minimal bs4 parsing, i only extract a json\_blob, everything else is a dictionary lookup, so it is faster and less likely to break

---

<div class="post-metadata">

### Author: ![pcwii](https://community.openconversational.ai/user_avatar/community.openconversational.ai/pcwii/32/900_2.png) [@pcwii](https://community.openconversational.ai/u/pcwii)
#### Post date: [July 14, 2020, 2:17am UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/50 "2020-07-14T02:17:02Z")

</div>

I have been playing with your youtube\_searcher and am trying to figure out your query parameters.  
I am surprised by some of the results i get or don’t get.  
If I search “captain marvel” i get a result.  
if I search “captain marvel trailer” i don’t get any results.  
if I search “official captain marvel trailer” I get results.  
is there a format I should use to get the best results then search the title from the returned json to filter my searches further?

---

<div class="post-metadata">

### Author: ![Hexeratops](https://community.openconversational.ai/user_avatar/community.openconversational.ai/hexeratops/32/1770_2.png) [@Hexeratops](https://community.openconversational.ai/u/Hexeratops)
#### Post date: [July 19, 2020, 9:21pm UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/51 "2020-07-19T21:21:05Z")

</div>

As someone who wrote a [very similar skill](https://github.com/hexeratops/mycroft-youtube-skill), I think the dream is dead. It seems that the search page is now dependent on JavaScript to actually render the results into something meaningful. The content coming back from the python requests library doesn’t actually contain the search results as parsable HTML anymore, which is why there are no search results.

Edit: @JarbasAl Sorry, I saw your post, but I didn’t know you were addressing that particular problem. I’ll see if I can implement your package and get it working.

---

<div class="post-metadata">

### Author: ![JarbasAl](https://community.openconversational.ai/user_avatar/community.openconversational.ai/jarbasal/32/1319_2.png) [@JarbasAl](https://community.openconversational.ai/u/JarbasAl)
#### Post date: [July 19, 2020, 11:14pm UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/52 "2020-07-19T23:14:04Z")

</div>

@Hexeratops see my link above…

---

<div class="post-metadata">

### Author: ![JarbasAl](https://community.openconversational.ai/user_avatar/community.openconversational.ai/jarbasal/32/1319_2.png) [@JarbasAl](https://community.openconversational.ai/u/JarbasAl)
#### Post date: [July 19, 2020, 11:16pm UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/53 "2020-07-19T23:16:39Z")

</div>

@pcwii in my case i get results for all those queries except “captain marvel”

ill try to debug further and update the package, PRs welcome

---

<div class="post-metadata">

### Author: ![JarbasAl](https://community.openconversational.ai/user_avatar/community.openconversational.ai/jarbasal/32/1319_2.png) [@JarbasAl](https://community.openconversational.ai/u/JarbasAl)
#### Post date: [July 20, 2020, 1:20am UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/54 "2020-07-20T01:20:26Z")

</div>

@pcwii something is weird with youtube, i almost never get results for captain marvel, but maybe 1 in 10 times i do… see [https://paste.ofcode.org/QgEyMnp8292uXKyJvrmUEb](https://paste.ofcode.org/QgEyMnp8292uXKyJvrmUEb)

Meanwhile while debugging this i added a few more things, specifically full movies, promoted videos, corrected query, and video description, new minor version is 0.1.2

Let’s move this discussion to github

---

<div class="post-metadata">

### Author: ![ttg221](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/t/df788c/32.png) [@ttg221](https://community.openconversational.ai/u/ttg221)
#### Post date: [August 8, 2020, 8:53pm UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/55 "2020-08-08T20:53:13Z")

</div>

Any update on search queries working? Was looking forward to trying this out once I setup my mycroft.

---

<div class="post-metadata">

### Author: ![pcwii](https://community.openconversational.ai/user_avatar/community.openconversational.ai/pcwii/32/900_2.png) [@pcwii](https://community.openconversational.ai/u/pcwii)
#### Post date: [August 8, 2020, 9:39pm UTC](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206/56 "2020-08-08T21:39:37Z")

</div>

I think the @JarbasAl skill is working or you could try the @gnicolas31 skill here.

> [@Play from youtube skill](https://community.openconversational.ai/t/play-from-youtube-skill/1158/31):
>
> Guys, just for information, I’ve forked the Mcdruid Repo with the pcwii update if anyone need , available here :

[Previous page](https://community.openconversational.ai/t/youtube-audio-skill-testing-and-feedback/7206.md?page=2)
