WebDevStudios / Automatic-Featured-Images-from-Videos

If a YouTube or Vimeo video exists in the first few paragraphs of a post, automatically set the post's featured image to that vidoe's thumbnail.
33 stars 24 forks source link

Need better handling of non 200 errors #15

Closed tw2113 closed 6 years ago

tw2113 commented 8 years ago

We check if we have a 404 error for the high quality image, but we don't check that we have ANYTHING before trying to act and save/update post thumbnails.

I was getting service denied errors while testing some things for a forum thread, and the cruise has youtube clamped down with streaming bandwidth restrictions. Making the request for the images returned a 500-level error and the overall process failed and did fatal errors.

tw2113 commented 8 years ago

See 15-no-access-handling

Needs tested. Find way to block youtube access.