question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

open_in_youtube is outdated

See original GitHub issue

Hi, it seems like the ‘open_in_youtube’-Skill is not working (at least for me). So ‘jarvis play mozart’ will always tell you ‘I can’t find what do you want in Youtube…’.

I guess yt reworked their searchpage and the old implementation (2 years ago), using bs4 and trying to find the top video via class': 'yt-uix-tile-link' is not working anymore.

I’m already working on a fix for that. However, i wanted to create this issue first, just to make sure its not a bug/problem only on my side.

So it would be nice if someone can actually confirm that ‘jarvis play xyz’ fails with ‘I can’t find what do you want in Youtube…’.

If so, i’ll publish my fix and create a pullrequest.

Also, it’s the first time for me, contributing to another ones project and providing pull requests. So if i miss anything or could improve something, please just let me know.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
KingofGnomecommented, Oct 25, 2021

As i said, it depends if we want to make a yt-api key mandatory. If so, we could also just go with the origin google-api-python-client, no need for any “middleware”. After all, for now its just a simple request against /search.

Also, did someone consider music.youtube.com? Mby for another skill like “JARVIS play music mozart” (i don’t actually know if theres any difference in the videos/music)? Just stumbled upon https://github.com/sigma67/ytmusicapi

However, lots of possibilities 😄 I guess for now i’ll just upload the simple webscrape-fix, its done anyway and we postpone the yt-api till later.

0reactions
Akul2010commented, Aug 15, 2022

I really think the simplest way is just using pywhatkit:

import pywhatkit as kit

kit.playonyt("url/keywords")
Read more comments on GitHub >

github_iconTop Results From Across the Web

YouTube links won't open in YouTube anymore after Android ...
YouTube links won't open in YouTube anymore after Android 12 update. ... didnt have any old settings for it stored in some old...
Read more >
How to make YouTube URLs open in YouTube app rather ...
I want all YouTube URLs to open via the YouTube app and thought my settings (shown below) would enable this behavior; what is...
Read more >
FAQ · qnblackcat/uYouPlus Wiki - GitHub
First, try to login to YouTube like normal, you'll see the “You can't sign in to this app…” warning. Hold and copy the...
Read more >
The Open's Official YouTube channel
Rick Shiels and Iona Stephen take on a series of challenges around some memorable spots on The Old Course. 7:35 Now playing ...
Read more >
OLD How to search for books at PCC Library. See ... - YouTube
NEW 2022 video is here: https://youtu.be/5-OLVoHE3eo Learn how to use Portland Community College Library's search to find books and other ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found