GithubHelp home page GithubHelp logo

Comments (7)

SlowLogicBoy avatar SlowLogicBoy commented on May 13, 2024

I noticed that too, however I wasn't able to catch on which videos and why yet.

from youtubeexplode.

Tyrrrz avatar Tyrrrz commented on May 13, 2024

Just set a breakpoint on the exception and started querying video infos in an endless loop. Came back from lunch to check what's wrong. Looks like it can't extract the player version.
https://pastebin.com/V71jRCYx <- here's the HTML of the /embed/ watch page.
Youtube basically shows an error and suggests to watch the video on its full watch page. We use the embed watch page because it circumvents age-restrictions and other blocks.

from youtubeexplode.

Tyrrrz avatar Tyrrrz commented on May 13, 2024

The actual player version doesn't seem to be there when the error happens.

from youtubeexplode.

Tyrrrz avatar Tyrrrz commented on May 13, 2024

One solution I see is to keep refreshing the page until it doesn't show an error (the error seems to be rare anyway) or until it hits an internal limit of retries (like 10 or something).
@TheInsaneBro do you have any input on this?

from youtubeexplode.

BrunoZell avatar BrunoZell commented on May 13, 2024

Uhm, yeah. I once had a parse exception on like three videos. I don't really know why, but when I wanted to create an issue, the error was no more in these video ids. Sounds quite similar, however it hasn't said anything about the video context if I remember correctly.

from youtubeexplode.

Tyrrrz avatar Tyrrrz commented on May 13, 2024

Hmm. I hope it's the same error.
I'll "fix" it by requesting the page a few times before giving up, then run the endless loop again and see how it holds up.

from youtubeexplode.

Tyrrrz avatar Tyrrrz commented on May 13, 2024

Ok it works fine. It never exceeds two retries and the retries seem to occur about once in 20 requests.

from youtubeexplode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.