Git Product home page Git Product logo

Comments (6)

buddhist-uni avatar buddhist-uni commented on August 11, 2024 1

See #28 for the context on using the oembed API to check YouTube links (instead of checking YT links directly, which always return 200)

from lychee.

lebensterben avatar lebensterben commented on August 11, 2024

they're not the same link ....

from lychee.

mre avatar mre commented on August 11, 2024

We no longer use oEmbed links for Youtube as they don't return a correct status code.
Instead we use the thumbnail URL, which is more reliable.
(Note that we don't download the image but just check the headers for the status code.)
See the discussion starting at #214 (comment) and the change at #232.

That said, the video URL you posted (https://youtu.be/Rvu7N4wyFpk) points to a video that is no longer available, so this is certainly a bug. I've created a PR to fix this with #908.
Thanks for the report @buddhist-uni.

from lychee.

mre avatar mre commented on August 11, 2024

Should be fixed in master now if you want to try @buddhist-uni. Otherwise it will go live with the next release.

from lychee.

buddhist-uni avatar buddhist-uni commented on August 11, 2024

Ah! Non-embedable videos! Nice trick with the Thumbnail URL. And thanks for the fix 🙂

from lychee.

mre avatar mre commented on August 11, 2024

That was @pawroman's idea.

from lychee.

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.