M
M
mumus2018-12-25 12:57:01
YouTube
mumus, 2018-12-25 12:57:01

Downloading images from Youtube?

Hello, please tell me how to upload images one by one, if one did not load, then load the second one, etc.
There is an array of 4 addresses (video covers from YouTube), for example:
var resolutions = ['maxresdefault.jpg', 'hqdefault.jpg', 'mqdefault.jpg', 'sddefault.jpg'];
First load the first maxresdefault, if it does not exist or it has not loaded, then load the second, and so on. Thank you if someone writes a short snippet.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2018-12-26
@AlexMaxTM

Is this a TOR or a question?
If this is a TK, then there is not enough specifics.
If it's a question, then it's missing the code you wrote.

M
mumus, 2019-01-15
@mumus

https://codepen.io/mumus/pen/YdBbYw
This way it will be much clearer. How to make it so that if there is a picture then interrupt the chain?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question