lazyYT icon indicating copy to clipboard operation
lazyYT copied to clipboard

404 on maxresdefault.jpg, should fallback to next available image

Open jaskaran27 opened this issue 10 years ago • 10 comments

I am getting 404s for a couple of video thumbnails. If maxresdefault.jpg is not available, it should use sddefault.jpg. If that is not available, it should fallback to the next available thumbnail image and so on.

jaskaran27 avatar Feb 16 '15 12:02 jaskaran27

there is no easy way to reliably determine the availability of maxresdefault.jpg, try this workaround: https://github.com/tmtmtm/lazyYT/commit/a2f0b8decc34dad8152dc4afb7d284ea805724d0 still, its not 100% reliable.

tmtmtm avatar Feb 16 '15 13:02 tmtmtm

update - please test: https://github.com/tmtmtm/lazyYT/commit/59a2b3e7f4b939382dbefa6906baecb4052e09d7

tmtmtm avatar Feb 16 '15 17:02 tmtmtm

I tested this out, but I still get 404s for sddefault.jpg. I guess those videos are not HD. If sddefault.jpg is not available, it should be getting hqdefault.jpg.

jaskaran27 avatar Feb 16 '15 18:02 jaskaran27

+1

tyrann0us avatar Feb 20 '15 09:02 tyrann0us

made some fixes, please update. if this does not solve the issue, then more complex checking of youtube data will be needed.

tmtmtm avatar Feb 20 '15 13:02 tmtmtm

I tried it out, still getting 404s for sddefault.jpg.

jaskaran27 avatar Feb 24 '15 09:02 jaskaran27

please provide id/url of failing videos

tmtmtm avatar Feb 24 '15 09:02 tmtmtm

Here are a couple of them

CBsVRqaJJA4 (480p) MgWc3cc_vII (360p) CvEs5Dqwul8 (240p)

jaskaran27 avatar Feb 24 '15 09:02 jaskaran27

any news?

tyrann0us avatar Feb 27 '15 08:02 tyrann0us

Solved with commit: https://github.com/Daugilas/lazyYT/commit/a7f02270d2c1d0e20916fb44489d4d095c78b373

On this fork: https://github.com/Daugilas/lazyYT/

Daugilas avatar Mar 06 '16 00:03 Daugilas