Sometimes Youtube videos do not provide maxresdefault images and the URL return a 404. I need to test that a maxresdefault image exists and if not, get the hqdefault quality. But I cannot test the existence of the Youtube URL (with fetch or axios) because of CORS restrictions.
Hi,
This is a not bug in this library, but a question.
I want to get the URL of a Youtube image at the highest resolution available:
Sometimes Youtube videos do not provide maxresdefault images and the URL return a 404. I need to test that a maxresdefault image exists and if not, get the hqdefault quality. But I cannot test the existence of the Youtube URL (with fetch or axios) because of CORS restrictions.
How I can test that a CORS URL is not a 404 ?
thanks